dot-language-support 4.0.0 → 4.0.1

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +436 -431
  2. package/dist/index.js +3277 -3739
  3. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1,566 +1,571 @@
1
- import { TextDocument } from 'vscode-languageserver-textdocument';
2
- import * as lst from 'vscode-languageserver-types';
3
- import { ColorInformation, Color as Color$1, ColorPresentation } from 'vscode-languageserver-types';
1
+ import * as lst from "vscode-languageserver-types";
2
+ import { Color as Color$1, ColorInformation, ColorPresentation } from "vscode-languageserver-types";
3
+ import { TextDocument } from "vscode-languageserver-textdocument";
4
4
 
5
+ //#region src/types.d.ts
5
6
  declare const errorSource: {
6
- readonly Scan: 1;
7
- readonly Parse: 2;
8
- readonly Check: 4;
7
+ readonly Scan: 1;
8
+ readonly Parse: 2;
9
+ readonly Check: 4;
9
10
  };
10
11
  type ErrorSource = (typeof errorSource)[keyof typeof errorSource];
11
12
  type ErrorCode = ParseErrorCode | ScanErrorCode | CheckErrorCode;
12
13
  interface ParseErrorCode {
13
- source: typeof errorSource.Parse;
14
- sub: ParseError;
14
+ source: typeof errorSource.Parse;
15
+ sub: ParseError;
15
16
  }
16
17
  interface ScanErrorCode {
17
- source: typeof errorSource.Scan;
18
- sub: ScanError;
18
+ source: typeof errorSource.Scan;
19
+ sub: ScanError;
19
20
  }
20
21
  interface CheckErrorCode {
21
- source: typeof errorSource.Check;
22
- sub: CheckError;
22
+ source: typeof errorSource.Check;
23
+ sub: CheckError;
23
24
  }
24
25
  declare const parseError: {
25
- readonly ExpectationFailed: 0;
26
- readonly TrailingData: 1;
27
- readonly FailedListParsing: 2;
26
+ readonly ExpectationFailed: 0;
27
+ readonly TrailingData: 1;
28
+ readonly FailedListParsing: 2;
28
29
  };
29
30
  type ParseError = (typeof parseError)[keyof typeof parseError];
30
31
  declare const scanError: {
31
- readonly ExpectationFailed: 0;
32
- readonly Unterminated: 1;
32
+ readonly ExpectationFailed: 0;
33
+ readonly Unterminated: 1;
33
34
  };
34
35
  type ScanError = (typeof scanError)[keyof typeof scanError];
35
36
  declare const checkError: {
36
- readonly InvalidEdgeOperation: 0;
37
- readonly InvalidShapeName: 1;
37
+ readonly InvalidEdgeOperation: 0;
38
+ readonly InvalidShapeName: 1;
38
39
  };
39
40
  type CheckError = (typeof checkError)[keyof typeof checkError];
40
41
  interface DiagnosticMessage {
41
- message: string;
42
- code: ErrorCode;
43
- category: DiagnosticCategory;
44
- start: number;
45
- end: number;
42
+ message: string;
43
+ code: ErrorCode;
44
+ category: DiagnosticCategory;
45
+ start: number;
46
+ end: number;
46
47
  }
47
48
  declare const diagnosticCategory: {
48
- readonly Error: 1;
49
- readonly Warning: 2;
50
- readonly Message: 3;
51
- readonly Suggestion: 4;
49
+ readonly Error: 1;
50
+ readonly Warning: 2;
51
+ readonly Message: 3;
52
+ readonly Suggestion: 4;
52
53
  };
53
54
  type DiagnosticCategory = (typeof diagnosticCategory)[keyof typeof diagnosticCategory];
54
55
  type ID = string;
55
56
  interface SourceFile {
56
- content: string;
57
- graph?: Graph;
58
- identifiers: Set<ID>;
59
- diagnostics: DiagnosticMessage[];
60
- symbols?: SymbolTable;
61
- colors?: ColorTable;
57
+ content: string;
58
+ graph?: Graph;
59
+ identifiers: Set<ID>;
60
+ diagnostics: DiagnosticMessage[];
61
+ symbols?: SymbolTable;
62
+ colors?: ColorTable;
62
63
  }
63
64
  interface HtmlIdentifier extends SyntaxNode {
64
- kind: typeof syntaxKind.HtmlIdentifier;
65
- htmlContent: string;
65
+ kind: typeof syntaxKind.HtmlIdentifier;
66
+ htmlContent: string;
66
67
  }
67
68
  interface TextIdentifier extends SyntaxNode {
68
- kind: typeof syntaxKind.TextIdentifier;
69
- text: string;
69
+ kind: typeof syntaxKind.TextIdentifier;
70
+ text: string;
70
71
  }
71
72
  interface QuotedTextIdentifier extends SyntaxNode {
72
- kind: typeof syntaxKind.QuotedTextIdentifier;
73
- values: SyntaxNodeArray<StringLiteral>;
74
- concatenation?: string;
73
+ kind: typeof syntaxKind.QuotedTextIdentifier;
74
+ values: SyntaxNodeArray<StringLiteral>;
75
+ concatenation?: string;
75
76
  }
76
77
  interface StringLiteral extends SyntaxNode {
77
- kind: typeof syntaxKind.StringLiteral;
78
- text: string;
78
+ kind: typeof syntaxKind.StringLiteral;
79
+ text: string;
79
80
  }
80
81
  interface NumericIdentifier extends SyntaxNode {
81
- kind: typeof syntaxKind.NumericIdentifier;
82
- text: string;
83
- value: number;
82
+ kind: typeof syntaxKind.NumericIdentifier;
83
+ text: string;
84
+ value: number;
84
85
  }
85
86
  type Identifier = TextIdentifier | QuotedTextIdentifier | HtmlIdentifier | NumericIdentifier;
86
87
  interface Graph extends SyntaxNode {
87
- kind: typeof syntaxKind.DirectedGraph | typeof syntaxKind.UndirectedGraph;
88
- keyword: Token<typeof syntaxKind.GraphKeyword | typeof syntaxKind.DigraphKeyword>;
89
- strict?: Token<typeof syntaxKind.StrictKeyword>;
90
- id?: Identifier;
91
- statements: SyntaxNodeArray<Statement>;
88
+ kind: typeof syntaxKind.DirectedGraph | typeof syntaxKind.UndirectedGraph;
89
+ keyword: Token<typeof syntaxKind.GraphKeyword | typeof syntaxKind.DigraphKeyword>;
90
+ strict?: Token<typeof syntaxKind.StrictKeyword>;
91
+ id?: Identifier;
92
+ statements: SyntaxNodeArray<Statement>;
92
93
  }
93
94
  interface StatementBase {
94
- terminator?: StatementSeparator;
95
+ terminator?: StatementSeparator;
95
96
  }
96
97
  type StatementSeparator = Token<typeof syntaxKind.SemicolonToken>;
97
98
  type Statement = NodeStatement | EdgeStatement | AttributeStatement | IdEqualsIdStatement | SubGraphStatement;
98
99
  interface NodeStatement extends SyntaxNode, StatementBase {
99
- kind: typeof syntaxKind.NodeStatement;
100
- id: NodeId;
101
- attributes: SyntaxNodeArray<AttributeContainer>;
100
+ kind: typeof syntaxKind.NodeStatement;
101
+ id: NodeId;
102
+ attributes: SyntaxNodeArray<AttributeContainer>;
102
103
  }
103
104
  interface NodeId extends SyntaxNode {
104
- kind: typeof syntaxKind.NodeId;
105
- id: Identifier;
106
- port?: PortDeclaration;
105
+ kind: typeof syntaxKind.NodeId;
106
+ id: Identifier;
107
+ port?: PortDeclaration;
107
108
  }
108
109
  type EdgeSourceOrTarget = NodeId | SubGraph;
109
110
  interface EdgeStatement extends SyntaxNode, StatementBase {
110
- kind: typeof syntaxKind.EdgeStatement;
111
- source: EdgeSourceOrTarget;
112
- rhs: SyntaxNodeArray<EdgeRhs>;
113
- attributes: SyntaxNodeArray<AttributeContainer>;
111
+ kind: typeof syntaxKind.EdgeStatement;
112
+ source: EdgeSourceOrTarget;
113
+ rhs: SyntaxNodeArray<EdgeRhs>;
114
+ attributes: SyntaxNodeArray<AttributeContainer>;
114
115
  }
115
116
  interface AttributeStatement extends SyntaxNode, StatementBase {
116
- kind: typeof syntaxKind.AttributeStatement;
117
- subject: Token<typeof syntaxKind.GraphKeyword> | Token<typeof syntaxKind.NodeKeyword> | Token<typeof syntaxKind.EdgeKeyword>;
118
- attributes: SyntaxNodeArray<AttributeContainer>;
117
+ kind: typeof syntaxKind.AttributeStatement;
118
+ subject: Token<typeof syntaxKind.GraphKeyword> | Token<typeof syntaxKind.NodeKeyword> | Token<typeof syntaxKind.EdgeKeyword>;
119
+ attributes: SyntaxNodeArray<AttributeContainer>;
119
120
  }
120
121
  interface IdEqualsIdStatement extends SyntaxNode, StatementBase {
121
- kind: typeof syntaxKind.IdEqualsIdStatement;
122
- leftId: Identifier;
123
- rightId: Identifier;
122
+ kind: typeof syntaxKind.IdEqualsIdStatement;
123
+ leftId: Identifier;
124
+ rightId: Identifier;
124
125
  }
125
126
  interface SubGraph extends SyntaxNode {
126
- kind: typeof syntaxKind.SubGraph;
127
- id?: Identifier;
128
- statements: SyntaxNodeArray<Statement>;
127
+ kind: typeof syntaxKind.SubGraph;
128
+ id?: Identifier;
129
+ statements: SyntaxNodeArray<Statement>;
129
130
  }
130
131
  interface SubGraphStatement extends SyntaxNode, StatementBase {
131
- kind: typeof syntaxKind.SubGraphStatement;
132
- subgraph: SubGraph;
132
+ kind: typeof syntaxKind.SubGraphStatement;
133
+ subgraph: SubGraph;
133
134
  }
134
135
  interface EdgeRhs extends SyntaxNode {
135
- kind: typeof syntaxKind.EdgeRhs;
136
- operation: EdgeOp;
137
- target: EdgeSourceOrTarget;
136
+ kind: typeof syntaxKind.EdgeRhs;
137
+ operation: EdgeOp;
138
+ target: EdgeSourceOrTarget;
138
139
  }
139
140
  interface AttributeContainer extends SyntaxNode {
140
- kind: typeof syntaxKind.AttributeContainer;
141
- openBracket: Token<typeof syntaxKind.OpenBracketToken>;
142
- assignments: SyntaxNodeArray<Assignment>;
143
- closeBracket: Token<typeof syntaxKind.CloseBracketToken>;
141
+ kind: typeof syntaxKind.AttributeContainer;
142
+ openBracket: Token<typeof syntaxKind.OpenBracketToken>;
143
+ assignments: SyntaxNodeArray<Assignment>;
144
+ closeBracket: Token<typeof syntaxKind.CloseBracketToken>;
144
145
  }
145
146
  interface Assignment extends SyntaxNode {
146
- kind: typeof syntaxKind.Assignment;
147
- leftId: Identifier;
148
- rightId: Identifier;
149
- terminator?: AssignmentSeparator;
147
+ kind: typeof syntaxKind.Assignment;
148
+ leftId: Identifier;
149
+ rightId: Identifier;
150
+ terminator?: AssignmentSeparator;
150
151
  }
151
152
  type AssignmentSeparator = Token<typeof syntaxKind.SemicolonToken> | Token<typeof syntaxKind.CommaToken>;
152
153
  type PortDeclaration = NormalPortDeclaration | CompassPortDeclaration;
153
154
  interface NormalPortDeclaration extends SyntaxNode {
154
- kind: typeof syntaxKind.NormalPortDeclaration;
155
- colon: Token<typeof syntaxKind.ColonToken>;
156
- id: Identifier;
157
- compassPt?: CompassPortDeclaration;
155
+ kind: typeof syntaxKind.NormalPortDeclaration;
156
+ colon: Token<typeof syntaxKind.ColonToken>;
157
+ id: Identifier;
158
+ compassPt?: CompassPortDeclaration;
158
159
  }
159
160
  interface CompassPortDeclaration extends SyntaxNode {
160
- kind: typeof syntaxKind.CompassPortDeclaration;
161
- colon: Token<typeof syntaxKind.ColonToken>;
162
- compassPt: CompassPort;
161
+ kind: typeof syntaxKind.CompassPortDeclaration;
162
+ colon: Token<typeof syntaxKind.ColonToken>;
163
+ compassPt: CompassPort;
163
164
  }
164
165
  type CompassPort = Token<typeof syntaxKind.CompassNorthToken> | Token<typeof syntaxKind.CompassNorthEastToken> | Token<typeof syntaxKind.CompassEastToken> | Token<typeof syntaxKind.CompassSouthEastToken> | Token<typeof syntaxKind.CompassSouthToken> | Token<typeof syntaxKind.CompassSouthWestToken> | Token<typeof syntaxKind.CompassWestToken> | Token<typeof syntaxKind.CompassNorthWestToken> | Token<typeof syntaxKind.CompassCenterToken> | Token<typeof syntaxKind.UnderscoreToken>;
165
166
  type EdgeOp = Token<typeof syntaxKind.DirectedEdgeOp> | Token<typeof syntaxKind.UndirectedEdgeOp>;
166
167
  interface TextRange {
167
- pos: number;
168
- end: number;
168
+ pos: number;
169
+ end: number;
169
170
  }
170
171
  type SyntaxKind = (typeof syntaxKind)[keyof typeof syntaxKind];
171
172
  declare const syntaxKind: {
172
- readonly Unknown: 0;
173
- readonly EndOfFileToken: 1;
174
- readonly NewLineTrivia: 2;
175
- readonly WhitespaceTrivia: 3;
176
- readonly HashCommentTrivia: 4;
177
- readonly SingleLineCommentTrivia: 5;
178
- readonly MultiLineCommentTrivia: 6;
179
- readonly CommaToken: 7;
180
- readonly SemicolonToken: 8;
181
- readonly PlusToken: 9;
182
- readonly OpenBraceToken: 10;
183
- readonly CloseBraceToken: 11;
184
- readonly OpenBracketToken: 12;
185
- readonly CloseBracketToken: 13;
186
- readonly ColonToken: 14;
187
- readonly EqualsToken: 15;
188
- readonly LessThan: 16;
189
- readonly GreaterThan: 17;
190
- readonly CompassNorthToken: 18;
191
- readonly CompassNorthEastToken: 19;
192
- readonly CompassEastToken: 20;
193
- readonly CompassSouthEastToken: 21;
194
- readonly CompassSouthToken: 22;
195
- readonly CompassSouthWestToken: 23;
196
- readonly CompassWestToken: 24;
197
- readonly CompassNorthWestToken: 25;
198
- readonly CompassCenterToken: 26;
199
- readonly UnderscoreToken: 27;
200
- readonly StringLiteral: 28;
201
- readonly HtmlIdentifier: 29;
202
- readonly TextIdentifier: 30;
203
- readonly QuotedTextIdentifier: 31;
204
- readonly NumericIdentifier: 32;
205
- readonly GraphKeyword: 33;
206
- readonly DigraphKeyword: 34;
207
- readonly NodeKeyword: 35;
208
- readonly EdgeKeyword: 36;
209
- readonly SubgraphKeyword: 37;
210
- readonly StrictKeyword: 38;
211
- readonly DirectedEdgeOp: 39;
212
- readonly UndirectedEdgeOp: 40;
213
- readonly DirectedGraph: 41;
214
- readonly UndirectedGraph: 42;
215
- readonly NodeStatement: 43;
216
- readonly EdgeStatement: 44;
217
- readonly AttributeStatement: 45;
218
- readonly IdEqualsIdStatement: 46;
219
- readonly SubGraph: 47;
220
- readonly SubGraphStatement: 48;
221
- readonly EdgeRhs: 49;
222
- readonly AttributeContainer: 50;
223
- readonly Assignment: 51;
224
- readonly NormalPortDeclaration: 52;
225
- readonly CompassPortDeclaration: 53;
226
- readonly NodeId: 54;
227
- readonly Count: 55;
228
- readonly FirstNode: 41;
229
- readonly CompassBegin: 18;
230
- readonly CompassEnd: 27;
231
- readonly LastKeyword: 38;
173
+ readonly Unknown: 0;
174
+ readonly EndOfFileToken: 1;
175
+ readonly NewLineTrivia: 2;
176
+ readonly WhitespaceTrivia: 3;
177
+ readonly HashCommentTrivia: 4;
178
+ readonly SingleLineCommentTrivia: 5;
179
+ readonly MultiLineCommentTrivia: 6;
180
+ readonly CommaToken: 7;
181
+ readonly SemicolonToken: 8;
182
+ readonly PlusToken: 9;
183
+ readonly OpenBraceToken: 10;
184
+ readonly CloseBraceToken: 11;
185
+ readonly OpenBracketToken: 12;
186
+ readonly CloseBracketToken: 13;
187
+ readonly ColonToken: 14;
188
+ readonly EqualsToken: 15;
189
+ readonly LessThan: 16;
190
+ readonly GreaterThan: 17;
191
+ readonly CompassNorthToken: 18;
192
+ readonly CompassNorthEastToken: 19;
193
+ readonly CompassEastToken: 20;
194
+ readonly CompassSouthEastToken: 21;
195
+ readonly CompassSouthToken: 22;
196
+ readonly CompassSouthWestToken: 23;
197
+ readonly CompassWestToken: 24;
198
+ readonly CompassNorthWestToken: 25;
199
+ readonly CompassCenterToken: 26;
200
+ readonly UnderscoreToken: 27;
201
+ readonly StringLiteral: 28;
202
+ readonly HtmlIdentifier: 29;
203
+ readonly TextIdentifier: 30;
204
+ readonly QuotedTextIdentifier: 31;
205
+ readonly NumericIdentifier: 32;
206
+ readonly GraphKeyword: 33;
207
+ readonly DigraphKeyword: 34;
208
+ readonly NodeKeyword: 35;
209
+ readonly EdgeKeyword: 36;
210
+ readonly SubgraphKeyword: 37;
211
+ readonly StrictKeyword: 38;
212
+ readonly DirectedEdgeOp: 39;
213
+ readonly UndirectedEdgeOp: 40;
214
+ readonly DirectedGraph: 41;
215
+ readonly UndirectedGraph: 42;
216
+ readonly NodeStatement: 43;
217
+ readonly EdgeStatement: 44;
218
+ readonly AttributeStatement: 45;
219
+ readonly IdEqualsIdStatement: 46;
220
+ readonly SubGraph: 47;
221
+ readonly SubGraphStatement: 48;
222
+ readonly EdgeRhs: 49;
223
+ readonly AttributeContainer: 50;
224
+ readonly Assignment: 51;
225
+ readonly NormalPortDeclaration: 52;
226
+ readonly CompassPortDeclaration: 53;
227
+ readonly NodeId: 54;
228
+ readonly Count: 55;
229
+ readonly FirstNode: 41;
230
+ readonly CompassBegin: 18;
231
+ readonly CompassEnd: 27;
232
+ readonly LastKeyword: 38;
232
233
  };
233
234
  declare const syntaxKindNames: {
234
- readonly 0: "Unknown";
235
- readonly 1: "EndOfFileToken";
236
- readonly 2: "NewLineTrivia";
237
- readonly 3: "WhitespaceTrivia";
238
- readonly 4: "HashCommentTrivia";
239
- readonly 5: "SingleLineCommentTrivia";
240
- readonly 6: "MultiLineCommentTrivia";
241
- readonly 7: "CommaToken";
242
- readonly 8: "SemicolonToken";
243
- readonly 9: "PlusToken";
244
- readonly 10: "OpenBraceToken";
245
- readonly 11: "CloseBraceToken";
246
- readonly 12: "OpenBracketToken";
247
- readonly 13: "CloseBracketToken";
248
- readonly 14: "ColonToken";
249
- readonly 15: "EqualsToken";
250
- readonly 16: "LessThan";
251
- readonly 17: "GreaterThan";
252
- readonly 18: "CompassNorthToken";
253
- readonly 19: "CompassNorthEastToken";
254
- readonly 20: "CompassEastToken";
255
- readonly 21: "CompassSouthEastToken";
256
- readonly 22: "CompassSouthToken";
257
- readonly 23: "CompassSouthWestToken";
258
- readonly 24: "CompassWestToken";
259
- readonly 25: "CompassNorthWestToken";
260
- readonly 26: "CompassCenterToken";
261
- readonly 27: "UnderscoreToken";
262
- readonly 28: "StringLiteral";
263
- readonly 29: "HtmlIdentifier";
264
- readonly 30: "TextIdentifier";
265
- readonly 31: "QuotedTextIdentifier";
266
- readonly 32: "NumericIdentifier";
267
- readonly 33: "GraphKeyword";
268
- readonly 34: "DigraphKeyword";
269
- readonly 35: "NodeKeyword";
270
- readonly 36: "EdgeKeyword";
271
- readonly 37: "SubgraphKeyword";
272
- readonly 38: "StrictKeyword";
273
- readonly 39: "DirectedEdgeOp";
274
- readonly 40: "UndirectedEdgeOp";
275
- readonly 41: "DirectedGraph";
276
- readonly 42: "UndirectedGraph";
277
- readonly 43: "NodeStatement";
278
- readonly 44: "EdgeStatement";
279
- readonly 45: "AttributeStatement";
280
- readonly 46: "IdEqualsIdStatement";
281
- readonly 47: "SubGraph";
282
- readonly 48: "SubGraphStatement";
283
- readonly 49: "EdgeRhs";
284
- readonly 50: "AttributeContainer";
285
- readonly 51: "Assignment";
286
- readonly 52: "NormalPortDeclaration";
287
- readonly 53: "CompassPortDeclaration";
288
- readonly 54: "NodeId";
289
- readonly 55: "Count";
235
+ readonly 0: "Unknown";
236
+ readonly 1: "EndOfFileToken";
237
+ readonly 2: "NewLineTrivia";
238
+ readonly 3: "WhitespaceTrivia";
239
+ readonly 4: "HashCommentTrivia";
240
+ readonly 5: "SingleLineCommentTrivia";
241
+ readonly 6: "MultiLineCommentTrivia";
242
+ readonly 7: "CommaToken";
243
+ readonly 8: "SemicolonToken";
244
+ readonly 9: "PlusToken";
245
+ readonly 10: "OpenBraceToken";
246
+ readonly 11: "CloseBraceToken";
247
+ readonly 12: "OpenBracketToken";
248
+ readonly 13: "CloseBracketToken";
249
+ readonly 14: "ColonToken";
250
+ readonly 15: "EqualsToken";
251
+ readonly 16: "LessThan";
252
+ readonly 17: "GreaterThan";
253
+ readonly 18: "CompassNorthToken";
254
+ readonly 19: "CompassNorthEastToken";
255
+ readonly 20: "CompassEastToken";
256
+ readonly 21: "CompassSouthEastToken";
257
+ readonly 22: "CompassSouthToken";
258
+ readonly 23: "CompassSouthWestToken";
259
+ readonly 24: "CompassWestToken";
260
+ readonly 25: "CompassNorthWestToken";
261
+ readonly 26: "CompassCenterToken";
262
+ readonly 27: "UnderscoreToken";
263
+ readonly 28: "StringLiteral";
264
+ readonly 29: "HtmlIdentifier";
265
+ readonly 30: "TextIdentifier";
266
+ readonly 31: "QuotedTextIdentifier";
267
+ readonly 32: "NumericIdentifier";
268
+ readonly 33: "GraphKeyword";
269
+ readonly 34: "DigraphKeyword";
270
+ readonly 35: "NodeKeyword";
271
+ readonly 36: "EdgeKeyword";
272
+ readonly 37: "SubgraphKeyword";
273
+ readonly 38: "StrictKeyword";
274
+ readonly 39: "DirectedEdgeOp";
275
+ readonly 40: "UndirectedEdgeOp";
276
+ readonly 41: "DirectedGraph";
277
+ readonly 42: "UndirectedGraph";
278
+ readonly 43: "NodeStatement";
279
+ readonly 44: "EdgeStatement";
280
+ readonly 45: "AttributeStatement";
281
+ readonly 46: "IdEqualsIdStatement";
282
+ readonly 47: "SubGraph";
283
+ readonly 48: "SubGraphStatement";
284
+ readonly 49: "EdgeRhs";
285
+ readonly 50: "AttributeContainer";
286
+ readonly 51: "Assignment";
287
+ readonly 52: "NormalPortDeclaration";
288
+ readonly 53: "CompassPortDeclaration";
289
+ readonly 54: "NodeId";
290
+ readonly 55: "Count";
290
291
  };
291
292
  interface SyntaxNode extends TextRange {
292
- kind: SyntaxKind;
293
- flags: SyntaxNodeFlags;
294
- graphContext?: GraphContext;
295
- parent?: SyntaxNode;
296
- symbol?: TypeSymbol;
293
+ kind: SyntaxKind;
294
+ flags: SyntaxNodeFlags;
295
+ graphContext?: GraphContext;
296
+ parent?: SyntaxNode;
297
+ symbol?: TypeSymbol;
297
298
  }
298
299
  interface Token<TKind extends SyntaxKind> extends SyntaxNode {
299
- kind: TKind;
300
+ kind: TKind;
300
301
  }
301
302
  interface SyntaxNodeArray<T extends SyntaxNode> extends ReadonlyArray<T>, TextRange {
302
- hasTrailingComma?: boolean;
303
+ hasTrailingComma?: boolean;
303
304
  }
304
305
  type MutableSyntaxNodeArray<T extends SyntaxNode> = SyntaxNodeArray<T> & T[];
305
306
  declare const syntaxNodeFlags: {
306
- readonly None: 0;
307
- readonly ContainsErrors: number;
308
- readonly Synthesized: number;
307
+ readonly None: 0;
308
+ readonly ContainsErrors: number;
309
+ readonly Synthesized: number;
309
310
  };
310
311
  type SyntaxNodeFlags = (typeof syntaxNodeFlags)[keyof typeof syntaxNodeFlags];
311
312
  declare const graphContext: {
312
- readonly None: 0;
313
- readonly Strict: number;
314
- readonly Directed: number;
315
- readonly Undirected: number;
313
+ readonly None: 0;
314
+ readonly Strict: number;
315
+ readonly Directed: number;
316
+ readonly Undirected: number;
316
317
  };
317
318
  type GraphContext = (typeof graphContext)[keyof typeof graphContext];
318
319
  declare const tokenFlags: {
319
- readonly None: 0;
320
- readonly Unterminated: number;
321
- readonly PrecedingLineBreak: number;
320
+ readonly None: 0;
321
+ readonly Unterminated: number;
322
+ readonly PrecedingLineBreak: number;
322
323
  };
323
324
  type TokenFlags = (typeof tokenFlags)[keyof typeof tokenFlags];
324
325
  type CharacterCodes = (typeof characterCodes)[keyof typeof characterCodes];
325
326
  declare const characterCodes: {
326
- readonly nullCharacter: 0;
327
- readonly maxAsciiCharacter: 127;
328
- readonly lineFeed: 10;
329
- readonly carriageReturn: 13;
330
- readonly lineSeparator: 8232;
331
- readonly paragraphSeparator: 8233;
332
- readonly nextLine: 133;
333
- readonly space: 32;
334
- readonly nonBreakingSpace: 160;
335
- readonly enQuad: 8192;
336
- readonly emQuad: 8193;
337
- readonly enSpace: 8194;
338
- readonly emSpace: 8195;
339
- readonly threePerEmSpace: 8196;
340
- readonly fourPerEmSpace: 8197;
341
- readonly sixPerEmSpace: 8198;
342
- readonly figureSpace: 8199;
343
- readonly punctuationSpace: 8200;
344
- readonly thinSpace: 8201;
345
- readonly hairSpace: 8202;
346
- readonly zeroWidthSpace: 8203;
347
- readonly narrowNoBreakSpace: 8239;
348
- readonly ideographicSpace: 12288;
349
- readonly mathematicalSpace: 8287;
350
- readonly ogham: 5760;
351
- readonly _: 95;
352
- readonly $: 36;
353
- readonly _0: 48;
354
- readonly _1: 49;
355
- readonly _2: 50;
356
- readonly _3: 51;
357
- readonly _4: 52;
358
- readonly _5: 53;
359
- readonly _6: 54;
360
- readonly _7: 55;
361
- readonly _8: 56;
362
- readonly _9: 57;
363
- readonly a: 97;
364
- readonly b: 98;
365
- readonly c: 99;
366
- readonly d: 100;
367
- readonly e: 101;
368
- readonly f: 102;
369
- readonly g: 103;
370
- readonly h: 104;
371
- readonly i: 105;
372
- readonly j: 106;
373
- readonly k: 107;
374
- readonly l: 108;
375
- readonly m: 109;
376
- readonly n: 110;
377
- readonly o: 111;
378
- readonly p: 112;
379
- readonly q: 113;
380
- readonly r: 114;
381
- readonly s: 115;
382
- readonly t: 116;
383
- readonly u: 117;
384
- readonly v: 118;
385
- readonly w: 119;
386
- readonly x: 120;
387
- readonly y: 121;
388
- readonly z: 122;
389
- readonly A: 65;
390
- readonly B: 66;
391
- readonly C: 67;
392
- readonly D: 68;
393
- readonly E: 69;
394
- readonly F: 70;
395
- readonly G: 71;
396
- readonly H: 72;
397
- readonly I: 73;
398
- readonly J: 74;
399
- readonly K: 75;
400
- readonly L: 76;
401
- readonly M: 77;
402
- readonly N: 78;
403
- readonly O: 79;
404
- readonly P: 80;
405
- readonly Q: 81;
406
- readonly R: 82;
407
- readonly S: 83;
408
- readonly T: 84;
409
- readonly U: 85;
410
- readonly V: 86;
411
- readonly W: 87;
412
- readonly X: 88;
413
- readonly Y: 89;
414
- readonly Z: 90;
415
- readonly ampersand: 38;
416
- readonly asterisk: 42;
417
- readonly at: 64;
418
- readonly backslash: 92;
419
- readonly backtick: 96;
420
- readonly bar: 124;
421
- readonly caret: 94;
422
- readonly closeBrace: 125;
423
- readonly closeBracket: 93;
424
- readonly closeParen: 41;
425
- readonly colon: 58;
426
- readonly comma: 44;
427
- readonly dot: 46;
428
- readonly doubleQuote: 34;
429
- readonly equals: 61;
430
- readonly exclamation: 33;
431
- readonly greaterThan: 62;
432
- readonly hash: 35;
433
- readonly lessThan: 60;
434
- readonly minus: 45;
435
- readonly openBrace: 123;
436
- readonly openBracket: 91;
437
- readonly openParen: 40;
438
- readonly percent: 37;
439
- readonly plus: 43;
440
- readonly question: 63;
441
- readonly semicolon: 59;
442
- readonly singleQuote: 39;
443
- readonly slash: 47;
444
- readonly tilde: 126;
445
- readonly backspace: 8;
446
- readonly formFeed: 12;
447
- readonly byteOrderMark: 65279;
448
- readonly tab: 9;
449
- readonly verticalTab: 11;
327
+ readonly nullCharacter: 0;
328
+ readonly maxAsciiCharacter: 127;
329
+ readonly lineFeed: 10;
330
+ readonly carriageReturn: 13;
331
+ readonly lineSeparator: 8232;
332
+ readonly paragraphSeparator: 8233;
333
+ readonly nextLine: 133;
334
+ readonly space: 32;
335
+ readonly nonBreakingSpace: 160;
336
+ readonly enQuad: 8192;
337
+ readonly emQuad: 8193;
338
+ readonly enSpace: 8194;
339
+ readonly emSpace: 8195;
340
+ readonly threePerEmSpace: 8196;
341
+ readonly fourPerEmSpace: 8197;
342
+ readonly sixPerEmSpace: 8198;
343
+ readonly figureSpace: 8199;
344
+ readonly punctuationSpace: 8200;
345
+ readonly thinSpace: 8201;
346
+ readonly hairSpace: 8202;
347
+ readonly zeroWidthSpace: 8203;
348
+ readonly narrowNoBreakSpace: 8239;
349
+ readonly ideographicSpace: 12288;
350
+ readonly mathematicalSpace: 8287;
351
+ readonly ogham: 5760;
352
+ readonly _: 95;
353
+ readonly $: 36;
354
+ readonly _0: 48;
355
+ readonly _1: 49;
356
+ readonly _2: 50;
357
+ readonly _3: 51;
358
+ readonly _4: 52;
359
+ readonly _5: 53;
360
+ readonly _6: 54;
361
+ readonly _7: 55;
362
+ readonly _8: 56;
363
+ readonly _9: 57;
364
+ readonly a: 97;
365
+ readonly b: 98;
366
+ readonly c: 99;
367
+ readonly d: 100;
368
+ readonly e: 101;
369
+ readonly f: 102;
370
+ readonly g: 103;
371
+ readonly h: 104;
372
+ readonly i: 105;
373
+ readonly j: 106;
374
+ readonly k: 107;
375
+ readonly l: 108;
376
+ readonly m: 109;
377
+ readonly n: 110;
378
+ readonly o: 111;
379
+ readonly p: 112;
380
+ readonly q: 113;
381
+ readonly r: 114;
382
+ readonly s: 115;
383
+ readonly t: 116;
384
+ readonly u: 117;
385
+ readonly v: 118;
386
+ readonly w: 119;
387
+ readonly x: 120;
388
+ readonly y: 121;
389
+ readonly z: 122;
390
+ readonly A: 65;
391
+ readonly B: 66;
392
+ readonly C: 67;
393
+ readonly D: 68;
394
+ readonly E: 69;
395
+ readonly F: 70;
396
+ readonly G: 71;
397
+ readonly H: 72;
398
+ readonly I: 73;
399
+ readonly J: 74;
400
+ readonly K: 75;
401
+ readonly L: 76;
402
+ readonly M: 77;
403
+ readonly N: 78;
404
+ readonly O: 79;
405
+ readonly P: 80;
406
+ readonly Q: 81;
407
+ readonly R: 82;
408
+ readonly S: 83;
409
+ readonly T: 84;
410
+ readonly U: 85;
411
+ readonly V: 86;
412
+ readonly W: 87;
413
+ readonly X: 88;
414
+ readonly Y: 89;
415
+ readonly Z: 90;
416
+ readonly ampersand: 38;
417
+ readonly asterisk: 42;
418
+ readonly at: 64;
419
+ readonly backslash: 92;
420
+ readonly backtick: 96;
421
+ readonly bar: 124;
422
+ readonly caret: 94;
423
+ readonly closeBrace: 125;
424
+ readonly closeBracket: 93;
425
+ readonly closeParen: 41;
426
+ readonly colon: 58;
427
+ readonly comma: 44;
428
+ readonly dot: 46;
429
+ readonly doubleQuote: 34;
430
+ readonly equals: 61;
431
+ readonly exclamation: 33;
432
+ readonly greaterThan: 62;
433
+ readonly hash: 35;
434
+ readonly lessThan: 60;
435
+ readonly minus: 45;
436
+ readonly openBrace: 123;
437
+ readonly openBracket: 91;
438
+ readonly openParen: 40;
439
+ readonly percent: 37;
440
+ readonly plus: 43;
441
+ readonly question: 63;
442
+ readonly semicolon: 59;
443
+ readonly singleQuote: 39;
444
+ readonly slash: 47;
445
+ readonly tilde: 126;
446
+ readonly backspace: 8;
447
+ readonly formFeed: 12;
448
+ readonly byteOrderMark: 65279;
449
+ readonly tab: 9;
450
+ readonly verticalTab: 11;
450
451
  };
451
452
  type SymbolTable = Map<string, TypeSymbol>;
452
453
  type ColorTable = Map<string, ColorInfo>;
453
454
  interface TypeSymbol {
454
- name: string;
455
- firstMention: SyntaxNode;
456
- references?: SyntaxNode[];
457
- members?: SymbolTable;
455
+ name: string;
456
+ firstMention: SyntaxNode;
457
+ references?: SyntaxNode[];
458
+ members?: SymbolTable;
458
459
  }
459
460
  interface ColorInfo {
460
- node: SyntaxNode;
461
+ node: SyntaxNode;
461
462
  }
462
463
  interface Color {
463
- readonly red: number;
464
- readonly green: number;
465
- readonly blue: number;
466
- readonly alpha: number;
464
+ readonly red: number;
465
+ readonly green: number;
466
+ readonly blue: number;
467
+ readonly alpha: number;
467
468
  }
468
469
  type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
469
470
  type StatementOf<T extends Statement["kind"]> = T extends typeof syntaxKind.SubGraphStatement ? SubGraphStatement : T extends typeof syntaxKind.AttributeStatement ? AttributeStatement : T extends typeof syntaxKind.EdgeStatement ? EdgeStatement : T extends typeof syntaxKind.IdEqualsIdStatement ? IdEqualsIdStatement : T extends typeof syntaxKind.NodeStatement ? NodeStatement : never;
470
-
471
+ //#endregion
472
+ //#region src/scanner.d.ts
471
473
  interface Scanner {
472
- readonly end: number;
473
- readonly pos: number;
474
- readonly startPos: number;
475
- readonly tokenPos: number;
476
- readonly token: SyntaxKind;
477
- readonly tokenValue: string | undefined;
478
- readonly isUnterminated: boolean;
479
- readonly text: string;
480
- readonly onError: ErrorCallback | null;
481
- setText(newText?: string, start?: number, length?: number): void;
482
- setErrorCallback(cb: ErrorCallback): void;
483
- scan(skipTrivia: boolean): SyntaxKind;
484
- lookAhead(callback: () => SyntaxKind | boolean): SyntaxKind | boolean;
485
- tryScan(callback: () => SyntaxKind | boolean): SyntaxKind | boolean;
474
+ readonly end: number;
475
+ readonly pos: number;
476
+ readonly startPos: number;
477
+ readonly tokenPos: number;
478
+ readonly token: SyntaxKind;
479
+ readonly tokenValue: string | undefined;
480
+ readonly isUnterminated: boolean;
481
+ readonly text: string;
482
+ readonly onError: ErrorCallback | null;
483
+ setText(newText?: string, start?: number, length?: number): void;
484
+ setErrorCallback(cb: ErrorCallback): void;
485
+ scan(skipTrivia: boolean): SyntaxKind;
486
+ lookAhead(callback: () => SyntaxKind | boolean): SyntaxKind | boolean;
487
+ tryScan(callback: () => SyntaxKind | boolean): SyntaxKind | boolean;
486
488
  }
487
489
  declare function getTokenAsText(token: SyntaxKind): string | undefined;
488
490
  declare function getTextAsToken(token: string): SyntaxKind | undefined;
489
491
  type ErrorCallback = (message: string, category: DiagnosticCategory, sub: ScanError, length: number) => void;
490
492
  declare class DefaultScanner implements Scanner {
491
- #private;
492
- end: number;
493
- pos: number;
494
- startPos: number;
495
- tokenPos: number;
496
- token: SyntaxKind;
497
- tokenValue: string | undefined;
498
- tokenFlags: TokenFlags;
499
- isUnterminated: boolean;
500
- text: string;
501
- onError: ErrorCallback | null;
502
- setText(newText?: string, start?: number, length?: number): void;
503
- setErrorCallback(cb: ErrorCallback | null): void;
504
- scan(skipTrivia?: boolean): SyntaxKind;
505
- lookAhead<T extends SyntaxKind>(callback: () => T): T;
506
- tryScan<T extends SyntaxKind>(callback: () => T): T;
493
+ #private;
494
+ end: number;
495
+ pos: number;
496
+ startPos: number;
497
+ tokenPos: number;
498
+ token: SyntaxKind;
499
+ tokenValue: string | undefined;
500
+ tokenFlags: TokenFlags;
501
+ isUnterminated: boolean;
502
+ text: string;
503
+ onError: ErrorCallback | null;
504
+ setText(newText?: string, start?: number, length?: number): void;
505
+ setErrorCallback(cb: ErrorCallback | null): void;
506
+ scan(skipTrivia?: boolean): SyntaxKind;
507
+ lookAhead<T extends SyntaxKind>(callback: () => T): T;
508
+ tryScan<T extends SyntaxKind>(callback: () => T): T;
507
509
  }
508
510
  declare function isIdentifierStart(ch: number): boolean;
509
511
  declare function skipTrivia(text: string, pos: number): number;
510
512
  declare function isLineBreak(ch: number): boolean;
511
-
513
+ //#endregion
514
+ //#region src/parser.d.ts
512
515
  type ParsingContext = (typeof parsingContext)[keyof typeof parsingContext];
513
516
  declare const parsingContext: {
514
- readonly None: 0;
515
- readonly StatementList: 1;
516
- readonly AttributeContainerList: 2;
517
- readonly AssignmentList: 3;
518
- readonly EdgeRhsList: 4;
519
- readonly QuotedTextIdentifierConcatenation: 5;
520
- readonly Count: 6;
517
+ readonly None: 0;
518
+ readonly StatementList: 1;
519
+ readonly AttributeContainerList: 2;
520
+ readonly AssignmentList: 3;
521
+ readonly EdgeRhsList: 4;
522
+ readonly QuotedTextIdentifierConcatenation: 5;
523
+ readonly Count: 6;
521
524
  };
522
525
  declare class Parser {
523
- #private;
524
- currentToken: SyntaxKind;
525
- nodeCount: number;
526
- identifiers: Set<string>;
527
- identifierCount: number;
528
- sourceText: string;
529
- scanner: Scanner;
530
- currentNodeHasError: boolean;
531
- currentContext: ParsingContext;
532
- diagnostics: DiagnosticMessage[];
533
- constructor();
534
- parse(sourceText: string): SourceFile;
526
+ #private;
527
+ currentToken: SyntaxKind;
528
+ nodeCount: number;
529
+ identifiers: Set<string>;
530
+ identifierCount: number;
531
+ sourceText: string;
532
+ scanner: Scanner;
533
+ currentNodeHasError: boolean;
534
+ currentContext: ParsingContext;
535
+ diagnostics: DiagnosticMessage[];
536
+ constructor();
537
+ parse(sourceText: string): SourceFile;
535
538
  }
536
539
  declare function isIdentifier(kind: SyntaxKind): kind is 29 | 30 | 31 | 32;
537
540
  declare function isIdentifierNode(node: SyntaxNode): node is Identifier;
538
-
541
+ //#endregion
542
+ //#region src/service/service.d.ts
539
543
  interface DocumentLike {
540
- positionAt(offset: number): lst.Position;
541
- offsetAt(position: lst.Position): number;
542
- readonly uri: string;
544
+ positionAt(offset: number): lst.Position;
545
+ offsetAt(position: lst.Position): number;
546
+ readonly uri: string;
543
547
  }
544
548
  interface CommandApplication {
545
- label?: string;
546
- edit: lst.WorkspaceEdit;
549
+ label?: string;
550
+ edit: lst.WorkspaceEdit;
547
551
  }
548
552
  interface LanguageService {
549
- parseDocument(doc: TextDocument | string): SourceFile;
550
- validateDocument(doc: DocumentLike, sourceFile: SourceFile): lst.Diagnostic[];
551
- hover(doc: DocumentLike, sourceFile: SourceFile, position: lst.Position): lst.Hover | undefined;
552
- findReferences(doc: DocumentLike, sourceFile: SourceFile, position: lst.Position, context: lst.ReferenceContext): lst.Location[];
553
- findDefinition(doc: DocumentLike, sourceFile: SourceFile, position: lst.Position): lst.Location | undefined;
554
- renameSymbol(doc: DocumentLike, sourceFile: SourceFile, position: lst.Position, newName: string): lst.WorkspaceEdit | undefined;
555
- getCompletions(doc: DocumentLike, sourceFile: SourceFile, position: lst.Position): lst.CompletionItem[];
556
- getDocumentColors(doc: DocumentLike, sourceFile: SourceFile): ColorInformation[] | undefined;
557
- getColorRepresentations(doc: DocumentLike, sourceFile: SourceFile, color: Color$1, range: lst.Range): ColorPresentation[] | undefined;
558
- getCodeActions(doc: DocumentLike, sourceFile: SourceFile, range: lst.Range, context: lst.CodeActionContext): lst.Command[] | undefined;
559
- executeCommand(doc: DocumentLike, sourceFile: SourceFile, command: Omit<lst.Command, "title">): CommandApplication | undefined;
560
- getAvailableCommands(): string[];
553
+ parseDocument(doc: TextDocument | string): SourceFile;
554
+ validateDocument(doc: DocumentLike, sourceFile: SourceFile): lst.Diagnostic[];
555
+ hover(doc: DocumentLike, sourceFile: SourceFile, position: lst.Position): lst.Hover | undefined;
556
+ findReferences(doc: DocumentLike, sourceFile: SourceFile, position: lst.Position, context: lst.ReferenceContext): lst.Location[];
557
+ findDefinition(doc: DocumentLike, sourceFile: SourceFile, position: lst.Position): lst.Location | undefined;
558
+ renameSymbol(doc: DocumentLike, sourceFile: SourceFile, position: lst.Position, newName: string): lst.WorkspaceEdit | undefined;
559
+ getCompletions(doc: DocumentLike, sourceFile: SourceFile, position: lst.Position): lst.CompletionItem[];
560
+ getDocumentColors(doc: DocumentLike, sourceFile: SourceFile): ColorInformation[] | undefined;
561
+ getColorRepresentations(doc: DocumentLike, sourceFile: SourceFile, color: Color$1, range: lst.Range): ColorPresentation[] | undefined;
562
+ getCodeActions(doc: DocumentLike, sourceFile: SourceFile, range: lst.Range, context: lst.CodeActionContext): lst.Command[] | undefined;
563
+ executeCommand(doc: DocumentLike, sourceFile: SourceFile, command: Omit<lst.Command, "title">): CommandApplication | undefined;
564
+ getAvailableCommands(): string[];
561
565
  }
562
566
  declare function createService(): LanguageService;
563
-
567
+ //#endregion
568
+ //#region src/visitor.d.ts
564
569
  declare function forEachChild<TReturn>(node: SyntaxNode, cbNode: (node: SyntaxNode) => TReturn, cbNodes?: (nodes: SyntaxNodeArray<SyntaxNode>) => TReturn): TReturn | undefined;
565
-
566
- export { type Assignment, type AssignmentSeparator, type AttributeContainer, type AttributeStatement, type CharacterCodes, type CheckError, type CheckErrorCode, type Color, type ColorInfo, type ColorTable, type CommandApplication, type CompassPort, type CompassPortDeclaration, DefaultScanner, type DiagnosticCategory, type DiagnosticMessage, type DocumentLike, type EdgeOp, type EdgeRhs, type EdgeSourceOrTarget, type EdgeStatement, type ErrorCallback, type ErrorCode, type ErrorSource, type Graph, type GraphContext, type HtmlIdentifier, type ID, type IdEqualsIdStatement, type Identifier, type LanguageService, type MutableSyntaxNodeArray, type NodeId, type NodeStatement, type NormalPortDeclaration, type NumericIdentifier, type Omit, type ParseError, type ParseErrorCode, Parser, type ParsingContext, type PortDeclaration, type QuotedTextIdentifier, type ScanError, type ScanErrorCode, type Scanner, type SourceFile, type Statement, type StatementBase, type StatementOf, type StatementSeparator, type StringLiteral, type SubGraph, type SubGraphStatement, type SymbolTable, type SyntaxKind, type SyntaxNode, type SyntaxNodeArray, type SyntaxNodeFlags, type TextIdentifier, type TextRange, type Token, type TokenFlags, type TypeSymbol, characterCodes, checkError, createService, diagnosticCategory, errorSource, forEachChild, getTextAsToken, getTokenAsText, graphContext, isIdentifier, isIdentifierNode, isIdentifierStart, isLineBreak, parseError, parsingContext, scanError, skipTrivia, syntaxKind, syntaxKindNames, syntaxNodeFlags, tokenFlags };
570
+ //#endregion
571
+ export { Assignment, AssignmentSeparator, AttributeContainer, AttributeStatement, CharacterCodes, CheckError, CheckErrorCode, Color, ColorInfo, ColorTable, CommandApplication, CompassPort, CompassPortDeclaration, DefaultScanner, DiagnosticCategory, DiagnosticMessage, DocumentLike, EdgeOp, EdgeRhs, EdgeSourceOrTarget, EdgeStatement, ErrorCallback, ErrorCode, ErrorSource, Graph, GraphContext, HtmlIdentifier, ID, IdEqualsIdStatement, Identifier, LanguageService, MutableSyntaxNodeArray, NodeId, NodeStatement, NormalPortDeclaration, NumericIdentifier, Omit, ParseError, ParseErrorCode, Parser, ParsingContext, PortDeclaration, QuotedTextIdentifier, ScanError, ScanErrorCode, Scanner, SourceFile, Statement, StatementBase, StatementOf, StatementSeparator, StringLiteral, SubGraph, SubGraphStatement, SymbolTable, SyntaxKind, SyntaxNode, SyntaxNodeArray, SyntaxNodeFlags, TextIdentifier, TextRange, Token, TokenFlags, TypeSymbol, characterCodes, checkError, createService, diagnosticCategory, errorSource, forEachChild, getTextAsToken, getTokenAsText, graphContext, isIdentifier, isIdentifierNode, isIdentifierStart, isLineBreak, parseError, parsingContext, scanError, skipTrivia, syntaxKind, syntaxKindNames, syntaxNodeFlags, tokenFlags };