Home
last modified time | relevance | path

Searched refs:EndOfFileToken (Results 1 – 25 of 25) sorted by relevance

/third_party/typescript/src/services/
DpreProcess.ts148 … 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) {
DoutliningElementsCollector.ts37 … if (isDeclaration(n) || isVariableStatement(n) || n.kind === SyntaxKind.EndOfFileToken) {
Dutilities.ts1134 …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…
Dservices.ts192 if (token === SyntaxKind.EndOfFileToken) {
284 …return this.kind === SyntaxKind.EndOfFileToken ? (this as EndOfFileToken).jsDoc || emptyArray : em…
628 public endOfFileToken!: Token<SyntaxKind.EndOfFileToken>;
Dbreakpoints.ts213 case SyntaxKind.EndOfFileToken:
Dclassifier.ts85 } while (token !== SyntaxKind.EndOfFileToken);
Dcompletions.ts2896 case SyntaxKind.EndOfFileToken:
/third_party/typescript/src/services/formatting/
DformattingScanner.ts267 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;
Drules.ts12 if (token !== SyntaxKind.EndOfFileToken) {
22 const anyTokenIncludingEOF = tokenRangeFrom([...allTokens, SyntaxKind.EndOfFileToken]);
851 || nextTokenKind === SyntaxKind.EndOfFileToken;
Dformatting.ts1034 …rimTrailingWhitespaces = trimTrailingWhitespaces && currentItem.kind !== SyntaxKind.EndOfFileToken;
/third_party/typescript/src/testRunner/unittests/
DjsDocParsing.ts378 assert.equal(last!.kind, SyntaxKind.EndOfFileToken);
/third_party/typescript/src/linter/
DTypeScriptLinterConfig.ts164 SyntaxKind.EndOfFileToken, SyntaxKind.SingleLineCommentTrivia,
/third_party/typescript/src/compiler/
Dparser.ts871 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 …]
Dtypes.ts23 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…
Dscanner.ts1608 return token = SyntaxKind.EndOfFileToken;
2261 return token = SyntaxKind.EndOfFileToken;
2396 return token = SyntaxKind.EndOfFileToken;
Dbinder.ts2477 if (node.kind === SyntaxKind.EndOfFileToken) parent = node;
Dprogram.ts2401 …(position < child.end || (position === child.end && (child.kind === SyntaxKind.EndOfFileToken)))) {
Demitter.ts744 const eofToken = factory.createToken(SyntaxKind.EndOfFileToken);
Dutilities.ts516 return node.pos === node.end && node.pos >= 0 && node.kind !== SyntaxKind.EndOfFileToken;
/third_party/typescript/lib/
Dtypescript.d.ts107 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…
DtypescriptServices.d.ts107 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…
Dtsserverlibrary.d.ts107 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/
Dtypescript.d.ts107 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…
Dtsserverlibrary.d.ts107 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/
DnodeFactory.ts938 …function createToken<TKind extends SyntaxKind.Unknown | SyntaxKind.EndOfFileToken>(token: TKind): …
5000 endOfFileToken: EndOfFileToken,
6040 if (tokenValue === undefined || rawTextScanner.scan() !== SyntaxKind.EndOfFileToken) {