/third_party/typescript/tests/baselines/reference/ |
D | expr.symbols | 1 === tests/cases/compiler/expr.ts === 3 >I : Symbol(I, Decl(expr.ts, 0, 0)) 7 >E : Symbol(E, Decl(expr.ts, 1, 1)) 10 >Red : Symbol(E.Red, Decl(expr.ts, 3, 8)) 11 >Green : Symbol(E.Green, Decl(expr.ts, 4, 8)) 12 >Blue : Symbol(E.Blue, Decl(expr.ts, 4, 15)) 16 >f : Symbol(f, Decl(expr.ts, 5, 1)) 19 >a : Symbol(a, Decl(expr.ts, 8, 7)) 22 >n : Symbol(n, Decl(expr.ts, 9, 7)) 25 >s : Symbol(s, Decl(expr.ts, 10, 7)) [all …]
|
/third_party/ltp/tools/sparse/sparse-src/ |
D | expand.c | 57 static int expand_symbol_expression(struct expression *expr) in expand_symbol_expression() argument 59 struct symbol *sym = expr->symbol; in expand_symbol_expression() 63 warning(expr->pos, "undefined preprocessor identifier '%s'", show_ident(expr->symbol_name)); in expand_symbol_expression() 64 expr->type = EXPR_VALUE; in expand_symbol_expression() 65 expr->value = 0; in expand_symbol_expression() 66 expr->taint = 0; in expand_symbol_expression() 74 if (sym->initializer && !expr->symbol_name) in expand_symbol_expression() 81 static long long get_longlong(struct expression *expr) in get_longlong() argument 83 int no_expand = expr->ctype->ctype.modifiers & MOD_UNSIGNED; in get_longlong() 84 long long mask = 1ULL << (expr->ctype->bit_size - 1); in get_longlong() [all …]
|
D | inline.c | 39 static struct expression * dup_expression(struct expression *expr) in dup_expression() argument 41 struct expression *dup = alloc_expression(expr->pos, expr->type); in dup_expression() 42 *dup = *expr; in dup_expression() 78 static struct expression * copy_expression(struct expression *expr) in copy_expression() argument 80 if (!expr) in copy_expression() 83 switch (expr->type) { in copy_expression() 89 struct symbol *sym = copy_symbol(expr->pos, expr->symbol); in copy_expression() 90 if (sym == expr->symbol) in copy_expression() 92 expr = dup_expression(expr); in copy_expression() 93 expr->symbol = sym; in copy_expression() [all …]
|
D | evaluate.c | 50 static struct symbol *degenerate(struct expression *expr); 53 static inline int valid_expr_type(struct expression *expr) in valid_expr_type() argument 55 return expr && valid_type(expr->ctype); in valid_expr_type() 58 static inline int valid_subexpr_type(struct expression *expr) in valid_subexpr_type() argument 60 return valid_expr_type(expr->left) in valid_subexpr_type() 61 && valid_expr_type(expr->right); in valid_subexpr_type() 78 static struct symbol *evaluate_symbol_expression(struct expression *expr) in evaluate_symbol_expression() argument 81 struct symbol *sym = expr->symbol; in evaluate_symbol_expression() 85 expression_error(expr, "undefined identifier '%s'", show_ident(expr->symbol_name)); in evaluate_symbol_expression() 93 expression_error(expr, "identifier '%s' has no type", show_ident(expr->symbol_name)); in evaluate_symbol_expression() [all …]
|
D | show-parse.c | 45 static int show_string_expr(struct expression *expr); 550 struct expression *expr = case_stmt->case_expression; in show_switch_statement() local 553 if (!expr) { in show_switch_statement() 556 if (expr->type == EXPR_VALUE) { in show_switch_statement() 557 printf(" case %lld", expr->value); in show_switch_statement() 744 static int show_call_expression(struct expression *expr) in show_call_expression() argument 751 if (!expr->ctype) { in show_call_expression() 752 warning(expr->pos, "\tcall with no type!"); in show_call_expression() 757 FOR_EACH_PTR_REVERSE(expr->args, arg) { in show_call_expression() 764 fn = expr->fn; in show_call_expression() [all …]
|
D | expression.c | 65 struct token *parens_expression(struct token *token, struct expression **expr, const char *where) in parens_expression() argument 74 *expr = e; in parens_expression() 81 token = parse_expression(token, expr); in parens_expression() 88 struct token *string_expression(struct token *token, struct expression **expr, const char *where) in string_expression() argument 90 struct token *next = primary_expression(token, expr); in string_expression() 92 if (!*expr || (*expr)->type != EXPR_STRING) { in string_expression() 94 *expr = NULL; in string_expression() 164 struct expression *expr = alloc_expression( in builtin_types_compatible_p_expr() local 166 expr->op = SPECIAL_EQUAL; in builtin_types_compatible_p_expr() 172 token = parse_type(token, &expr->left); in builtin_types_compatible_p_expr() [all …]
|
D | dissect.c | 62 *do_initializer(struct symbol *type, struct expression *expr), 63 *do_expression(usage_t mode, struct expression *expr), 145 static inline struct symbol *expr_symbol(struct expression *expr) in expr_symbol() argument 147 struct symbol *sym = expr->symbol; in expr_symbol() 150 sym = lookup_symbol(expr->symbol_name, NS_SYMBOL); in expr_symbol() 153 sym = alloc_symbol(expr->pos, SYM_BAD); in expr_symbol() 154 bind_symbol(sym, expr->symbol_name, NS_SYMBOL); in expr_symbol() 155 sym->kind = expr->op ?: 'v'; /* see EXPR_CALL */ in expr_symbol() 165 static struct symbol *report_symbol(usage_t mode, struct expression *expr) in report_symbol() argument 167 struct symbol *sym = expr_symbol(expr); in report_symbol() [all …]
|
D | builtin.c | 42 static int evaluate_to_int_const_expr(struct expression *expr) in evaluate_to_int_const_expr() argument 44 expr->ctype = &int_ctype; in evaluate_to_int_const_expr() 45 expr->flags |= CEF_SET_ICE; in evaluate_to_int_const_expr() 49 static int evaluate_pure_unop(struct expression *expr) in evaluate_pure_unop() argument 51 struct expression *arg = first_expression(expr->args); in evaluate_pure_unop() 60 expr->flags = flags; in evaluate_pure_unop() 67 static int eval_args(struct expression *expr, int n) in eval_args() argument 74 FOR_EACH_PTR(expr->args, arg) { in eval_args() 89 sym = expr->fn->ctype; in eval_args() 90 expression_error(expr, "%s for %s", msg, show_ident(sym->ident)); in eval_args() [all …]
|
/third_party/python/Parser/ |
D | Python.asdl | 8 | Expression(expr body) 9 | FunctionType(expr* argtypes, expr returns) 12 stmt* body, expr* decorator_list, expr? returns, 15 stmt* body, expr* decorator_list, expr? returns, 19 expr* bases, 22 expr* decorator_list) 23 | Return(expr? value) 25 | Delete(expr* targets) 26 | Assign(expr* targets, expr value, string? type_comment) 27 | AugAssign(expr target, operator op, expr value) [all …]
|
/third_party/rust/crates/tracing/tracing/src/ |
D | macros.rs | 21 (target: $target:expr, parent: $parent:expr, $lvl:expr, $name:expr) => { 24 (target: $target:expr, parent: $parent:expr, $lvl:expr, $name:expr, $($fields:tt)*) => { 55 (target: $target:expr, $lvl:expr, $name:expr, $($fields:tt)*) => { 85 (target: $target:expr, parent: $parent:expr, $lvl:expr, $name:expr) => { 88 (parent: $parent:expr, $lvl:expr, $name:expr, $($fields:tt)*) => { 97 (parent: $parent:expr, $lvl:expr, $name:expr) => { 105 (target: $target:expr, $lvl:expr, $name:expr, $($fields:tt)*) => { 113 (target: $target:expr, $lvl:expr, $name:expr) => { 116 ($lvl:expr, $name:expr, $($fields:tt)*) => { 124 ($lvl:expr, $name:expr) => { [all …]
|
/third_party/rust/crates/proc-macro-error/src/ |
D | macros.rs | 13 ($err:expr) => { $crate::Diagnostic::from($err) }; 16 ($span:expr, $level:expr, $fmt:expr, $($args:expr),+ ; $($rest:tt)+) => {{ 36 ($span:expr, $level:expr, $msg:expr ; $($rest:tt)+) => {{ 53 ($span:expr, $level:expr, $fmt:expr, $($args:expr),+) => {{ 71 ($span:expr, $level:expr, $msg:expr) => {{ 88 ($span:expr, $level:expr, $fmt:expr, $($args:expr),+, ; $($rest:tt)+) => { 91 ($span:expr, $level:expr, $msg:expr, ; $($rest:tt)+) => { 94 ($span:expr, $level:expr, $fmt:expr, $($args:expr),+,) => { 97 ($span:expr, $level:expr, $msg:expr,) => { 110 ($err:expr) => { [all …]
|
/third_party/toybox/kconfig/ |
D | expr.h | 39 struct expr *expr; member 43 struct expr { struct 53 struct expr *expr; member 81 struct expr *dep, *dep2; 119 struct expr *expr; member 140 struct expr *dep; 161 struct expr *expr_alloc_symbol(struct symbol *sym); 162 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce); 163 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2); 164 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2); [all …]
|
D | expr.c | 15 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol() 17 struct expr *e = malloc(sizeof(*e)); in expr_alloc_symbol() 24 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce) in expr_alloc_one() 26 struct expr *e = malloc(sizeof(*e)); in expr_alloc_one() 29 e->left.expr = ce; in expr_alloc_one() 33 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2) in expr_alloc_two() 35 struct expr *e = malloc(sizeof(*e)); in expr_alloc_two() 38 e->left.expr = e1; in expr_alloc_two() 39 e->right.expr = e2; in expr_alloc_two() 43 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2) in expr_alloc_comp() [all …]
|
/third_party/rust/crates/rustix/src/backend/linux_raw/arch/ |
D | mod.rs | 65 ($nr:ident, $a0:expr) => { 72 ($nr:ident, $a0:expr, $a1:expr) => { 80 ($nr:ident, $a0:expr, $a1:expr, $a2:expr) => { 89 ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr) => { 99 ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr) => { 110 ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr, $a5:expr) => { 122 ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr, $a5:expr, $a6:expr) => { 143 ($nr:ident, $a0:expr) => { 150 ($nr:ident, $a0:expr, $a1:expr) => { 158 ($nr:ident, $a0:expr, $a1:expr, $a2:expr) => { [all …]
|
/third_party/skia/resources/sksl/folding/ |
D | ShortCircuitBoolFolding.sksl | 5 bool expr = unknownInput > 0; 10 if (true && expr) { ++ok; } else { ++bad; } // -> (expr) 11 if (false && expr) { ++bad; } else { ++ok; } // -> (false) -> block removed 12 if (true ^^ expr) { ++bad; } else { ++ok; } // -> unchanged 13 if (false ^^ expr) { ++ok; } else { ++bad; } // -> (expr) 14 if (true || expr) { ++ok; } else { ++bad; } // -> (true) 15 if (false || expr) { ++ok; } else { ++bad; } // -> (expr) 16 if (true == expr) { ++ok; } else { ++bad; } // -> (expr) 17 if (false == expr) { ++bad; } else { ++ok; } // -> unchanged 18 if (true != expr) { ++bad; } else { ++ok; } // -> unchanged [all …]
|
/third_party/mesa3d/src/compiler/glsl/ |
D | ir_builder.cpp | 168 expr(ir_expression_operation op, operand a) in expr() function 176 expr(ir_expression_operation op, operand a, operand b) in expr() function 184 expr(ir_expression_operation op, operand a, operand b, operand c) in expr() function 193 return expr(ir_binop_add, a, b); in add() 198 return expr(ir_binop_sub, a, b); in sub() 203 return expr(ir_binop_min, a, b); in min2() 208 return expr(ir_binop_max, a, b); in max2() 213 return expr(ir_binop_mul, a, b); in mul() 218 return expr(ir_binop_imul_high, a, b); in imul_high() 223 return expr(ir_binop_div, a, b); in div() [all …]
|
D | s_expression.cpp | 63 s_expression *expr = NULL; in read_atom() local 75 expr = new(ctx) s_float(INFINITY); in read_atom() 85 expr = new(ctx) s_float(f); in read_atom() 87 expr = new(ctx) s_int(i); in read_atom() 91 expr = new(ctx) s_symbol(symbol_buffer, n); in read_atom() 98 return expr; in read_atom() 114 s_expression *expr; in __read_expression() local 116 while ((expr = __read_expression(ctx, src, symbol_buffer)) != NULL) { in __read_expression() 117 list->subexpressions.push_tail(expr); in __read_expression() 168 foreach_in_list(s_expression, expr, &this->subexpressions) { in print() [all …]
|
D | ir_reader.cpp | 91 s_expression *expr = s_expression::read_expression(sx_mem_ctx, src); in read() local 92 if (expr == NULL) { in read() 98 scan_for_prototypes(instructions, expr); in read() 103 read_instructions(instructions, expr, NULL); in read() 111 ir_reader::ir_read_error(s_expression *expr, const char *fmt, ...) in ir_read_error() argument 127 if (expr != NULL) { in ir_read_error() 129 expr->print(); in ir_read_error() 135 ir_reader::read_type(s_expression *expr) in read_type() argument 141 if (MATCH(expr, pat)) { in read_type() 151 s_symbol *type_sym = SX_AS_SYMBOL(expr); in read_type() [all …]
|
/third_party/jerryscript/tests/jerry/ |
D | function-expr-named.js | 15 var expr = "Dummy value"; variable 17 var f = function expr() { function 18 assert(expr === f); 19 expr = 6; 20 assert(expr === f); 21 assert(!(delete expr)); 22 assert(expr === f); 27 f = function expr() { 28 assert(expr === undefined); 29 var expr = 6; [all …]
|
/third_party/selinux/libsepol/src/ |
D | constraint.c | 28 int constraint_expr_init(constraint_expr_t * expr) in constraint_expr_init() argument 30 memset(expr, 0, sizeof(*expr)); in constraint_expr_init() 31 ebitmap_init(&expr->names); in constraint_expr_init() 32 if ((expr->type_names = malloc(sizeof(*expr->type_names))) == NULL) { in constraint_expr_init() 35 type_set_init(expr->type_names); in constraint_expr_init() 39 void constraint_expr_destroy(constraint_expr_t * expr) in constraint_expr_destroy() argument 43 while (expr != NULL) { in constraint_expr_destroy() 44 next = expr->next; in constraint_expr_destroy() 45 ebitmap_destroy(&expr->names); in constraint_expr_destroy() 46 type_set_destroy(expr->type_names); in constraint_expr_destroy() [all …]
|
/third_party/skia/third_party/externals/tint/src/transform/ |
D | robustness.cc | 44 ctx.ReplaceAll([&](const ast::IndexAccessorExpression* expr) { in Transform() argument 45 return Transform(expr); in Transform() 48 [&](const ast::CallExpression* expr) { return Transform(expr); }); in Transform() argument 56 const ast::IndexAccessorExpression* expr) { in Transform() 57 auto* ret_type = ctx.src->Sem().Get(expr->object)->Type(); in Transform() 70 const ast::Expression* expr = nullptr; // If null, then is a constant in Transform() member 96 "invalid 0 sized non-array", expr->source); in Transform() 100 auto* arr = ctx.Clone(expr->object); in Transform() 101 size.expr = b.Call("arrayLength", b.AddressOf(arr)); in Transform() 109 if (size.expr) { in Transform() [all …]
|
/third_party/libxml2/ |
D | testAutomata.c | 32 char expr[5000]; in testRegexpFile() local 68 while (fgets(expr, 4500, input) != NULL) { in testRegexpFile() 69 if (expr[0] == '#') in testRegexpFile() 71 len = strlen(expr); in testRegexpFile() 74 ((expr[len] == '\n') || (expr[len] == '\t') || in testRegexpFile() 75 (expr[len] == '\r') || (expr[len] == ' '))) len--; in testRegexpFile() 76 expr[len + 1] = 0; in testRegexpFile() 78 if ((am != NULL) && (expr[0] == 't') && (expr[1] == ' ')) { in testRegexpFile() 79 char *ptr = &expr[2]; in testRegexpFile() 85 "Bad line %s\n", expr); in testRegexpFile() [all …]
|
/third_party/skia/third_party/externals/tint/src/writer/spirv/ |
D | builder_accessor_expression_test.cc | 34 auto* expr = IndexAccessor(ary, idx_expr); in TEST_F() local 35 WrapInFunction(var, expr); in TEST_F() 42 EXPECT_EQ(b.GenerateAccessorExpression(expr), 9u); in TEST_F() 71 auto* expr = IndexAccessor(ary, idx_expr); in TEST_F() local 72 WrapInFunction(var, idx, expr); in TEST_F() 80 EXPECT_EQ(b.GenerateAccessorExpression(expr), 12u); in TEST_F() 109 auto* expr = IndexAccessor(ary, Add(1, 2)); in TEST_F() local 110 WrapInFunction(var, expr); in TEST_F() 117 EXPECT_EQ(b.GenerateAccessorExpression(expr), 11u); in TEST_F() 145 auto* expr = IndexAccessor(IndexAccessor("ary", 3), 2); in TEST_F() local [all …]
|
/third_party/skia/third_party/externals/tint/src/writer/hlsl/ |
D | generator_impl_binary_test.cc | 53 auto* expr = create<ast::BinaryExpression>(params.op, left, right); in TEST_P() local 55 WrapInFunction(expr); in TEST_P() 60 ASSERT_TRUE(gen.EmitExpression(out, expr)) << gen.error(); in TEST_P() 72 auto* expr = create<ast::BinaryExpression>(params.op, left, right); in TEST_P() local 74 WrapInFunction(expr); in TEST_P() 79 ASSERT_TRUE(gen.EmitExpression(out, expr)) << gen.error(); in TEST_P() 97 auto* expr = create<ast::BinaryExpression>(params.op, left, right); in TEST_P() local 99 WrapInFunction(expr); in TEST_P() 104 ASSERT_TRUE(gen.EmitExpression(out, expr)) << gen.error(); in TEST_P() 132 auto* expr = in TEST_F() local [all …]
|
/third_party/rust/crates/tracing/tracing-macros/src/ |
D | lib.rs | 8 (target: $target:expr, level: $level:expr, $ex:expr) => { 11 (level: $level:expr, $ex:expr) => { 14 (target: $target:expr, $ex:expr) => { 17 ($ex:expr) => { 29 (target: $target:expr, level: $level:expr, $ex:expr) => {{ 37 (level: $level:expr, $ex:expr) => { 40 (target: $target:expr, $ex:expr) => { 43 ($ex:expr) => {
|