/third_party/ltp/tools/sparse/sparse-src/ |
D | expression.c | 63 static struct token *comma_expression(struct token *, struct expression **); 65 struct token *parens_expression(struct token *token, struct expression **expr, const char *where) in parens_expression() argument 67 struct token *p; in parens_expression() 69 token = expect(token, '(', where); in parens_expression() 70 p = token; in parens_expression() 71 if (match_op(token, '{')) { in parens_expression() 72 struct expression *e = alloc_expression(token->pos, EXPR_STATEMENT); in parens_expression() 73 struct statement *stmt = alloc_statement(token->pos, STMT_COMPOUND); in parens_expression() 77 token = compound_statement(token->next, stmt); in parens_expression() 79 token = expect(token, '}', "at end of statement expression"); in parens_expression() [all …]
|
D | parse.c | 51 static struct token *statement(struct token *token, struct statement **tree); 52 static struct token *handle_attributes(struct token *token, struct decl_state *ctx); 54 typedef struct token *declarator_t(struct token *, struct symbol *, struct decl_state *); 62 static struct token *parse_if_statement(struct token *token, struct statement *stmt); 63 static struct token *parse_return_statement(struct token *token, struct statement *stmt); 64 static struct token *parse_loop_iterator(struct token *token, struct statement *stmt); 65 static struct token *parse_default_statement(struct token *token, struct statement *stmt); 66 static struct token *parse_case_statement(struct token *token, struct statement *stmt); 67 static struct token *parse_switch_statement(struct token *token, struct statement *stmt); 68 static struct token *parse_for_statement(struct token *token, struct statement *stmt); [all …]
|
D | pre-process.c | 94 static struct token *alloc_token(struct position *pos) in alloc_token() 96 struct token *token = __alloc_token(0); in alloc_token() local 98 token->pos.stream = pos->stream; in alloc_token() 99 token->pos.line = pos->line; in alloc_token() 100 token->pos.pos = pos->pos; in alloc_token() 101 token->pos.whitespace = 1; in alloc_token() 102 return token; in alloc_token() 106 static int expand(struct token **, struct symbol *); 108 static void replace_with_string(struct token *token, const char *str) in replace_with_string() argument 115 token_type(token) = TOKEN_STRING; in replace_with_string() [all …]
|
D | token.h | 62 struct token *ifndef; 63 struct token *top_if; 186 struct token { struct 188 struct token *next; argument 202 static inline struct token *containing_token(struct token **p) in containing_token() argument 204 void *addr = (char *)p - ((char *)&((struct token *)0)->next - (char *)0); in containing_token() 215 extern struct token eof_token_entry; 223 extern struct token *built_in_token(int, struct ident *); 227 extern const char *show_token(const struct token *); 228 extern const char *quote_token(const struct token *); [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/preprocessor/ |
D | DirectiveParser.cpp | 49 static DirectiveType getDirective(const pp::Token *token) in getDirective() argument 65 if (token->type != pp::Token::IDENTIFIER) in getDirective() 68 if (token->text == kDirectiveDefine) in getDirective() 70 else if (token->text == kDirectiveUndef) in getDirective() 72 else if (token->text == kDirectiveIf) in getDirective() 74 else if (token->text == kDirectiveIfdef) in getDirective() 76 else if (token->text == kDirectiveIfndef) in getDirective() 78 else if (token->text == kDirectiveElse) in getDirective() 80 else if (token->text == kDirectiveElif) in getDirective() 82 else if (token->text == kDirectiveEndif) in getDirective() [all …]
|
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/ |
D | DirectiveParser.cpp | 45 DirectiveType getDirective(const pp::Token *token) in getDirective() argument 61 if (token->type != pp::Token::IDENTIFIER) in getDirective() 64 if (token->text == kDirectiveDefine) in getDirective() 66 if (token->text == kDirectiveUndef) in getDirective() 68 if (token->text == kDirectiveIf) in getDirective() 70 if (token->text == kDirectiveIfdef) in getDirective() 72 if (token->text == kDirectiveIfndef) in getDirective() 74 if (token->text == kDirectiveElse) in getDirective() 76 if (token->text == kDirectiveElif) in getDirective() 78 if (token->text == kDirectiveEndif) in getDirective() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/preprocessor/ |
D | DirectiveParser.cpp | 45 DirectiveType getDirective(const pp::Token *token) in getDirective() argument 61 if (token->type != pp::Token::IDENTIFIER) in getDirective() 64 if (token->text == kDirectiveDefine) in getDirective() 66 if (token->text == kDirectiveUndef) in getDirective() 68 if (token->text == kDirectiveIf) in getDirective() 70 if (token->text == kDirectiveIfdef) in getDirective() 72 if (token->text == kDirectiveIfndef) in getDirective() 74 if (token->text == kDirectiveElse) in getDirective() 76 if (token->text == kDirectiveElif) in getDirective() 78 if (token->text == kDirectiveEndif) in getDirective() [all …]
|
/third_party/typescript/src/services/ |
D | preProcess.ts | 64 let token = scanner.getToken(); 65 if (token === SyntaxKind.DeclareKeyword) { 67 token = nextToken(); 68 if (token === SyntaxKind.ModuleKeyword) { 69 token = nextToken(); 70 if (token === SyntaxKind.StringLiteral) { 87 let token = scanner.getToken(); 88 if (token === SyntaxKind.ImportKeyword) { 89 token = nextToken(); 90 if (token === SyntaxKind.OpenParenToken) { [all …]
|
/third_party/libxml2/doc/ |
D | apibuild.py | 406 def push(self, token): argument 407 self.tokens.insert(0, token); 414 def token(self): member in CLexer 633 def error(self, msg, token=-1): argument 638 if token != -1: 639 print("Got token ", token) 643 def debug(self, msg, token=-1): argument 645 if token != -1: 646 print("Got token ", token) 677 def parseComment(self, token): argument [all …]
|
/third_party/libxml2/ |
D | rngparser.c | 59 const xmlChar *token; member 92 tokenPtr token; member 252 tokenPtr token; in xmlCRNGNextToken() local 256 token = &(ctxt->tokens[(ctxt->firstToken + ctxt->nbTokens) % MAX_TOKEN]); in xmlCRNGNextToken() 257 token->toktype = CRNG_NONE; in xmlCRNGNextToken() 291 token->toklen = cur - ctxt->cur; in xmlCRNGNextToken() 292 token->token = xmlDictLookup(ctxt->dict, ctxt->cur, token->toklen); in xmlCRNGNextToken() 293 token->toktype = CRNG_LITERAL_SEGMENT; in xmlCRNGNextToken() 294 token->prefix = NULL; in xmlCRNGNextToken() 308 token->toklen = 2; in xmlCRNGNextToken() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/preprocessor_tests/ |
D | token_test.cpp | 16 pp::Token token; in TEST() local 17 EXPECT_EQ(0, token.type); in TEST() 18 EXPECT_EQ(0u, token.flags); in TEST() 19 EXPECT_EQ(0, token.location.line); in TEST() 20 EXPECT_EQ(0, token.location.file); in TEST() 21 EXPECT_EQ("", token.text); in TEST() 26 pp::Token token; in TEST() local 27 token.type = 1; in TEST() 28 token.flags = 1; in TEST() 29 token.location.line = 1; in TEST() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/preprocessor_tests/ |
D | token_test.cpp | 16 pp::Token token; in TEST() local 17 EXPECT_EQ(0, token.type); in TEST() 18 EXPECT_EQ(0u, token.flags); in TEST() 19 EXPECT_EQ(0, token.location.line); in TEST() 20 EXPECT_EQ(0, token.location.file); in TEST() 21 EXPECT_EQ("", token.text); in TEST() 26 pp::Token token; in TEST() local 27 token.type = 1; in TEST() 28 token.flags = 1; in TEST() 29 token.location.line = 1; in TEST() [all …]
|
/third_party/glslang/glslang/MachineIndependent/preprocessor/ |
D | Pp.cpp | 101 int token = scanToken(ppToken); in CPPdefine() local 102 if (token != PpAtomIdentifier) { in CPPdefine() 104 return token; in CPPdefine() 116 token = scanToken(ppToken); in CPPdefine() 117 if (token == '(' && !ppToken->space) { in CPPdefine() 120 token = scanToken(ppToken); in CPPdefine() 121 if (mac.args.size() == 0 && token == ')') in CPPdefine() 123 if (token != PpAtomIdentifier) { in CPPdefine() 126 return token; in CPPdefine() 141 token = scanToken(ppToken); in CPPdefine() [all …]
|
/third_party/gettext/libtextstyle/gnulib-local/lib/libcroco/ |
D | cr-parser.c | 634 CRToken *token = NULL; in cr_parser_try_to_skip_spaces_and_comments() local 639 if (token) { in cr_parser_try_to_skip_spaces_and_comments() 640 cr_token_destroy (token); in cr_parser_try_to_skip_spaces_and_comments() 641 token = NULL; in cr_parser_try_to_skip_spaces_and_comments() 645 &token); in cr_parser_try_to_skip_spaces_and_comments() 649 while ((token != NULL) in cr_parser_try_to_skip_spaces_and_comments() 650 && (token->type == COMMENT_TK || token->type == S_TK)); in cr_parser_try_to_skip_spaces_and_comments() 652 cr_tknzr_unget_token (PRIVATE (a_this)->tknzr, token); in cr_parser_try_to_skip_spaces_and_comments() 658 if (token) { in cr_parser_try_to_skip_spaces_and_comments() 659 cr_token_destroy (token); in cr_parser_try_to_skip_spaces_and_comments() [all …]
|
/third_party/PyYAML/lib/yaml/ |
D | parser.py | 130 token = self.get_token() 131 event = StreamStartEvent(token.start_mark, token.end_mark, 132 encoding=token.encoding) 145 token = self.peek_token() 146 start_mark = end_mark = token.start_mark 167 token = self.peek_token() 168 start_mark = token.start_mark 175 token = self.get_token() 176 end_mark = token.end_mark 183 token = self.get_token() [all …]
|
/third_party/parse5/packages/parse5/lib/parser/ |
D | index.js | 432 const token = this.tokenizer.getNextToken(); 434 if (token.type === Tokenizer.HIBERNATION_TOKEN) { 437 … if (token.type !== Tokenizer.EOF_TOKEN && token.type !== Tokenizer.WHITESPACE_CHARACTER_TOKEN) { 438 lastToken =token; 440 checkselfClosingNode(this, token); 444 … if (token.type === Tokenizer.WHITESPACE_CHARACTER_TOKEN && token.chars[0] === '\n') { 445 if (token.chars.length === 1) { 449 token.chars = token.chars.substr(1); 453 this._processInputToken(token); 548 _setDocumentType(token) { argument [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | complexNarrowingWithAny.ts | 449 injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { 450 …if (((token === import46.DefaultValueAccessor) && (3 === requestNodeIndex))) { return this._Defaul… 451 …if (((token === import49.NG_VALUE_ACCESSOR) && (3 === requestNodeIndex))) { return this._NG_VALUE_… 452 …if (((token === import47.FormControlName) && (3 === requestNodeIndex))) { return this._FormControl… 453 … if (((token === import50.NgControl) && (3 === requestNodeIndex))) { return this._NgControl_3_6; } 454 …if (((token === import45.NgControlStatus) && (3 === requestNodeIndex))) { return this._NgControlSt… 455 …if (((token === import46.DefaultValueAccessor) && (6 === requestNodeIndex))) { return this._Defaul… 456 …if (((token === import49.NG_VALUE_ACCESSOR) && (6 === requestNodeIndex))) { return this._NG_VALUE_… 457 …if (((token === import47.FormControlName) && (6 === requestNodeIndex))) { return this._FormControl… 458 … if (((token === import50.NgControl) && (6 === requestNodeIndex))) { return this._NgControl_6_6; } [all …]
|
/third_party/mesa3d/src/freedreno/ir3/ |
D | ir3_parser.y | 318 %token <num> T_INT 319 %token <unum> T_HEX 320 %token <flt> T_FLOAT 321 %token <str> T_IDENTIFIER 322 %token <num> T_REGISTER 323 %token <num> T_CONSTANT 326 %token <tok> T_A_LOCALSIZE 327 %token <tok> T_A_CONST 328 %token <tok> T_A_BUF 329 %token <tok> T_A_INVOCATIONID [all …]
|
/third_party/boost/libs/graph/src/ |
D | read_graphviz_new.cpp | 57 struct token struct 89 token(token_type type, const std::string& normalized_value) in token() function 93 token() : type(invalid), normalized_value("") {} in token() function 94 friend std::ostream& operator<<(std::ostream& o, const token& t) in operator <<() 98 case token::kw_strict: in operator <<() 101 case token::kw_graph: in operator <<() 104 case token::kw_digraph: in operator <<() 107 case token::kw_node: in operator <<() 110 case token::kw_edge: in operator <<() 113 case token::kw_subgraph: in operator <<() [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | complexNarrowingWithAny.types | 133 //real code uses an opaque token, using new String() to simulate. 1189 injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { 1190 >injectorGetInternal : (token: any, requestNodeIndex: number, notFoundResult: any) => any 1191 >token : any 1195 …if (((token === import46.DefaultValueAccessor) && (3 === requestNodeIndex))) { return this._Defaul… 1196 >((token === import46.DefaultValueAccessor) && (3 === requestNodeIndex)) : boolean 1197 >(token === import46.DefaultValueAccessor) && (3 === requestNodeIndex) : boolean 1198 >(token === import46.DefaultValueAccessor) : boolean 1199 >token === import46.DefaultValueAccessor : boolean 1200 >token : any [all …]
|
/third_party/css-what/src/ |
D | stringify.ts | 37 .map((token) => token.map(stringifyToken).join("")) 42 token: Selector, 46 switch (token.type) { 62 return token.namespace === "*" && 66 : `${getNamespace(token.namespace)}*`; 69 return getNamespacedName(token); 72 return `::${escapeName(token.name, charsToEscapeInName)}${ 73 token.data === null 75 : `(${escapeName(token.data, charsToEscapeInPseudoValue)})` 79 return `:${escapeName(token.name, charsToEscapeInName)}${ [all …]
|
/third_party/libnl/lib/route/cls/ |
D | ematch_syntax.y | 64 %token <i> ERROR LOGIC NOT OPERAND NUMBER ALIGN LAYER 65 %token <i> KW_OPEN "(" 66 %token <i> KW_CLOSE ")" 67 %token <i> KW_PLUS "+" 68 %token <i> KW_MASK "mask" 69 %token <i> KW_SHIFT ">>" 70 %token <i> KW_AT "at" 71 %token <i> EMATCH_CMP "cmp" 72 %token <i> EMATCH_NBYTE "pattern" 73 %token <i> EMATCH_TEXT "text" [all …]
|
/third_party/typescript/src/services/codefixes/ |
D | fixUnusedIdentifier.ts | 24 const token = getTokenAtPosition(sourceFile, context.span.start); constant 26 if (isJSDocTemplateTag(token)) { 27 …leteFix(textChanges.ChangeTracker.with(context, t => t.delete(sourceFile, token)), Diagnostics.Rem… 29 if (token.kind === SyntaxKind.LessThanToken) { 30 …changes = textChanges.ChangeTracker.with(context, t => deleteTypeParameters(t, sourceFile, token)); 33 const importDecl = tryGetFullImport(token); 38 else if (isImport(token)) { 39 …Changes.ChangeTracker.with(context, t => tryDeleteDeclaration(sourceFile, token, t, checker, sourc… 41 …on(fixName, deletion, [Diagnostics.Remove_unused_declaration_for_Colon_0, token.getText(sourceFile… 45 if (isObjectBindingPattern(token.parent) || isArrayBindingPattern(token.parent)) { [all …]
|
/third_party/typescript_eslint/packages/experimental-utils/src/ast-utils/eslint-utils/ |
D | predicates.ts | 5 token: TSESTree.Token | TSESTree.Comment, 6 ) => token is TSESTree.PunctuatorToken & { value: '=>' }; 8 token: TSESTree.Token | TSESTree.Comment, 12 token: TSESTree.Token | TSESTree.Comment, 13 ) => token is TSESTree.PunctuatorToken & { value: '}' }; 15 token: TSESTree.Token | TSESTree.Comment, 19 token: TSESTree.Token | TSESTree.Comment, 20 ) => token is TSESTree.PunctuatorToken & { value: ']' }; 22 token: TSESTree.Token | TSESTree.Comment, 26 token: TSESTree.Token | TSESTree.Comment, [all …]
|
/third_party/gettext/gettext-tools/src/ |
D | x-scheme.c | 193 struct token struct 202 init_token (struct token *tp) in init_token() 211 free_token (struct token *tp) in free_token() 218 grow_token (struct token *tp) in grow_token() 230 read_token (struct token *tp, int first) in read_token() 496 is_number (const struct token *tp) in is_number() 638 struct token *token; /* for t_symbol and t_string */ member 648 free_token (op->token); in free_object() 649 free (op->token); in free_object() 662 n = op->token->charcount; in string_of_object() [all …]
|