Skip to content

Commit bbbff08

Browse files
committed
Fix regression related to emitting SymbolInformation
1 parent 99daaf0 commit bbbff08

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

snapshots/output/syntax/src/inheritance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// documentation ```ts\n(property) property: string\n```
1313
interfaceMethod(): string
1414
// ^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Superinterface#interfaceMethod().
15-
// documentation ```ts\n(property) interfaceMethod: () => string\n```
15+
// documentation ```ts\n(method) interfaceMethod() => string\n```
1616
}
1717
export interface IntermediateSuperinterface extends Superinterface {
1818
// ^^^^^^^^^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperinterface#

snapshots/output/syntax/src/structural-type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
// ^^^^^^^^^^^^ definition syntax 1.0.0 src/`structural-type.ts`/FeatureFlags#
6666
// documentation ```ts\ntype FeatureFlags\n```
6767
// ^^^^^^^^ definition syntax 1.0.0 src/`structural-type.ts`/FeatureFlags#typeLiteral13:darkMode.
68-
// documentation ```ts\n(property) darkMode: true\n```
68+
// documentation ```ts\n(property) darkMode: () => void\n```
6969
export type FeatureOptions = OptionsFlags<FeatureFlags> // implicitly // type FeatureOptions = { // darkMode: boolean; // } const fo: FeatureOptions = { darkMode: true }; // ^ go to def
7070
// ^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`structural-type.ts`/FeatureOptions#
7171
// documentation ```ts\ntype FeatureOptions\n```

src/FileIndexer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export class FileIndexer {
211211
symbol_roles: declarationRole,
212212
})
213213
)
214-
if (isDefinitionNode) {
214+
if (declarationRole > 0) {
215215
this.addSymbolInformation(node, sym, declaration, scipSymbol)
216216
this.handleShorthandPropertyDefinition(declaration, range)
217217
this.handleObjectBindingPattern(node, range)

0 commit comments

Comments
 (0)