/third_party/typescript/src/services/ |
D | preProcess.ts | 148 … while (token !== SyntaxKind.CloseBraceToken && token !== SyntaxKind.EndOfFileToken) { 208 … while (token !== SyntaxKind.CloseBraceToken && token !== SyntaxKind.EndOfFileToken) { 308 … while (token !== SyntaxKind.CloseBracketToken && token !== SyntaxKind.EndOfFileToken) { 344 if (scanner.getToken() === SyntaxKind.EndOfFileToken) {
|
D | outliningElementsCollector.ts | 37 … if (isDeclaration(n) || isVariableStatement(n) || n.kind === SyntaxKind.EndOfFileToken) {
|
D | utilities.ts | 1134 …f (position < end || (position === end && (child.kind === SyntaxKind.EndOfFileToken || includeEndP… 1198 if (isNonWhitespaceToken(n) && n.kind !== SyntaxKind.EndOfFileToken) { 1243 …defined || n.kind === SyntaxKind.SourceFile || n.kind === SyntaxKind.EndOfFileToken || isJSDocComm… 1594 …return n.kind === SyntaxKind.EndOfFileToken ? !!(n as EndOfFileToken).jsDoc : n.getWidth(sourceFil…
|
D | services.ts | 192 if (token === SyntaxKind.EndOfFileToken) { 284 …return this.kind === SyntaxKind.EndOfFileToken ? (this as EndOfFileToken).jsDoc || emptyArray : em… 628 public endOfFileToken!: Token<SyntaxKind.EndOfFileToken>;
|
D | breakpoints.ts | 213 case SyntaxKind.EndOfFileToken:
|
D | classifier.ts | 85 } while (token !== SyntaxKind.EndOfFileToken);
|
D | completions.ts | 2896 case SyntaxKind.EndOfFileToken:
|
/third_party/typescript/src/services/formatting/ |
D | formattingScanner.ts | 267 function readEOFTokenRange(): TextRangeWithKind<SyntaxKind.EndOfFileToken> { 269 …rn createTextRangeWithKind(scanner.getStartPos(), scanner.getTextPos(), SyntaxKind.EndOfFileToken); 275 return startPos < endPos && current !== SyntaxKind.EndOfFileToken && !isTrivia(current); 280 return current === SyntaxKind.EndOfFileToken;
|
D | rules.ts | 12 if (token !== SyntaxKind.EndOfFileToken) { 22 const anyTokenIncludingEOF = tokenRangeFrom([...allTokens, SyntaxKind.EndOfFileToken]); 851 || nextTokenKind === SyntaxKind.EndOfFileToken;
|
D | formatting.ts | 1034 …rimTrailingWhitespaces = trimTrailingWhitespaces && currentItem.kind !== SyntaxKind.EndOfFileToken;
|
/third_party/typescript/src/testRunner/unittests/ |
D | jsDocParsing.ts | 378 assert.equal(last!.kind, SyntaxKind.EndOfFileToken);
|
/third_party/typescript/src/linter/ |
D | TypeScriptLinterConfig.ts | 164 SyntaxKind.EndOfFileToken, SyntaxKind.SingleLineCommentTrivia,
|
/third_party/typescript/src/compiler/ |
D | parser.ts | 871 const isInvalid = token() === SyntaxKind.EndOfFileToken && !parseDiagnostics.length; 884 if (token() === SyntaxKind.EndOfFileToken) { 886 endOfFileToken = parseTokenNode<EndOfFileToken>(); 922 … endOfFileToken = parseExpectedToken(SyntaxKind.EndOfFileToken, Diagnostics.Unexpected_token); 1034 Debug.assert(token() === SyntaxKind.EndOfFileToken); 1035 const endOfFileToken = addJSDocComment(parseTokenNode<EndOfFileToken>()); 1112 while (token() !== SyntaxKind.EndOfFileToken) { 1196 …tionFile: boolean, statements: readonly Statement[], endOfFileToken: EndOfFileToken, flags: NodeFl… 1698 …return token() === SyntaxKind.CloseBraceToken || token() === SyntaxKind.EndOfFileToken || scanner.… 1807 const reportAtCurrentPosition = token() === SyntaxKind.EndOfFileToken; [all …]
|
D | types.ts | 23 EndOfFileToken, enumerator 690 | SyntaxKind.EndOfFileToken 701 | SyntaxKind.EndOfFileToken 710 | SyntaxKind.EndOfFileToken 917 | EndOfFileToken 1006 export type EndOfFileToken = Token<SyntaxKind.EndOfFileToken> & JSDocContainer; alias 3442 readonly endOfFileToken: Token<SyntaxKind.EndOfFileToken>; 6917 …createToken<TKind extends SyntaxKind.Unknown | SyntaxKind.EndOfFileToken>(token: TKind): Token<TKi… 7367 …createSourceFile(statements: readonly Statement[], endOfFileToken: EndOfFileToken, flags: NodeFlag…
|
D | scanner.ts | 1608 return token = SyntaxKind.EndOfFileToken; 2261 return token = SyntaxKind.EndOfFileToken; 2396 return token = SyntaxKind.EndOfFileToken;
|
D | binder.ts | 2477 if (node.kind === SyntaxKind.EndOfFileToken) parent = node;
|
D | program.ts | 2401 …(position < child.end || (position === child.end && (child.kind === SyntaxKind.EndOfFileToken)))) {
|
D | emitter.ts | 744 const eofToken = factory.createToken(SyntaxKind.EndOfFileToken);
|
D | utilities.ts | 516 return node.pos === node.end && node.pos >= 0 && node.kind !== SyntaxKind.EndOfFileToken;
|
/third_party/typescript/lib/ |
D | typescript.d.ts | 107 EndOfFileToken = 1, enumerator 491 …export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | … 492 …export type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | Synta… 493 …export type JSDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind… 567 … | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | EndOfFileToken; 578 export type EndOfFileToken = Token<SyntaxKind.EndOfFileToken> & JSDocContainer; alias 1943 readonly endOfFileToken: Token<SyntaxKind.EndOfFileToken>; 3223 …createToken<TKind extends SyntaxKind.Unknown | SyntaxKind.EndOfFileToken>(token: TKind): Token<TKi… 3582 …createSourceFile(statements: readonly Statement[], endOfFileToken: EndOfFileToken, flags: NodeFlag…
|
D | typescriptServices.d.ts | 107 EndOfFileToken = 1, enumerator 491 …export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | … 492 …export type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | Synta… 493 …export type JSDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind… 567 … | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | EndOfFileToken; 578 export type EndOfFileToken = Token<SyntaxKind.EndOfFileToken> & JSDocContainer; alias 1943 readonly endOfFileToken: Token<SyntaxKind.EndOfFileToken>; 3223 …createToken<TKind extends SyntaxKind.Unknown | SyntaxKind.EndOfFileToken>(token: TKind): Token<TKi… 3582 …createSourceFile(statements: readonly Statement[], endOfFileToken: EndOfFileToken, flags: NodeFlag…
|
D | tsserverlibrary.d.ts | 107 EndOfFileToken = 1, enumerator 491 …export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | … 492 …export type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | Synta… 493 …export type JSDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind… 567 … | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | EndOfFileToken; 578 export type EndOfFileToken = Token<SyntaxKind.EndOfFileToken> & JSDocContainer; alias 1943 readonly endOfFileToken: Token<SyntaxKind.EndOfFileToken>; 3223 …createToken<TKind extends SyntaxKind.Unknown | SyntaxKind.EndOfFileToken>(token: TKind): Token<TKi… 3582 …createSourceFile(statements: readonly Statement[], endOfFileToken: EndOfFileToken, flags: NodeFlag…
|
/third_party/typescript/tests/baselines/reference/api/ |
D | typescript.d.ts | 107 EndOfFileToken = 1, enumerator 491 …export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | … 492 …export type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | Synta… 493 …export type JSDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind… 578 … | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | EndOfFileToken; 589 export type EndOfFileToken = Token<SyntaxKind.EndOfFileToken> & JSDocContainer; alias 1954 readonly endOfFileToken: Token<SyntaxKind.EndOfFileToken>; 3339 …createToken<TKind extends SyntaxKind.Unknown | SyntaxKind.EndOfFileToken>(token: TKind): Token<TKi… 3698 …createSourceFile(statements: readonly Statement[], endOfFileToken: EndOfFileToken, flags: NodeFlag…
|
D | tsserverlibrary.d.ts | 107 EndOfFileToken = 1, enumerator 491 …export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | … 492 …export type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | Synta… 493 …export type JSDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind… 578 … | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | EndOfFileToken; 589 export type EndOfFileToken = Token<SyntaxKind.EndOfFileToken> & JSDocContainer; alias 1954 readonly endOfFileToken: Token<SyntaxKind.EndOfFileToken>; 3339 …createToken<TKind extends SyntaxKind.Unknown | SyntaxKind.EndOfFileToken>(token: TKind): Token<TKi… 3698 …createSourceFile(statements: readonly Statement[], endOfFileToken: EndOfFileToken, flags: NodeFlag…
|
/third_party/typescript/src/compiler/factory/ |
D | nodeFactory.ts | 938 …function createToken<TKind extends SyntaxKind.Unknown | SyntaxKind.EndOfFileToken>(token: TKind): … 5000 endOfFileToken: EndOfFileToken, 6040 if (tokenValue === undefined || rawTextScanner.scan() !== SyntaxKind.EndOfFileToken) {
|