@flint.fyi/typescript-language 0.18.2 → 0.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/language.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { AnyKeyword, ArrayBindingPattern, ArrayLiteralExpression, ArrayTypeNode, ArrowFunction, AsExpression, AwaitExpression, BigIntKeyword, BigIntLiteral, BinaryExpression, BindingElement, Block, BooleanKeyword, BreakStatement, CallExpression, CallSignatureDeclaration, CaseBlock, CaseClause, CatchClause, ClassDeclaration, ClassExpression, ClassStaticBlockDeclaration, CommaListExpression, ComputedPropertyName, ConditionalExpression, ConditionalTypeNode, ConstructSignatureDeclaration, ConstructorDeclaration, ConstructorTypeNode, ContinueStatement, DebuggerStatement, Decorator, DefaultClause, DeleteExpression, DoStatement, ElementAccessExpression, EmptyStatement, EnumDeclaration, EnumMember, ExportAssignment, ExportDeclaration, ExportSpecifier, ExpressionStatement, ExpressionWithTypeArguments, ExternalModuleReference, FalseLiteral, ForInStatement, ForOfStatement, ForStatement, FunctionDeclaration, FunctionExpression, FunctionTypeNode, GetAccessorDeclaration, HeritageClause, Identifier, IfStatement, ImportAttribute, ImportAttributes, ImportClause, ImportDeclaration, ImportEqualsDeclaration, ImportExpression, ImportSpecifier, ImportTypeNode, IndexSignatureDeclaration, IndexedAccessTypeNode, InferTypeNode, InterfaceDeclaration, IntersectionTypeNode, IntrinsicKeyword, JSDocAllType, JSDocFunctionType, JSDocLink, JSDocLinkCode, JSDocLinkPlain, JSDocMemberName, JSDocNamepathType, JSDocNonNullableType, JSDocNullableType, JSDocOptionalType, JSDocParameterTag, JSDocPropertyTag, JSDocReturnTag, JSDocSignature, JSDocTemplateTag, JSDocText, JSDocTypeExpression, JSDocTypeLiteral, JSDocUnknownType, JSDocVariadicType, JsxAttribute, JsxAttributes, JsxClosingElement, JsxClosingFragment, JsxElement, JsxExpression, JsxFragment, JsxNamespacedName, JsxOpeningElement, JsxOpeningFragment, JsxSelfClosingElement, JsxSpreadAttribute, JsxText, LabeledStatement, LiteralTypeNode, MappedTypeNode, MetaProperty, MethodDeclaration, MethodSignature, MissingDeclaration, ModuleBlock, ModuleDeclaration, NamedExports, NamedImports, NamedTupleMember, NamespaceExport, NamespaceExportDeclaration, NamespaceImport, NeverKeyword, NewExpression, NoSubstitutionTemplateLiteral, NonNullExpression, NotEmittedStatement, NotEmittedTypeElement, NullLiteral, NumberKeyword, NumericLiteral, ObjectBindingPattern, ObjectKeyword, ObjectLiteralExpression, OmittedExpression, OptionalTypeNode, ParameterDeclaration, ParenthesizedExpression, ParenthesizedTypeNode, PartiallyEmittedExpression, PostfixUnaryExpression, PrefixUnaryExpression, PrivateIdentifier, PropertyAccessExpression, PropertyAssignment, PropertyDeclaration, PropertySignature, QualifiedName, RegularExpressionLiteral, RestTypeNode, ReturnStatement, SatisfiesExpression, SemicolonClassElement, SetAccessorDeclaration, ShorthandPropertyAssignment, SourceFile, SpreadAssignment, SpreadElement, StringKeyword, StringLiteral, SuperExpression, SwitchStatement, SymbolKeyword, SyntheticExpression, TaggedTemplateExpression, TemplateExpression, TemplateHead, TemplateLiteralTypeNode, TemplateLiteralTypeSpan, TemplateMiddle, TemplateSpan, TemplateTail, ThisExpression, ThisTypeNode, ThrowStatement, TrueLiteral, TryStatement, TupleTypeNode, TypeAliasDeclaration, TypeAssertion, TypeLiteralNode, TypeOfExpression, TypeOperatorNode, TypeParameterDeclaration, TypePredicateNode, TypeQueryNode, TypeReferenceNode, UndefinedKeyword, UnionTypeNode, UnknownKeyword, VariableDeclaration, VariableDeclarationList, VariableStatement, VoidExpression, VoidKeyword, WhileStatement, WithStatement, YieldExpression } from "./types/ast.js";
2
- import { TypeScriptNodeVisitors, TypeScriptNodesByName } from "./nodes.js";
2
+ import { TypeScriptNodeVisitors } from "./nodes.js";
3
3
  import { Checker } from "./types/checker.js";
4
+ import * as ts$1 from "typescript";
4
5
  import * as _flint_fyi_core0 from "@flint.fyi/core";
5
6
  import { AnyOptionalSchema, FileAboutData, InferredOutputObject, LanguageFile, LanguageFileDefinition, LanguageReports, RuleRuntime } from "@flint.fyi/core";
6
- import * as ts$1 from "typescript";
7
7
 
8
8
  //#region src/language.d.ts
9
9
  interface TypeScriptFileServices {
@@ -20,202 +20,396 @@ type VolarLanguageFileDefinition = LanguageFileDefinition<object> & {
20
20
  };
21
21
  };
22
22
  declare function setVolarCreateFile(create: VolarCreateFile): void;
23
- declare const typescriptLanguage: _flint_fyi_core0.Language<_flint_fyi_core0.Simplify<TypeScriptNodesByName & {
24
- "AnyKeyword:exit"?: AnyKeyword;
25
- "ArrayBindingPattern:exit"?: ArrayBindingPattern;
26
- "ArrayLiteralExpression:exit"?: ArrayLiteralExpression;
27
- "ArrayType:exit"?: ArrayTypeNode;
28
- "ArrowFunction:exit"?: ArrowFunction;
29
- "AsExpression:exit"?: AsExpression;
30
- "AwaitExpression:exit"?: AwaitExpression;
31
- "BigIntKeyword:exit"?: BigIntKeyword;
32
- "BigIntLiteral:exit"?: BigIntLiteral;
33
- "BinaryExpression:exit"?: BinaryExpression;
34
- "BindingElement:exit"?: BindingElement;
35
- "Block:exit"?: Block;
36
- "BooleanKeyword:exit"?: BooleanKeyword;
37
- "BreakStatement:exit"?: BreakStatement;
38
- "CallExpression:exit"?: CallExpression;
39
- "CallSignature:exit"?: CallSignatureDeclaration;
40
- "CaseBlock:exit"?: CaseBlock;
41
- "CaseClause:exit"?: CaseClause;
42
- "CatchClause:exit"?: CatchClause;
43
- "ClassDeclaration:exit"?: ClassDeclaration;
44
- "ClassExpression:exit"?: ClassExpression;
45
- "ClassStaticBlockDeclaration:exit"?: ClassStaticBlockDeclaration;
46
- "CommaListExpression:exit"?: CommaListExpression;
47
- "ComputedPropertyName:exit"?: ComputedPropertyName;
48
- "ConditionalExpression:exit"?: ConditionalExpression;
49
- "ConditionalType:exit"?: ConditionalTypeNode;
50
- "Constructor:exit"?: ConstructorDeclaration;
51
- "ConstructorType:exit"?: ConstructorTypeNode;
52
- "ConstructSignature:exit"?: ConstructSignatureDeclaration;
53
- "ContinueStatement:exit"?: ContinueStatement;
54
- "DebuggerStatement:exit"?: DebuggerStatement;
55
- "Decorator:exit"?: Decorator;
56
- "DefaultClause:exit"?: DefaultClause;
57
- "DeleteExpression:exit"?: DeleteExpression;
58
- "DoStatement:exit"?: DoStatement;
59
- "ElementAccessExpression:exit"?: ElementAccessExpression;
60
- "EmptyStatement:exit"?: EmptyStatement;
61
- "EnumDeclaration:exit"?: EnumDeclaration;
62
- "EnumMember:exit"?: EnumMember;
63
- "ExportAssignment:exit"?: ExportAssignment;
64
- "ExportDeclaration:exit"?: ExportDeclaration;
65
- "ExportSpecifier:exit"?: ExportSpecifier;
66
- "ExpressionStatement:exit"?: ExpressionStatement;
67
- "ExpressionWithTypeArguments:exit"?: ExpressionWithTypeArguments;
68
- "ExternalModuleReference:exit"?: ExternalModuleReference;
69
- "FalseKeyword:exit"?: FalseLiteral;
70
- "ForInStatement:exit"?: ForInStatement;
71
- "ForOfStatement:exit"?: ForOfStatement;
72
- "ForStatement:exit"?: ForStatement;
73
- "FunctionDeclaration:exit"?: FunctionDeclaration;
74
- "FunctionExpression:exit"?: FunctionExpression;
75
- "FunctionType:exit"?: FunctionTypeNode;
76
- "GetAccessor:exit"?: GetAccessorDeclaration;
77
- "HeritageClause:exit"?: HeritageClause;
78
- "Identifier:exit"?: Identifier;
79
- "IfStatement:exit"?: IfStatement;
80
- "ImportAttribute:exit"?: ImportAttribute;
81
- "ImportAttributes:exit"?: ImportAttributes;
82
- "ImportClause:exit"?: ImportClause;
83
- "ImportDeclaration:exit"?: ImportDeclaration;
84
- "ImportEqualsDeclaration:exit"?: ImportEqualsDeclaration;
85
- "ImportKeyword:exit"?: ImportExpression;
86
- "ImportSpecifier:exit"?: ImportSpecifier;
87
- "ImportType:exit"?: ImportTypeNode;
88
- "IndexedAccessType:exit"?: IndexedAccessTypeNode;
89
- "IndexSignature:exit"?: IndexSignatureDeclaration;
90
- "InferType:exit"?: InferTypeNode;
91
- "InterfaceDeclaration:exit"?: InterfaceDeclaration;
92
- "IntersectionType:exit"?: IntersectionTypeNode;
93
- "IntrinsicKeyword:exit"?: IntrinsicKeyword;
94
- "JSDocAllType:exit"?: JSDocAllType;
95
- "JSDocFunctionType:exit"?: JSDocFunctionType;
96
- "JSDocLink:exit"?: JSDocLink;
97
- "JSDocLinkCode:exit"?: JSDocLinkCode;
98
- "JSDocLinkPlain:exit"?: JSDocLinkPlain;
99
- "JSDocMemberName:exit"?: JSDocMemberName;
100
- "JSDocNamepathType:exit"?: JSDocNamepathType;
101
- "JSDocNonNullableType:exit"?: JSDocNonNullableType;
102
- "JSDocNullableType:exit"?: JSDocNullableType;
103
- "JSDocOptionalType:exit"?: JSDocOptionalType;
104
- "JSDocParameterTag:exit"?: JSDocParameterTag;
105
- "JSDocPropertyTag:exit"?: JSDocPropertyTag;
106
- "JSDocReturnTag:exit"?: JSDocReturnTag;
107
- "JSDocSignature:exit"?: JSDocSignature;
108
- "JSDocTemplateTag:exit"?: JSDocTemplateTag;
109
- "JSDocText:exit"?: JSDocText;
110
- "JSDocTypeExpression:exit"?: JSDocTypeExpression;
111
- "JSDocTypeLiteral:exit"?: JSDocTypeLiteral;
112
- "JSDocUnknownType:exit"?: JSDocUnknownType;
113
- "JSDocVariadicType:exit"?: JSDocVariadicType;
114
- "JsxAttribute:exit"?: JsxAttribute;
115
- "JsxAttributes:exit"?: JsxAttributes;
116
- "JsxClosingElement:exit"?: JsxClosingElement;
117
- "JsxClosingFragment:exit"?: JsxClosingFragment;
118
- "JsxElement:exit"?: JsxElement;
119
- "JsxExpression:exit"?: JsxExpression;
120
- "JsxFragment:exit"?: JsxFragment;
121
- "JsxNamespacedName:exit"?: JsxNamespacedName;
122
- "JsxOpeningElement:exit"?: JsxOpeningElement;
123
- "JsxOpeningFragment:exit"?: JsxOpeningFragment;
124
- "JsxSelfClosingElement:exit"?: JsxSelfClosingElement;
125
- "JsxSpreadAttribute:exit"?: JsxSpreadAttribute;
126
- "JsxText:exit"?: JsxText;
127
- "LabeledStatement:exit"?: LabeledStatement;
128
- "LiteralType:exit"?: LiteralTypeNode;
129
- "MappedType:exit"?: MappedTypeNode;
130
- "MetaProperty:exit"?: MetaProperty;
131
- "MethodDeclaration:exit"?: MethodDeclaration;
132
- "MethodSignature:exit"?: MethodSignature;
133
- "MissingDeclaration:exit"?: MissingDeclaration;
134
- "ModuleBlock:exit"?: ModuleBlock;
135
- "ModuleDeclaration:exit"?: ModuleDeclaration;
136
- "NamedExports:exit"?: NamedExports;
137
- "NamedImports:exit"?: NamedImports;
138
- "NamedTupleMember:exit"?: NamedTupleMember;
139
- "NamespaceExport:exit"?: NamespaceExport;
140
- "NamespaceExportDeclaration:exit"?: NamespaceExportDeclaration;
141
- "NamespaceImport:exit"?: NamespaceImport;
142
- "NeverKeyword:exit"?: NeverKeyword;
143
- "NewExpression:exit"?: NewExpression;
144
- "NonNullExpression:exit"?: NonNullExpression;
145
- "NoSubstitutionTemplateLiteral:exit"?: NoSubstitutionTemplateLiteral;
146
- "NotEmittedStatement:exit"?: NotEmittedStatement;
147
- "NotEmittedTypeElement:exit"?: NotEmittedTypeElement;
148
- "NullKeyword:exit"?: NullLiteral;
149
- "NumberKeyword:exit"?: NumberKeyword;
150
- "NumericLiteral:exit"?: NumericLiteral;
151
- "ObjectBindingPattern:exit"?: ObjectBindingPattern;
152
- "ObjectKeyword:exit"?: ObjectKeyword;
153
- "ObjectLiteralExpression:exit"?: ObjectLiteralExpression;
154
- "OmittedExpression:exit"?: OmittedExpression;
155
- "OptionalType:exit"?: OptionalTypeNode;
156
- "Parameter:exit"?: ParameterDeclaration;
157
- "ParenthesizedExpression:exit"?: ParenthesizedExpression;
158
- "ParenthesizedType:exit"?: ParenthesizedTypeNode;
159
- "PartiallyEmittedExpression:exit"?: PartiallyEmittedExpression;
160
- "PostfixUnaryExpression:exit"?: PostfixUnaryExpression;
161
- "PrefixUnaryExpression:exit"?: PrefixUnaryExpression;
162
- "PrivateIdentifier:exit"?: PrivateIdentifier;
163
- "PropertyAccessExpression:exit"?: PropertyAccessExpression;
164
- "PropertyAssignment:exit"?: PropertyAssignment;
165
- "PropertyDeclaration:exit"?: PropertyDeclaration;
166
- "PropertySignature:exit"?: PropertySignature;
167
- "QualifiedName:exit"?: QualifiedName;
168
- "RegularExpressionLiteral:exit"?: RegularExpressionLiteral;
169
- "RestType:exit"?: RestTypeNode;
170
- "ReturnStatement:exit"?: ReturnStatement;
171
- "SatisfiesExpression:exit"?: SatisfiesExpression;
172
- "SemicolonClassElement:exit"?: SemicolonClassElement;
173
- "SetAccessor:exit"?: SetAccessorDeclaration;
174
- "ShorthandPropertyAssignment:exit"?: ShorthandPropertyAssignment;
175
- "SourceFile:exit"?: SourceFile;
176
- "SpreadAssignment:exit"?: SpreadAssignment;
177
- "SpreadElement:exit"?: SpreadElement;
178
- "StringKeyword:exit"?: StringKeyword;
179
- "StringLiteral:exit"?: StringLiteral;
180
- "SuperKeyword:exit"?: SuperExpression;
181
- "SwitchStatement:exit"?: SwitchStatement;
182
- "SymbolKeyword:exit"?: SymbolKeyword;
183
- "SyntheticExpression:exit"?: SyntheticExpression;
184
- "TaggedTemplateExpression:exit"?: TaggedTemplateExpression;
185
- "TemplateExpression:exit"?: TemplateExpression;
186
- "TemplateHead:exit"?: TemplateHead;
187
- "TemplateLiteralType:exit"?: TemplateLiteralTypeNode;
188
- "TemplateLiteralTypeSpan:exit"?: TemplateLiteralTypeSpan;
189
- "TemplateMiddle:exit"?: TemplateMiddle;
190
- "TemplateSpan:exit"?: TemplateSpan;
191
- "TemplateTail:exit"?: TemplateTail;
192
- "ThisKeyword:exit"?: ThisExpression;
193
- "ThisType:exit"?: ThisTypeNode;
194
- "ThrowStatement:exit"?: ThrowStatement;
195
- "TrueKeyword:exit"?: TrueLiteral;
196
- "TryStatement:exit"?: TryStatement;
197
- "TupleType:exit"?: TupleTypeNode;
198
- "TypeAliasDeclaration:exit"?: TypeAliasDeclaration;
199
- "TypeAssertionExpression:exit"?: TypeAssertion;
200
- "TypeLiteral:exit"?: TypeLiteralNode;
201
- "TypeOfExpression:exit"?: TypeOfExpression;
202
- "TypeOperator:exit"?: TypeOperatorNode;
203
- "TypeParameter:exit"?: TypeParameterDeclaration;
204
- "TypePredicate:exit"?: TypePredicateNode;
205
- "TypeQuery:exit"?: TypeQueryNode;
206
- "TypeReference:exit"?: TypeReferenceNode;
207
- "UndefinedKeyword:exit"?: UndefinedKeyword;
208
- "UnionType:exit"?: UnionTypeNode;
209
- "UnknownKeyword:exit"?: UnknownKeyword;
210
- "VariableDeclaration:exit"?: VariableDeclaration;
211
- "VariableDeclarationList:exit"?: VariableDeclarationList;
212
- "VariableStatement:exit"?: VariableStatement;
213
- "VoidExpression:exit"?: VoidExpression;
214
- "VoidKeyword:exit"?: VoidKeyword;
215
- "WhileStatement:exit"?: WhileStatement;
216
- "WithStatement:exit"?: WithStatement;
217
- "YieldExpression:exit"?: YieldExpression;
218
- }>, TypeScriptFileServices>;
23
+ declare const typescriptLanguage: _flint_fyi_core0.Language<{
24
+ AnyKeyword: AnyKeyword;
25
+ ArrayBindingPattern: ArrayBindingPattern;
26
+ ArrayLiteralExpression: ArrayLiteralExpression;
27
+ ArrayType: ArrayTypeNode;
28
+ ArrowFunction: ArrowFunction;
29
+ AsExpression: AsExpression;
30
+ AwaitExpression: AwaitExpression;
31
+ BigIntKeyword: BigIntKeyword;
32
+ BigIntLiteral: BigIntLiteral;
33
+ BinaryExpression: BinaryExpression;
34
+ BindingElement: BindingElement;
35
+ Block: Block;
36
+ BooleanKeyword: BooleanKeyword;
37
+ BreakStatement: BreakStatement;
38
+ CallExpression: CallExpression;
39
+ CallSignature: CallSignatureDeclaration;
40
+ CaseBlock: CaseBlock;
41
+ CaseClause: CaseClause;
42
+ CatchClause: CatchClause;
43
+ ClassDeclaration: ClassDeclaration;
44
+ ClassExpression: ClassExpression;
45
+ ClassStaticBlockDeclaration: ClassStaticBlockDeclaration;
46
+ CommaListExpression: CommaListExpression;
47
+ ComputedPropertyName: ComputedPropertyName;
48
+ ConditionalExpression: ConditionalExpression;
49
+ ConditionalType: ConditionalTypeNode;
50
+ Constructor: ConstructorDeclaration;
51
+ ConstructorType: ConstructorTypeNode;
52
+ ConstructSignature: ConstructSignatureDeclaration;
53
+ ContinueStatement: ContinueStatement;
54
+ DebuggerStatement: DebuggerStatement;
55
+ Decorator: Decorator;
56
+ DefaultClause: DefaultClause;
57
+ DeleteExpression: DeleteExpression;
58
+ DoStatement: DoStatement;
59
+ ElementAccessExpression: ElementAccessExpression;
60
+ EmptyStatement: EmptyStatement;
61
+ EnumDeclaration: EnumDeclaration;
62
+ EnumMember: EnumMember;
63
+ ExportAssignment: ExportAssignment;
64
+ ExportDeclaration: ExportDeclaration;
65
+ ExportSpecifier: ExportSpecifier;
66
+ ExpressionStatement: ExpressionStatement;
67
+ ExpressionWithTypeArguments: ExpressionWithTypeArguments;
68
+ ExternalModuleReference: ExternalModuleReference;
69
+ FalseKeyword: FalseLiteral;
70
+ ForInStatement: ForInStatement;
71
+ ForOfStatement: ForOfStatement;
72
+ ForStatement: ForStatement;
73
+ FunctionDeclaration: FunctionDeclaration;
74
+ FunctionExpression: FunctionExpression;
75
+ FunctionType: FunctionTypeNode;
76
+ GetAccessor: GetAccessorDeclaration;
77
+ HeritageClause: HeritageClause;
78
+ Identifier: Identifier;
79
+ IfStatement: IfStatement;
80
+ ImportAttribute: ImportAttribute;
81
+ ImportAttributes: ImportAttributes;
82
+ ImportClause: ImportClause;
83
+ ImportDeclaration: ImportDeclaration;
84
+ ImportEqualsDeclaration: ImportEqualsDeclaration;
85
+ ImportKeyword: ImportExpression;
86
+ ImportSpecifier: ImportSpecifier;
87
+ ImportType: ImportTypeNode;
88
+ IndexedAccessType: IndexedAccessTypeNode;
89
+ IndexSignature: IndexSignatureDeclaration;
90
+ InferType: InferTypeNode;
91
+ InterfaceDeclaration: InterfaceDeclaration;
92
+ IntersectionType: IntersectionTypeNode;
93
+ IntrinsicKeyword: IntrinsicKeyword;
94
+ JSDocAllType: JSDocAllType;
95
+ JSDocFunctionType: JSDocFunctionType;
96
+ JSDocLink: JSDocLink;
97
+ JSDocLinkCode: JSDocLinkCode;
98
+ JSDocLinkPlain: JSDocLinkPlain;
99
+ JSDocMemberName: JSDocMemberName;
100
+ JSDocNamepathType: JSDocNamepathType;
101
+ JSDocNonNullableType: JSDocNonNullableType;
102
+ JSDocNullableType: JSDocNullableType;
103
+ JSDocOptionalType: JSDocOptionalType;
104
+ JSDocParameterTag: JSDocParameterTag;
105
+ JSDocPropertyTag: JSDocPropertyTag;
106
+ JSDocReturnTag: JSDocReturnTag;
107
+ JSDocSignature: JSDocSignature;
108
+ JSDocTemplateTag: JSDocTemplateTag;
109
+ JSDocText: JSDocText;
110
+ JSDocTypeExpression: JSDocTypeExpression;
111
+ JSDocTypeLiteral: JSDocTypeLiteral;
112
+ JSDocUnknownType: JSDocUnknownType;
113
+ JSDocVariadicType: JSDocVariadicType;
114
+ JsxAttribute: JsxAttribute;
115
+ JsxAttributes: JsxAttributes;
116
+ JsxClosingElement: JsxClosingElement;
117
+ JsxClosingFragment: JsxClosingFragment;
118
+ JsxElement: JsxElement;
119
+ JsxExpression: JsxExpression;
120
+ JsxFragment: JsxFragment;
121
+ JsxNamespacedName: JsxNamespacedName;
122
+ JsxOpeningElement: JsxOpeningElement;
123
+ JsxOpeningFragment: JsxOpeningFragment;
124
+ JsxSelfClosingElement: JsxSelfClosingElement;
125
+ JsxSpreadAttribute: JsxSpreadAttribute;
126
+ JsxText: JsxText;
127
+ LabeledStatement: LabeledStatement;
128
+ LiteralType: LiteralTypeNode;
129
+ MappedType: MappedTypeNode;
130
+ MetaProperty: MetaProperty;
131
+ MethodDeclaration: MethodDeclaration;
132
+ MethodSignature: MethodSignature;
133
+ MissingDeclaration: MissingDeclaration;
134
+ ModuleBlock: ModuleBlock;
135
+ ModuleDeclaration: ModuleDeclaration;
136
+ NamedExports: NamedExports;
137
+ NamedImports: NamedImports;
138
+ NamedTupleMember: NamedTupleMember;
139
+ NamespaceExport: NamespaceExport;
140
+ NamespaceExportDeclaration: NamespaceExportDeclaration;
141
+ NamespaceImport: NamespaceImport;
142
+ NeverKeyword: NeverKeyword;
143
+ NewExpression: NewExpression;
144
+ NonNullExpression: NonNullExpression;
145
+ NoSubstitutionTemplateLiteral: NoSubstitutionTemplateLiteral;
146
+ NotEmittedStatement: NotEmittedStatement;
147
+ NotEmittedTypeElement: NotEmittedTypeElement;
148
+ NullKeyword: NullLiteral;
149
+ NumberKeyword: NumberKeyword;
150
+ NumericLiteral: NumericLiteral;
151
+ ObjectBindingPattern: ObjectBindingPattern;
152
+ ObjectKeyword: ObjectKeyword;
153
+ ObjectLiteralExpression: ObjectLiteralExpression;
154
+ OmittedExpression: OmittedExpression;
155
+ OptionalType: OptionalTypeNode;
156
+ Parameter: ParameterDeclaration;
157
+ ParenthesizedExpression: ParenthesizedExpression;
158
+ ParenthesizedType: ParenthesizedTypeNode;
159
+ PartiallyEmittedExpression: PartiallyEmittedExpression;
160
+ PostfixUnaryExpression: PostfixUnaryExpression;
161
+ PrefixUnaryExpression: PrefixUnaryExpression;
162
+ PrivateIdentifier: PrivateIdentifier;
163
+ PropertyAccessExpression: PropertyAccessExpression;
164
+ PropertyAssignment: PropertyAssignment;
165
+ PropertyDeclaration: PropertyDeclaration;
166
+ PropertySignature: PropertySignature;
167
+ QualifiedName: QualifiedName;
168
+ RegularExpressionLiteral: RegularExpressionLiteral;
169
+ RestType: RestTypeNode;
170
+ ReturnStatement: ReturnStatement;
171
+ SatisfiesExpression: SatisfiesExpression;
172
+ SemicolonClassElement: SemicolonClassElement;
173
+ SetAccessor: SetAccessorDeclaration;
174
+ ShorthandPropertyAssignment: ShorthandPropertyAssignment;
175
+ SourceFile: SourceFile;
176
+ SpreadAssignment: SpreadAssignment;
177
+ SpreadElement: SpreadElement;
178
+ StringKeyword: StringKeyword;
179
+ StringLiteral: StringLiteral;
180
+ SuperKeyword: SuperExpression;
181
+ SwitchStatement: SwitchStatement;
182
+ SymbolKeyword: SymbolKeyword;
183
+ SyntheticExpression: SyntheticExpression;
184
+ TaggedTemplateExpression: TaggedTemplateExpression;
185
+ TemplateExpression: TemplateExpression;
186
+ TemplateHead: TemplateHead;
187
+ TemplateLiteralType: TemplateLiteralTypeNode;
188
+ TemplateLiteralTypeSpan: TemplateLiteralTypeSpan;
189
+ TemplateMiddle: TemplateMiddle;
190
+ TemplateSpan: TemplateSpan;
191
+ TemplateTail: TemplateTail;
192
+ ThisKeyword: ThisExpression;
193
+ ThisType: ThisTypeNode;
194
+ ThrowStatement: ThrowStatement;
195
+ TrueKeyword: TrueLiteral;
196
+ TryStatement: TryStatement;
197
+ TupleType: TupleTypeNode;
198
+ TypeAliasDeclaration: TypeAliasDeclaration;
199
+ TypeAssertionExpression: TypeAssertion;
200
+ TypeLiteral: TypeLiteralNode;
201
+ TypeOfExpression: TypeOfExpression;
202
+ TypeOperator: TypeOperatorNode;
203
+ TypeParameter: TypeParameterDeclaration;
204
+ TypePredicate: TypePredicateNode;
205
+ TypeQuery: TypeQueryNode;
206
+ TypeReference: TypeReferenceNode;
207
+ UndefinedKeyword: UndefinedKeyword;
208
+ UnionType: UnionTypeNode;
209
+ UnknownKeyword: UnknownKeyword;
210
+ VariableDeclaration: VariableDeclaration;
211
+ VariableDeclarationList: VariableDeclarationList;
212
+ VariableStatement: VariableStatement;
213
+ VoidExpression: VoidExpression;
214
+ VoidKeyword: VoidKeyword;
215
+ WhileStatement: WhileStatement;
216
+ WithStatement: WithStatement;
217
+ YieldExpression: YieldExpression;
218
+ "AnyKeyword:exit": AnyKeyword;
219
+ "ArrayBindingPattern:exit": ArrayBindingPattern;
220
+ "ArrayLiteralExpression:exit": ArrayLiteralExpression;
221
+ "ArrayType:exit": ArrayTypeNode;
222
+ "ArrowFunction:exit": ArrowFunction;
223
+ "AsExpression:exit": AsExpression;
224
+ "AwaitExpression:exit": AwaitExpression;
225
+ "BigIntKeyword:exit": BigIntKeyword;
226
+ "BigIntLiteral:exit": BigIntLiteral;
227
+ "BinaryExpression:exit": BinaryExpression;
228
+ "BindingElement:exit": BindingElement;
229
+ "Block:exit": Block;
230
+ "BooleanKeyword:exit": BooleanKeyword;
231
+ "BreakStatement:exit": BreakStatement;
232
+ "CallExpression:exit": CallExpression;
233
+ "CallSignature:exit": CallSignatureDeclaration;
234
+ "CaseBlock:exit": CaseBlock;
235
+ "CaseClause:exit": CaseClause;
236
+ "CatchClause:exit": CatchClause;
237
+ "ClassDeclaration:exit": ClassDeclaration;
238
+ "ClassExpression:exit": ClassExpression;
239
+ "ClassStaticBlockDeclaration:exit": ClassStaticBlockDeclaration;
240
+ "CommaListExpression:exit": CommaListExpression;
241
+ "ComputedPropertyName:exit": ComputedPropertyName;
242
+ "ConditionalExpression:exit": ConditionalExpression;
243
+ "ConditionalType:exit": ConditionalTypeNode;
244
+ "Constructor:exit": ConstructorDeclaration;
245
+ "ConstructorType:exit": ConstructorTypeNode;
246
+ "ConstructSignature:exit": ConstructSignatureDeclaration;
247
+ "ContinueStatement:exit": ContinueStatement;
248
+ "DebuggerStatement:exit": DebuggerStatement;
249
+ "Decorator:exit": Decorator;
250
+ "DefaultClause:exit": DefaultClause;
251
+ "DeleteExpression:exit": DeleteExpression;
252
+ "DoStatement:exit": DoStatement;
253
+ "ElementAccessExpression:exit": ElementAccessExpression;
254
+ "EmptyStatement:exit": EmptyStatement;
255
+ "EnumDeclaration:exit": EnumDeclaration;
256
+ "EnumMember:exit": EnumMember;
257
+ "ExportAssignment:exit": ExportAssignment;
258
+ "ExportDeclaration:exit": ExportDeclaration;
259
+ "ExportSpecifier:exit": ExportSpecifier;
260
+ "ExpressionStatement:exit": ExpressionStatement;
261
+ "ExpressionWithTypeArguments:exit": ExpressionWithTypeArguments;
262
+ "ExternalModuleReference:exit": ExternalModuleReference;
263
+ "FalseKeyword:exit": FalseLiteral;
264
+ "ForInStatement:exit": ForInStatement;
265
+ "ForOfStatement:exit": ForOfStatement;
266
+ "ForStatement:exit": ForStatement;
267
+ "FunctionDeclaration:exit": FunctionDeclaration;
268
+ "FunctionExpression:exit": FunctionExpression;
269
+ "FunctionType:exit": FunctionTypeNode;
270
+ "GetAccessor:exit": GetAccessorDeclaration;
271
+ "HeritageClause:exit": HeritageClause;
272
+ "Identifier:exit": Identifier;
273
+ "IfStatement:exit": IfStatement;
274
+ "ImportAttribute:exit": ImportAttribute;
275
+ "ImportAttributes:exit": ImportAttributes;
276
+ "ImportClause:exit": ImportClause;
277
+ "ImportDeclaration:exit": ImportDeclaration;
278
+ "ImportEqualsDeclaration:exit": ImportEqualsDeclaration;
279
+ "ImportKeyword:exit": ImportExpression;
280
+ "ImportSpecifier:exit": ImportSpecifier;
281
+ "ImportType:exit": ImportTypeNode;
282
+ "IndexedAccessType:exit": IndexedAccessTypeNode;
283
+ "IndexSignature:exit": IndexSignatureDeclaration;
284
+ "InferType:exit": InferTypeNode;
285
+ "InterfaceDeclaration:exit": InterfaceDeclaration;
286
+ "IntersectionType:exit": IntersectionTypeNode;
287
+ "IntrinsicKeyword:exit": IntrinsicKeyword;
288
+ "JSDocAllType:exit": JSDocAllType;
289
+ "JSDocFunctionType:exit": JSDocFunctionType;
290
+ "JSDocLink:exit": JSDocLink;
291
+ "JSDocLinkCode:exit": JSDocLinkCode;
292
+ "JSDocLinkPlain:exit": JSDocLinkPlain;
293
+ "JSDocMemberName:exit": JSDocMemberName;
294
+ "JSDocNamepathType:exit": JSDocNamepathType;
295
+ "JSDocNonNullableType:exit": JSDocNonNullableType;
296
+ "JSDocNullableType:exit": JSDocNullableType;
297
+ "JSDocOptionalType:exit": JSDocOptionalType;
298
+ "JSDocParameterTag:exit": JSDocParameterTag;
299
+ "JSDocPropertyTag:exit": JSDocPropertyTag;
300
+ "JSDocReturnTag:exit": JSDocReturnTag;
301
+ "JSDocSignature:exit": JSDocSignature;
302
+ "JSDocTemplateTag:exit": JSDocTemplateTag;
303
+ "JSDocText:exit": JSDocText;
304
+ "JSDocTypeExpression:exit": JSDocTypeExpression;
305
+ "JSDocTypeLiteral:exit": JSDocTypeLiteral;
306
+ "JSDocUnknownType:exit": JSDocUnknownType;
307
+ "JSDocVariadicType:exit": JSDocVariadicType;
308
+ "JsxAttribute:exit": JsxAttribute;
309
+ "JsxAttributes:exit": JsxAttributes;
310
+ "JsxClosingElement:exit": JsxClosingElement;
311
+ "JsxClosingFragment:exit": JsxClosingFragment;
312
+ "JsxElement:exit": JsxElement;
313
+ "JsxExpression:exit": JsxExpression;
314
+ "JsxFragment:exit": JsxFragment;
315
+ "JsxNamespacedName:exit": JsxNamespacedName;
316
+ "JsxOpeningElement:exit": JsxOpeningElement;
317
+ "JsxOpeningFragment:exit": JsxOpeningFragment;
318
+ "JsxSelfClosingElement:exit": JsxSelfClosingElement;
319
+ "JsxSpreadAttribute:exit": JsxSpreadAttribute;
320
+ "JsxText:exit": JsxText;
321
+ "LabeledStatement:exit": LabeledStatement;
322
+ "LiteralType:exit": LiteralTypeNode;
323
+ "MappedType:exit": MappedTypeNode;
324
+ "MetaProperty:exit": MetaProperty;
325
+ "MethodDeclaration:exit": MethodDeclaration;
326
+ "MethodSignature:exit": MethodSignature;
327
+ "MissingDeclaration:exit": MissingDeclaration;
328
+ "ModuleBlock:exit": ModuleBlock;
329
+ "ModuleDeclaration:exit": ModuleDeclaration;
330
+ "NamedExports:exit": NamedExports;
331
+ "NamedImports:exit": NamedImports;
332
+ "NamedTupleMember:exit": NamedTupleMember;
333
+ "NamespaceExport:exit": NamespaceExport;
334
+ "NamespaceExportDeclaration:exit": NamespaceExportDeclaration;
335
+ "NamespaceImport:exit": NamespaceImport;
336
+ "NeverKeyword:exit": NeverKeyword;
337
+ "NewExpression:exit": NewExpression;
338
+ "NonNullExpression:exit": NonNullExpression;
339
+ "NoSubstitutionTemplateLiteral:exit": NoSubstitutionTemplateLiteral;
340
+ "NotEmittedStatement:exit": NotEmittedStatement;
341
+ "NotEmittedTypeElement:exit": NotEmittedTypeElement;
342
+ "NullKeyword:exit": NullLiteral;
343
+ "NumberKeyword:exit": NumberKeyword;
344
+ "NumericLiteral:exit": NumericLiteral;
345
+ "ObjectBindingPattern:exit": ObjectBindingPattern;
346
+ "ObjectKeyword:exit": ObjectKeyword;
347
+ "ObjectLiteralExpression:exit": ObjectLiteralExpression;
348
+ "OmittedExpression:exit": OmittedExpression;
349
+ "OptionalType:exit": OptionalTypeNode;
350
+ "Parameter:exit": ParameterDeclaration;
351
+ "ParenthesizedExpression:exit": ParenthesizedExpression;
352
+ "ParenthesizedType:exit": ParenthesizedTypeNode;
353
+ "PartiallyEmittedExpression:exit": PartiallyEmittedExpression;
354
+ "PostfixUnaryExpression:exit": PostfixUnaryExpression;
355
+ "PrefixUnaryExpression:exit": PrefixUnaryExpression;
356
+ "PrivateIdentifier:exit": PrivateIdentifier;
357
+ "PropertyAccessExpression:exit": PropertyAccessExpression;
358
+ "PropertyAssignment:exit": PropertyAssignment;
359
+ "PropertyDeclaration:exit": PropertyDeclaration;
360
+ "PropertySignature:exit": PropertySignature;
361
+ "QualifiedName:exit": QualifiedName;
362
+ "RegularExpressionLiteral:exit": RegularExpressionLiteral;
363
+ "RestType:exit": RestTypeNode;
364
+ "ReturnStatement:exit": ReturnStatement;
365
+ "SatisfiesExpression:exit": SatisfiesExpression;
366
+ "SemicolonClassElement:exit": SemicolonClassElement;
367
+ "SetAccessor:exit": SetAccessorDeclaration;
368
+ "ShorthandPropertyAssignment:exit": ShorthandPropertyAssignment;
369
+ "SourceFile:exit": SourceFile;
370
+ "SpreadAssignment:exit": SpreadAssignment;
371
+ "SpreadElement:exit": SpreadElement;
372
+ "StringKeyword:exit": StringKeyword;
373
+ "StringLiteral:exit": StringLiteral;
374
+ "SuperKeyword:exit": SuperExpression;
375
+ "SwitchStatement:exit": SwitchStatement;
376
+ "SymbolKeyword:exit": SymbolKeyword;
377
+ "SyntheticExpression:exit": SyntheticExpression;
378
+ "TaggedTemplateExpression:exit": TaggedTemplateExpression;
379
+ "TemplateExpression:exit": TemplateExpression;
380
+ "TemplateHead:exit": TemplateHead;
381
+ "TemplateLiteralType:exit": TemplateLiteralTypeNode;
382
+ "TemplateLiteralTypeSpan:exit": TemplateLiteralTypeSpan;
383
+ "TemplateMiddle:exit": TemplateMiddle;
384
+ "TemplateSpan:exit": TemplateSpan;
385
+ "TemplateTail:exit": TemplateTail;
386
+ "ThisKeyword:exit": ThisExpression;
387
+ "ThisType:exit": ThisTypeNode;
388
+ "ThrowStatement:exit": ThrowStatement;
389
+ "TrueKeyword:exit": TrueLiteral;
390
+ "TryStatement:exit": TryStatement;
391
+ "TupleType:exit": TupleTypeNode;
392
+ "TypeAliasDeclaration:exit": TypeAliasDeclaration;
393
+ "TypeAssertionExpression:exit": TypeAssertion;
394
+ "TypeLiteral:exit": TypeLiteralNode;
395
+ "TypeOfExpression:exit": TypeOfExpression;
396
+ "TypeOperator:exit": TypeOperatorNode;
397
+ "TypeParameter:exit": TypeParameterDeclaration;
398
+ "TypePredicate:exit": TypePredicateNode;
399
+ "TypeQuery:exit": TypeQueryNode;
400
+ "TypeReference:exit": TypeReferenceNode;
401
+ "UndefinedKeyword:exit": UndefinedKeyword;
402
+ "UnionType:exit": UnionTypeNode;
403
+ "UnknownKeyword:exit": UnknownKeyword;
404
+ "VariableDeclaration:exit": VariableDeclaration;
405
+ "VariableDeclarationList:exit": VariableDeclarationList;
406
+ "VariableStatement:exit": VariableStatement;
407
+ "VoidExpression:exit": VoidExpression;
408
+ "VoidKeyword:exit": VoidKeyword;
409
+ "WhileStatement:exit": WhileStatement;
410
+ "WithStatement:exit": WithStatement;
411
+ "YieldExpression:exit": YieldExpression;
412
+ }, TypeScriptFileServices>;
219
413
  declare function throwUnknownLanguageExtension(filename: string): never;
220
414
  //#endregion
221
415
  export { NodeSyntaxKinds, TypeScriptFileServices, setVolarCreateFile, throwUnknownLanguageExtension, typescriptLanguage };
package/lib/language.js CHANGED
@@ -5,12 +5,12 @@ import { createTypeScriptServerHost } from "./createTypeScriptServerHost.js";
5
5
  import { getFirstEnumValues } from "./getFirstEnumValues.js";
6
6
  import { getTypeScriptFileCacheImpacts } from "./getTypeScriptFileCacheImpacts.js";
7
7
  import { orderTypeScriptFilePaths } from "./orderTypeScriptFilePaths.js";
8
- import { createLanguage } from "@flint.fyi/core";
9
8
  import * as ts$1 from "typescript";
9
+ import { createLanguage } from "@flint.fyi/core";
10
10
  import { assert, nullThrows } from "@flint.fyi/utils";
11
+ import path from "node:path";
11
12
  import { createProjectService } from "@typescript-eslint/project-service";
12
13
  import { debugForFile } from "debug-for-file";
13
- import path from "node:path";
14
14
  //#region src/language.ts
15
15
  const log = debugForFile(import.meta.filename);
16
16
  const NodeSyntaxKinds = getFirstEnumValues(ts$1.SyntaxKind);
package/lib/package.js CHANGED
@@ -1,6 +1,6 @@
1
1
  //#region package.json
2
2
  var name = "@flint.fyi/typescript-language";
3
- var version = "0.18.2";
3
+ var version = "0.18.3";
4
4
  //#endregion
5
5
  export { name, version };
6
6
 
@@ -0,0 +1,4 @@
1
+ import type * as AST from "../types/ast.ts";
2
+ export declare function isNonReferenceIdentifier(identifier: AST.Identifier): boolean;
3
+ export declare function isWriteReference(identifier: AST.Identifier): boolean;
4
+ //# sourceMappingURL=identifierReferences.d.ts.map