Home
last modified time | relevance | path

Searched refs:TokenClass (Results 1 – 20 of 20) sorted by relevance

/third_party/PyYAML/examples/pygments-lexer/
Dyaml.py32 def something(TokenClass): argument
38 yield match.start(), TokenClass, text
42 def reset_indent(TokenClass): argument
50 yield match.start(), TokenClass, text
54 def save_indent(TokenClass, start=False): argument
70 yield match.start(), TokenClass, text
72 yield match.start()+len(text), TokenClass.Error, extra
76 def set_indent(TokenClass, implicit=False): argument
85 yield match.start(), TokenClass, text
89 def set_block_scalar_indent(TokenClass): argument
[all …]
/third_party/typescript/src/testRunner/unittests/services/
Dcolorization.ts6 classification: ts.TokenClass;
26 …ext: string, position?: number) { return createClassification(text, ts.TokenClass.Punctuation, pos…
27 …ext: string, position?: number) { return createClassification(text, ts.TokenClass.Keyword, positio…
28 …ext: string, position?: number) { return createClassification(text, ts.TokenClass.Operator, positi…
29 …ext: string, position?: number) { return createClassification(text, ts.TokenClass.Comment, positio…
30 …ext: string, position?: number) { return createClassification(text, ts.TokenClass.Whitespace, posi…
31 …ext: string, position?: number) { return createClassification(text, ts.TokenClass.Identifier, posi…
32 …ext: string, position?: number) { return createClassification(text, ts.TokenClass.NumberLiteral, p…
33 …ext: string, position?: number) { return createClassification(text, ts.TokenClass.StringLiteral, p…
35 …function createClassification(value: string, classification: ts.TokenClass, position?: number): Cl…
[all …]
/third_party/typescript/tests/baselines/reference/
DparserRealSource10.js319 export enum TokenClass {
349 public classification(): TokenClass {
351 return TokenClass.Keyword;
358 return TokenClass.Operator;
363 return TokenClass.Punctuation;
376 public classification(): TokenClass {
377 return TokenClass.Literal;
390 public classification(): TokenClass {
391 return TokenClass.Literal;
402 public classification(): TokenClass {
[all …]
DparserRealSource10.symbols2263 export enum TokenClass {
2264 >TokenClass : Symbol(TokenClass, Decl(parserRealSource10.ts, 315, 5))
2267 >Punctuation : Symbol(TokenClass.Punctuation, Decl(parserRealSource10.ts, 317, 28))
2270 >Keyword : Symbol(TokenClass.Keyword, Decl(parserRealSource10.ts, 318, 20))
2273 >Operator : Symbol(TokenClass.Operator, Decl(parserRealSource10.ts, 319, 16))
2276 >Comment : Symbol(TokenClass.Comment, Decl(parserRealSource10.ts, 320, 17))
2279 >Whitespace : Symbol(TokenClass.Whitespace, Decl(parserRealSource10.ts, 321, 16))
2282 >Identifier : Symbol(TokenClass.Identifier, Decl(parserRealSource10.ts, 322, 19))
2285 >Literal : Symbol(TokenClass.Literal, Decl(parserRealSource10.ts, 323, 19))
2345 public classification(): TokenClass {
[all …]
DparserRealSource10.types3535 export enum TokenClass {
3536 >TokenClass : TokenClass
3539 >Punctuation : TokenClass.Punctuation
3542 >Keyword : TokenClass.Keyword
3545 >Operator : TokenClass.Operator
3548 >Comment : TokenClass.Comment
3551 >Whitespace : TokenClass.Whitespace
3554 >Identifier : TokenClass.Identifier
3557 >Literal : TokenClass.Literal
3641 public classification(): TokenClass {
[all …]
DparserRealSource10.errors.txt1345 export enum TokenClass {
1375 public classification(): TokenClass {
1377 return TokenClass.Keyword;
1388 return TokenClass.Operator;
1393 return TokenClass.Punctuation;
1406 public classification(): TokenClass {
1407 return TokenClass.Literal;
1420 public classification(): TokenClass {
1421 return TokenClass.Literal;
1432 public classification(): TokenClass {
[all …]
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/
DparserRealSource10.ts318 export enum TokenClass { enum
348 public classification(): TokenClass {
350 return TokenClass.Keyword;
357 return TokenClass.Operator;
362 return TokenClass.Punctuation;
375 public classification(): TokenClass {
376 return TokenClass.Literal;
389 public classification(): TokenClass {
390 return TokenClass.Literal;
401 public classification(): TokenClass {
[all …]
/third_party/typescript/src/services/
Dclassifier.ts270 … entries.push({ length: whitespaceLength, classification: TokenClass.Whitespace });
280 entries.push({ length: whitespaceLength, classification: TokenClass.Whitespace });
286 function convertClassification(type: ClassificationType): TokenClass {
288 case ClassificationType.comment: return TokenClass.Comment;
289 case ClassificationType.keyword: return TokenClass.Keyword;
290 case ClassificationType.numericLiteral: return TokenClass.NumberLiteral;
291 case ClassificationType.bigintLiteral: return TokenClass.BigIntLiteral;
292 case ClassificationType.operator: return TokenClass.Operator;
293 case ClassificationType.stringLiteral: return TokenClass.StringLiteral;
294 case ClassificationType.whiteSpace: return TokenClass.Whitespace;
[all …]
Dtypes.ts1226 export enum TokenClass { enum
1246 classification: TokenClass;
/third_party/PyYAML/lib/yaml/
Dscanner.py408 def fetch_document_indicator(self, TokenClass): argument
422 self.tokens.append(TokenClass(start_mark, end_mark))
430 def fetch_flow_collection_start(self, TokenClass): argument
445 self.tokens.append(TokenClass(start_mark, end_mark))
453 def fetch_flow_collection_end(self, TokenClass): argument
468 self.tokens.append(TokenClass(start_mark, end_mark))
899 def scan_anchor(self, TokenClass): argument
933 return TokenClass(value, start_mark, end_mark)
/third_party/PyYAML/tests/lib/
Dcanonical.py105 TokenClass = yaml.AliasToken
107 TokenClass = yaml.AnchorToken
113 return TokenClass(value, None, None)
/third_party/typescript/lib/
DtypescriptServices.d.ts6190 enum TokenClass { enum
6208 classification: TokenClass;
Dtypescript.d.ts6190 enum TokenClass { enum
6208 classification: TokenClass;
Dtsserverlibrary.js115618 var TokenClass;
115619 (function (TokenClass) { argument
115620 TokenClass[TokenClass["Punctuation"] = 0] = "Punctuation";
115621 TokenClass[TokenClass["Keyword"] = 1] = "Keyword";
115622 TokenClass[TokenClass["Operator"] = 2] = "Operator";
115623 TokenClass[TokenClass["Comment"] = 3] = "Comment";
115624 TokenClass[TokenClass["Whitespace"] = 4] = "Whitespace";
115625 TokenClass[TokenClass["Identifier"] = 5] = "Identifier";
115626 TokenClass[TokenClass["NumberLiteral"] = 6] = "NumberLiteral";
115627 TokenClass[TokenClass["BigIntLiteral"] = 7] = "BigIntLiteral";
[all …]
Dtypescript.js115618 var TokenClass;
115619 (function (TokenClass) { argument
115620 TokenClass[TokenClass["Punctuation"] = 0] = "Punctuation";
115621 TokenClass[TokenClass["Keyword"] = 1] = "Keyword";
115622 TokenClass[TokenClass["Operator"] = 2] = "Operator";
115623 TokenClass[TokenClass["Comment"] = 3] = "Comment";
115624 TokenClass[TokenClass["Whitespace"] = 4] = "Whitespace";
115625 TokenClass[TokenClass["Identifier"] = 5] = "Identifier";
115626 TokenClass[TokenClass["NumberLiteral"] = 6] = "NumberLiteral";
115627 TokenClass[TokenClass["BigIntLiteral"] = 7] = "BigIntLiteral";
[all …]
Dtsserver.js115049 var TokenClass;
115050 (function (TokenClass) { argument
115051 TokenClass[TokenClass["Punctuation"] = 0] = "Punctuation";
115052 TokenClass[TokenClass["Keyword"] = 1] = "Keyword";
115053 TokenClass[TokenClass["Operator"] = 2] = "Operator";
115054 TokenClass[TokenClass["Comment"] = 3] = "Comment";
115055 TokenClass[TokenClass["Whitespace"] = 4] = "Whitespace";
115056 TokenClass[TokenClass["Identifier"] = 5] = "Identifier";
115057 TokenClass[TokenClass["NumberLiteral"] = 6] = "NumberLiteral";
115058 TokenClass[TokenClass["BigIntLiteral"] = 7] = "BigIntLiteral";
[all …]
DtypescriptServices.js115618 var TokenClass;
115619 (function (TokenClass) { argument
115620 TokenClass[TokenClass["Punctuation"] = 0] = "Punctuation";
115621 TokenClass[TokenClass["Keyword"] = 1] = "Keyword";
115622 TokenClass[TokenClass["Operator"] = 2] = "Operator";
115623 TokenClass[TokenClass["Comment"] = 3] = "Comment";
115624 TokenClass[TokenClass["Whitespace"] = 4] = "Whitespace";
115625 TokenClass[TokenClass["Identifier"] = 5] = "Identifier";
115626 TokenClass[TokenClass["NumberLiteral"] = 6] = "NumberLiteral";
115627 TokenClass[TokenClass["BigIntLiteral"] = 7] = "BigIntLiteral";
[all …]
Dtsserverlibrary.d.ts6190 enum TokenClass { enum
6208 classification: TokenClass;
/third_party/typescript/tests/baselines/reference/api/
Dtypescript.d.ts6277 enum TokenClass { enum
6295 classification: TokenClass;
Dtsserverlibrary.d.ts6277 enum TokenClass { enum
6295 classification: TokenClass;