Home
last modified time | relevance | path

Searched refs:ast_node (Results 1 – 25 of 26) sorted by relevance

12

/external/selinux/libsepol/cil/src/
Dcil_build_ast.h40 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 …]
Dcil_build_ast.c107 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 …]
Dandroid.c17 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 …]
Dcil_resolve_ast.h101 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…
Dcil_resolve_ast.c67 … 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()
4120 int cil_resolve_name(struct cil_tree_node *ast_node, char *name, enum cil_sym_index sym_index, void… in cil_resolve_name() argument
4125 rc = cil_resolve_name_keep_aliases(ast_node, name, sym_index, extra_args, datum); in cil_resolve_name()
4148 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
4164 rc = __cil_resolve_name_helper(db, ast_node->parent, name, sym_index, datum); in cil_resolve_name_keep_aliases()
4177 cil_tree_log(ast_node, CIL_ERR, "Invalid name %s", name); in cil_resolve_name_keep_aliases()
4182 node = ast_node; in cil_resolve_name_keep_aliases()
4205 if (ast_node->flavor != CIL_IN) { in cil_resolve_name_keep_aliases()
Dcil_internal.h986 int cil_get_symtab(struct cil_tree_node *ast_node, symtab_t **symtab, enum cil_sym_index sym_index);
Dcil.c1922 int cil_get_symtab(struct cil_tree_node *ast_node, symtab_t **symtab, enum cil_sym_index sym_index) in cil_get_symtab() argument
1924 struct cil_tree_node *node = ast_node; in cil_get_symtab()
1978 cil_tree_log(ast_node, CIL_ERR, "Failed to get symtab from node"); in cil_get_symtab()
/external/mesa3d/src/compiler/glsl/
Dast.h51 class ast_node {
53 DECLARE_LINEAR_ZALLOC_CXX_OPERATORS(ast_node);
141 ast_node(void);
222 class ast_expression : public ast_node {
345 class ast_subroutine_list : public ast_node
352 class ast_array_specifier : public ast_node {
379 class ast_layout_expression : public ast_node {
437 class ast_compound_statement : public ast_node {
439 ast_compound_statement(int new_scope, ast_node *statements);
449 class ast_declaration : public ast_node {
[all …]
Dglsl_parser_extras.cpp1181 ast_node::print(void) const in print()
1187 ast_node::ast_node(void) in ast_node() function in ast_node
1211 foreach_list_typed(ast_node, ast, link, &this->statements) { in print()
1220 ast_node *statements) in ast_compound_statement()
1290 foreach_list_typed (ast_node, ast, link, &this->expressions) { in print()
1337 foreach_list_typed (ast_node, ast, link, & this->expressions) { in print()
1349 foreach_list_typed (ast_node, ast, link, & this->expressions) { in print()
1403 foreach_list_typed(ast_node, ast, link, & this->parameters) { in print()
1480 foreach_list_typed (ast_node, ast, link, & this->declarations) { in print()
1556 ast_node *then_statement, in ast_selection_statement()
[all …]
Dast_type.cpp572 ast_node* &node) in merge_into_out_qualifier()
691 ast_node* &node) in merge_into_in_qualifier()
927 ast_node *const_expression = exec_node_data(ast_node, node, link); in process_qualifier_constant()
Dast_array_index.cpp31 foreach_list_typed (ast_node, array_dimension, link, &this->array_dimensions) { in print()
Dglsl_parser.yy110 ast_node *node;
130 ast_node *cond;
135 ast_node *then_statement;
136 ast_node *else_statement;
2512 compound_statement { $$ = (ast_node *) $1; }
2547 compound_statement_no_new_scope { $$ = (ast_node *) $1; }
2637 $$ = (ast_node *) $1;
Dast_to_hir.cpp158 foreach_list_typed (ast_node, ast, link, & state->translation_unit) in _mesa_ast_to_hir()
1070 ast_node::hir(exec_list *instructions, struct _mesa_glsl_parse_state *state) in hir()
1079 ast_node::has_sequence_subexpression() const in has_sequence_subexpression()
1085 ast_node::set_is_lhs(bool /* new_value */) in set_is_lhs()
2096 foreach_list_typed (ast_node, ast, link, &this->expressions) { in do_hir()
2254 foreach_list_typed (ast_node, ast, link, &this->statements) in hir()
2277 ast_node *array_size = exec_node_data(ast_node, node, link); in process_array_size()
6872 foreach_list_typed (ast_node, stmt, link, & this->stmts) in hir()
Dast_function.cpp43 foreach_list_typed(ast_node, ast, link, parameters) { in process_parameters()
2199 foreach_list_typed(ast_node, ast, link, &this->expressions) { in hir()
2514 foreach_list_typed(const ast_node, ast, link, &this->expressions) { in has_sequence_subexpression()
/external/tensorflow/tensorflow/python/autograph/pyct/
Dcfg.py63 def __init__(self, next_, prev, ast_node): argument
66 self.ast_node = ast_node
76 if isinstance(self.ast_node, gast.FunctionDef):
77 return 'def %s' % self.ast_node.name
78 elif isinstance(self.ast_node, gast.ClassDef):
79 return 'class %s' % self.ast_node.name
80 elif isinstance(self.ast_node, gast.withitem):
82 self.ast_node.context_expr, include_encoding_marker=False).strip()
83 return parser.unparse(self.ast_node, include_encoding_marker=False).strip()
324 def _add_new_node(self, ast_node): argument
[all …]
Dtemplates_test.py43 ast_node = parser.parse_expression(expr_source)
44 _CtxClearer().visit(ast_node)
45 return ast_node
Dcfg_test.py36 self.counts[node.ast_node] = self.counts.get(node.ast_node, 0) + 1
/external/python/cpython2/Lib/test/
Dtest_ast.py182 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/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dreaching_definitions.py130 defs_in = _NodeState(self.extra_in.get(node.ast_node, None))
134 if anno.hasanno(node.ast_node, anno.Static.SCOPE):
135 node_scope = anno.getanno(node.ast_node, anno.Static.SCOPE)
156 elif isinstance(node.ast_node, (gast.Global, gast.Nonlocal)):
162 for s in node.ast_node.names:
182 assert isinstance(node.ast_node,
184 gast.Pass)), (node.ast_node, node)
Dliveness.py55 if anno.hasanno(node.ast_node, anno.Static.SCOPE):
56 node_scope = anno.getanno(node.ast_node, anno.Static.SCOPE)
58 gen = node_scope.read | self.extra_gen.get(node.ast_node, frozenset())
73 assert isinstance(node.ast_node,
75 gast.Global, gast.Nonlocal)), type(node.ast_node)
/external/tensorflow/tensorflow/python/autograph/converters/
Ddirectives.py51 self.ast_node = None
111 target = self.state[_LoopScope].ast_node
165 self.state[_LoopScope].ast_node = node
/external/v8/src/torque/
Ddeclarations.cc300 const std::string& name, GenericCallableDeclaration* ast_node) { in DeclareGenericCallable() argument
302 new GenericCallable(name, ast_node))); in DeclareGenericCallable()
306 const std::string& name, GenericTypeDeclaration* ast_node) { in DeclareGenericType() argument
308 std::unique_ptr<GenericType>(new GenericType(name, ast_node))); in DeclareGenericType()
Ddeclarations.h133 const std::string& name, GenericCallableDeclaration* ast_node);
135 GenericTypeDeclaration* ast_node);
/external/python/cpython3/Lib/test/
Dtest_ast.py246 def _assertTrueorder(self, ast_node, parent_pos): argument
247 if not isinstance(ast_node, ast.AST) or ast_node._fields is None:
249 if isinstance(ast_node, (ast.expr, ast.stmt, ast.excepthandler)):
250 node_pos = (ast_node.lineno, ast_node.col_offset)
252 parent_pos = (ast_node.lineno, ast_node.col_offset)
253 for name in ast_node._fields:
254 value = getattr(ast_node, name)
1420 def _check_end_pos(self, ast_node, end_lineno, end_col_offset): argument
1421 self.assertEqual(ast_node.end_lineno, end_lineno)
1422 self.assertEqual(ast_node.end_col_offset, end_col_offset)
[all …]
/external/mesa3d/docs/relnotes/
D7.11.1.rst57 const glsl_type*, ast_node*, \_mesa_glsl_parse_state*): Assertion

12