/external/selinux/libsepol/cil/src/ |
D | cil_build_ast.h | 40 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum,… 43 … cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint16_t is_abst… 45 …ockinherit(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node); 47 …ckabstract(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node); 49 …cil_gen_in(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node); 51 …_gen_class(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node); 53 …classorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node); 55 … cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor … 57 …t cil_db *db, struct cil_tree_node *current_perm, struct cil_tree_node *ast_node, enum cil_flavor … 65 …permission(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node); [all …]
|
D | cil_build_ast.c | 107 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum,… in cil_gen_node() argument 118 rc = cil_get_symtab(ast_node->parent, &symtab, sflavor); in cil_gen_node() 123 ast_node->data = datum; in cil_gen_node() 124 ast_node->flavor = nflavor; in cil_gen_node() 127 rc = cil_symtab_insert(symtab, (hashtab_key_t)key, datum, ast_node); in cil_gen_node() 135 cil_node_to_string(ast_node), key); in cil_gen_node() 145 cil_list_append(prev->nodes, CIL_NODE, ast_node); in cil_gen_node() 146 ast_node->data = prev; in cil_gen_node() 152 if (ast_node->flavor >= CIL_MIN_DECLARATIVE && ast_node->parent->flavor == CIL_MACRO) { in cil_gen_node() 154 struct cil_list *param_list = ((struct cil_macro*)ast_node->parent->data)->params; in cil_gen_node() [all …]
|
D | android.c | 17 struct cil_tree_node *ast_node; member 95 datum->ast_node = node; in __extract_attributees_helper() 169 switch (vers_datum->ast_node->flavor) { in __cil_get_plat_flavor() 784 struct cil_tree_node *ast_node = NULL; in cil_build_mappings_tree() local 791 if (vers_datum->ast_node->flavor == CIL_TYPEATTRIBUTE) { in cil_build_mappings_tree() 802 cil_tree_node_init(&ast_node); in cil_build_mappings_tree() 803 ast_node->data = attrset; in cil_build_mappings_tree() 804 ast_node->flavor = CIL_TYPEATTRIBUTESET; in cil_build_mappings_tree() 807 ast_node->parent = ast_parent; in cil_build_mappings_tree() 809 ast_parent->cl_head = ast_node; in cil_build_mappings_tree() [all …]
|
D | cil_resolve_ast.h | 101 int cil_resolve_name(struct cil_tree_node *ast_node, char *name, enum cil_sym_index sym_index, void… 102 int cil_resolve_name_keep_aliases(struct cil_tree_node *ast_node, char *name, enum cil_sym_index sy…
|
D | cil_resolve_ast.c | 67 … cil_name * __cil_insert_name(struct cil_db *db, hashtab_key_t key, struct cil_tree_node *ast_node) in __cil_insert_name() argument 72 struct cil_tree_node *parent = ast_node->parent; in __cil_insert_name() 103 cil_symtab_insert(symtab, key, (struct cil_symtab_datum *)name, ast_node); in __cil_insert_name() 4113 int cil_resolve_name(struct cil_tree_node *ast_node, char *name, enum cil_sym_index sym_index, void… in cil_resolve_name() argument 4118 rc = cil_resolve_name_keep_aliases(ast_node, name, sym_index, extra_args, datum); in cil_resolve_name() 4141 int cil_resolve_name_keep_aliases(struct cil_tree_node *ast_node, char *name, enum cil_sym_index sy… in cil_resolve_name_keep_aliases() argument 4157 rc = __cil_resolve_name_helper(db, ast_node->parent, name, sym_index, datum); in cil_resolve_name_keep_aliases() 4170 cil_tree_log(ast_node, CIL_ERR, "Invalid name %s", name); in cil_resolve_name_keep_aliases() 4175 node = ast_node; in cil_resolve_name_keep_aliases() 4198 if (ast_node->flavor != CIL_IN) { in cil_resolve_name_keep_aliases()
|
D | cil.c | 1758 int cil_get_symtab(struct cil_tree_node *ast_node, symtab_t **symtab, enum cil_sym_index sym_index) in cil_get_symtab() argument 1760 struct cil_tree_node *node = ast_node; in cil_get_symtab() 1814 cil_tree_log(ast_node, CIL_ERR, "Failed to get symtab from node"); in cil_get_symtab()
|
D | cil_internal.h | 982 int cil_get_symtab(struct cil_tree_node *ast_node, symtab_t **symtab, enum cil_sym_index sym_index);
|
/external/mesa3d/src/compiler/glsl/ |
D | ast.h | 50 class ast_node { 52 DECLARE_LINEAR_ZALLOC_CXX_OPERATORS(ast_node); 136 ast_node(void); 215 class ast_expression : public ast_node { 336 class ast_subroutine_list : public ast_node 343 class ast_array_specifier : public ast_node { 370 class ast_layout_expression : public ast_node { 428 class ast_compound_statement : public ast_node { 430 ast_compound_statement(int new_scope, ast_node *statements); 440 class ast_declaration : public ast_node { [all …]
|
D | glsl_parser_extras.cpp | 1111 ast_node::print(void) const in print() 1117 ast_node::ast_node(void) in ast_node() function in ast_node 1140 foreach_list_typed(ast_node, ast, link, &this->statements) { in print() 1149 ast_node *statements) in ast_compound_statement() 1219 foreach_list_typed (ast_node, ast, link, &this->expressions) { in print() 1258 foreach_list_typed (ast_node, ast, link, & this->expressions) { in print() 1270 foreach_list_typed (ast_node, ast, link, & this->expressions) { in print() 1324 foreach_list_typed(ast_node, ast, link, & this->parameters) { in print() 1401 foreach_list_typed (ast_node, ast, link, & this->declarations) { in print() 1470 ast_node *then_statement, in ast_selection_statement() [all …]
|
D | ast_type.cpp | 502 ast_node* &node) in merge_into_out_qualifier() 616 ast_node* &node) in merge_into_in_qualifier() 804 ast_node *const_expression = exec_node_data(ast_node, node, link); in process_qualifier_constant()
|
D | ast_array_index.cpp | 31 foreach_list_typed (ast_node, array_dimension, link, &this->array_dimensions) { in print()
|
D | glsl_parser.yy | 106 ast_node *node; 126 ast_node *cond; 131 ast_node *then_statement; 132 ast_node *else_statement; 2436 compound_statement { $$ = (ast_node *) $1; } 2470 compound_statement_no_new_scope { $$ = (ast_node *) $1; } 2551 $$ = (ast_node *) $1;
|
D | ast_function.cpp | 41 foreach_list_typed(ast_node, ast, link, parameters) { in process_parameters() 1939 foreach_list_typed(ast_node, ast, link, &this->expressions) { in hir() 2185 foreach_list_typed(const ast_node, ast, link, &this->expressions) { in has_sequence_subexpression()
|
D | ast_to_hir.cpp | 153 foreach_list_typed (ast_node, ast, link, & state->translation_unit) in _mesa_ast_to_hir() 1046 ast_node::hir(exec_list *instructions, struct _mesa_glsl_parse_state *state) in hir() 1055 ast_node::has_sequence_subexpression() const in has_sequence_subexpression() 1061 ast_node::set_is_lhs(bool /* new_value */) in set_is_lhs() 2023 foreach_list_typed (ast_node, ast, link, &this->expressions) { in do_hir() 2179 foreach_list_typed (ast_node, ast, link, &this->statements) in hir() 2200 ast_node *array_size = exec_node_data(ast_node, node, link); in process_array_size() 6282 foreach_list_typed (ast_node, stmt, link, & this->stmts) in hir()
|
/external/python/cpython2/Lib/test/ |
D | test_ast.py | 182 def _assertTrueorder(self, ast_node, parent_pos): argument 183 if not isinstance(ast_node, ast.AST) or ast_node._fields is None: 185 if isinstance(ast_node, (ast.expr, ast.stmt, ast.excepthandler)): 186 node_pos = (ast_node.lineno, ast_node.col_offset) 188 parent_pos = (ast_node.lineno, ast_node.col_offset) 189 for name in ast_node._fields: 190 value = getattr(ast_node, name)
|
/external/python/cpython3/Lib/test/ |
D | test_ast.py | 195 def _assertTrueorder(self, ast_node, parent_pos): argument 196 if not isinstance(ast_node, ast.AST) or ast_node._fields is None: 198 if isinstance(ast_node, (ast.expr, ast.stmt, ast.excepthandler)): 199 node_pos = (ast_node.lineno, ast_node.col_offset) 201 parent_pos = (ast_node.lineno, ast_node.col_offset) 202 for name in ast_node._fields: 203 value = getattr(ast_node, name)
|