Home
last modified time | relevance | path

Searched refs:TokenInfo (Results 1 – 13 of 13) sorted by relevance

/third_party/python/Lib/test/test_peg_generator/
Dtest_pegen.py7 from tokenize import TokenInfo, NAME, NEWLINE, NUMBER, OP
91 [[TokenInfo(NUMBER, string="42", start=(1, 0), end=(1, 2), line="42\n")]],
92 TokenInfo(NEWLINE, string="\n", start=(1, 2), end=(1, 3), line="42\n"),
97 [TokenInfo(NUMBER, string="1", start=(1, 0), end=(1, 1), line="1, 2\n")],
98 [TokenInfo(NUMBER, string="2", start=(1, 3), end=(1, 4), line="1, 2\n")],
100 TokenInfo(NEWLINE, string="\n", start=(1, 4), end=(1, 5), line="1, 2\n"),
112 [[TokenInfo(NUMBER, string="42", start=(1, 0), end=(1, 2), line="42\n")]],
113 TokenInfo(NEWLINE, string="\n", start=(1, 2), end=(1, 3), line="42\n"),
126 [TokenInfo(NUMBER, string="1", start=(1, 0), end=(1, 1), line="1+2\n")],
128 TokenInfo(OP, string="+", start=(1, 1), end=(1, 2), line="1+2\n"),
[all …]
/third_party/python/Lib/
Dtokenize.py46 class TokenInfo(collections.namedtuple('TokenInfo', 'type string start end line')): class
442 yield TokenInfo(ENCODING, encoding, (0, 0), (0, 0), '')
467 yield TokenInfo(STRING, contstr + line[:end],
472 yield TokenInfo(ERRORTOKEN, contstr + line,
501 yield TokenInfo(COMMENT, comment_token,
505 yield TokenInfo(NL, line[pos:],
511 yield TokenInfo(INDENT, line[:pos], (lnum, 0), (lnum, pos), line)
519 yield TokenInfo(DEDENT, '', (lnum, pos), (lnum, pos), line)
537 yield TokenInfo(NUMBER, token, spos, epos, line)
540 yield TokenInfo(NL, token, spos, epos, line)
[all …]
/third_party/python/Tools/peg_generator/pegen/
Dtokenizer.py10 def shorttok(tok: tokenize.TokenInfo) -> str: argument
20 _tokens: List[tokenize.TokenInfo]
22 def __init__(self, tokengen: Iterator[tokenize.TokenInfo], *, verbose: bool = False): argument
30 def getnext(self) -> tokenize.TokenInfo:
47 def peek(self) -> tokenize.TokenInfo:
58 def diagnose(self) -> tokenize.TokenInfo:
Dparser.py180 def name(self) -> Optional[tokenize.TokenInfo]:
187 def number(self) -> Optional[tokenize.TokenInfo]:
194 def string(self) -> Optional[tokenize.TokenInfo]:
201 def op(self) -> Optional[tokenize.TokenInfo]:
208 def expect(self, type: str) -> Optional[tokenize.TokenInfo]:
/third_party/typescript/src/services/formatting/
DformattingScanner.ts10 readTokenInfo(n: Node): TokenInfo;
40 let lastTokenInfo: TokenInfo | undefined;
153 function readTokenInfo(n: Node): TokenInfo {
287 function fixTokenKind(tokenInfo: TokenInfo, container: Node): TokenInfo {
Dformatting.ts15 export interface TokenInfo { interface
842 let tokenInfo: TokenInfo | undefined = formattingScanner.readTokenInfo(parent);
862 …function consumeTokenAndAdvanceScanner(currentTokenInfo: TokenInfo, parent: Node, dynamicIndentati…
/third_party/skia/third_party/externals/angle2/src/tests/test_expectations/
DGPUTestExpectationsParser.cpp123 struct TokenInfo struct
125 constexpr TokenInfo() in TokenInfo() argument
131 constexpr TokenInfo(const char *nameIn, in TokenInfo() function
137 constexpr TokenInfo(const char *nameIn, GPUTestConfig::Condition conditionIn) in TokenInfo() function
138 : TokenInfo(nameIn, conditionIn, GPUTestExpectationsParser::kGpuTestPass) in TokenInfo()
146 constexpr TokenInfo kTokenData[kNumberOfTokens] = {
297 for (const TokenInfo &info : kTokenData) in GetConditionName()
/third_party/typescript/tests/baselines/reference/
DparserRealSource10.js128 export var tokenTable = new TokenInfo[];
176 export class TokenInfo {
187 tokenTable[tokenId] = new TokenInfo(tokenId, reservation, binopPrecedence,
315 export function lookupToken(tokenId: TokenID): TokenInfo {
599 TypeScript.tokenTable = new TokenInfo[];
645 var TokenInfo = /** @class */ (function () { class
646 …function TokenInfo(tokenId, reservation, binopPrecedence, binopNodeType, unopPrecedence, unopNodeT… class in anonymousFunction90e6a65a0600.TokenInfo
656 return TokenInfo;
658 TypeScript.TokenInfo = TokenInfo;
661 …TypeScript.tokenTable[tokenId] = new TokenInfo(tokenId, reservation, binopPrecedence, binopNodeTyp…
DparserRealSource10.types363 export var tokenTable = new TokenInfo[];
365 >new TokenInfo[] : any
366 >TokenInfo[] : any
367 >TokenInfo : typeof TokenInfo
593 export class TokenInfo {
594 >TokenInfo : TokenInfo
633 tokenTable[tokenId] = new TokenInfo(tokenId, reservation, binopPrecedence,
634TokenInfo(tokenId, reservation, binopPrecedence, bino…
638TokenInfo(tokenId, reservation, binopPrecedence, bino…
639 >TokenInfo : typeof TokenInfo
[all …]
DparserRealSource10.symbols363 export var tokenTable = new TokenInfo[];
365 >TokenInfo : Symbol(TokenInfo, Decl(parserRealSource10.ts, 172, 5))
534 export class TokenInfo {
535 >TokenInfo : Symbol(TokenInfo, Decl(parserRealSource10.ts, 172, 5))
538 >tokenId : Symbol(TokenInfo.tokenId, Decl(parserRealSource10.ts, 175, 21))
540 >reservation : Symbol(TokenInfo.reservation, Decl(parserRealSource10.ts, 175, 45))
544 >binopPrecedence : Symbol(TokenInfo.binopPrecedence, Decl(parserRealSource10.ts, 175, 78))
545 >binopNodeType : Symbol(TokenInfo.binopNodeType, Decl(parserRealSource10.ts, 176, 51))
548 >unopPrecedence : Symbol(TokenInfo.unopPrecedence, Decl(parserRealSource10.ts, 176, 81))
549 >unopNodeType : Symbol(TokenInfo.unopNodeType, Decl(parserRealSource10.ts, 177, 50))
[all …]
DparserRealSource10.errors.txt2 …/parser/ecmascript5/parserRealSource10.ts(127,33): error TS2449: Class 'TokenInfo' used before its…
475 export var tokenTable = new TokenInfo[];
477 !!! error TS2449: Class 'TokenInfo' used before its declaration.
478 …sts/cases/conformance/parser/ecmascript5/parserRealSource10.ts:175:18: 'TokenInfo' is declared her…
540 export class TokenInfo {
555 tokenTable[tokenId] = new TokenInfo(tokenId, reservation, binopPrecedence,
1341 export function lookupToken(tokenId: TokenID): TokenInfo {
/third_party/flutter/skia/third_party/externals/angle2/src/tests/test_expectations/
DGPUTestExpectationsParser.cpp108 struct TokenInfo struct
115 const TokenInfo kTokenData[kNumberOfTokens] = {
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/
DparserRealSource10.ts127 export var tokenTable = new TokenInfo[];
175 export class TokenInfo { class
186 tokenTable[tokenId] = new TokenInfo(tokenId, reservation, binopPrecedence,
314 export function lookupToken(tokenId: TokenID): TokenInfo {