Searched refs:ast_node (Results 1 - 15 of 15) sorted by relevance

/external/selinux/libsepol/cil/src/
H A Dcil_build_ast.h40 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum, hashtab_key_t key, enum cil_sym_index sflavor, enum cil_flavor nflavor);
43 int cil_gen_block(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint16_t is_abstract);
45 int cil_gen_blockinherit(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node);
47 int cil_gen_blockabstract(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node);
49 int cil_gen_in(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node);
51 int cil_gen_class(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node);
53 int cil_gen_classorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node);
55 int cil_gen_perm(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor, unsigned int *num_perms);
57 int cil_gen_perm_nodes(struct cil_db *db, struct cil_tree_node *current_perm, struct cil_tree_node *ast_node, enum cil_flavor flavor, unsigned int *num_perms);
65 int cil_gen_classpermission(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node);
[all...]
H A Dcil_build_ast.c107 int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_symtab_datum *datum, hashtab_key_t key, enum cil_sym_index sflavor, enum cil_flavor nflavor) argument
118 rc = cil_get_symtab(ast_node->parent, &symtab, sflavor);
123 ast_node->data = datum;
124 ast_node->flavor = nflavor;
127 rc = cil_symtab_insert(symtab, (hashtab_key_t)key, datum, ast_node);
135 cil_node_to_string(ast_node), key);
145 cil_list_append(prev->nodes, CIL_NODE, ast_node);
146 ast_node->data = prev;
152 if (ast_node->flavor >= CIL_MIN_DECLARATIVE && ast_node
176 cil_clear_node(struct cil_tree_node *ast_node) argument
186 cil_gen_block(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint16_t is_abstract) argument
241 cil_gen_blockinherit(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
285 cil_gen_blockabstract(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
329 cil_gen_in(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
375 cil_gen_class(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
442 cil_gen_classorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
510 cil_gen_perm(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor, unsigned int *num_perms) argument
552 cil_gen_perm_nodes(struct cil_db *db, struct cil_tree_node *current_perm, struct cil_tree_node *ast_node, enum cil_flavor flavor, unsigned int *num_perms) argument
747 cil_gen_classpermission(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
805 cil_gen_classpermissionset(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
857 cil_gen_map_class(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
898 cil_gen_classmapping(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
953 cil_gen_common(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1003 cil_gen_classcommon(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1050 cil_gen_sid(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1099 cil_gen_sidcontext(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1159 cil_gen_sidorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1219 cil_gen_user(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1270 cil_gen_userattribute(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1336 cil_gen_userattributeset(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1389 cil_gen_userlevel(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1449 cil_gen_userrange(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1509 cil_gen_userprefix(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1554 cil_gen_selinuxuser(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1602 cil_gen_selinuxuserdefault(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1662 cil_gen_role(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1713 cil_gen_roletype(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1759 cil_gen_userrole(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1805 cil_gen_roletransition(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1855 cil_gen_roleallow(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1901 cil_gen_roleattribute(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
1970 cil_gen_roleattributeset(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
2023 cil_gen_avrule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind) argument
2124 cil_gen_permissionx(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
2183 cil_gen_avrulex(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind) argument
2234 cil_gen_type_rule(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, uint32_t rule_kind) argument
2285 cil_gen_type(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
2339 cil_gen_typeattribute(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
2409 cil_gen_bool(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, int tunableif) argument
2473 cil_gen_tunable(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
2830 cil_gen_boolif(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, int tunableif) argument
2914 cil_gen_tunif(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
2993 cil_gen_condblock(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) argument
3045 cil_gen_alias(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) argument
3108 cil_gen_aliasactual(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) argument
3161 cil_gen_typeattributeset(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3213 cil_gen_expandtypeattribute(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3282 cil_gen_typepermissive(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3326 cil_gen_typetransition(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3418 cil_gen_rangetransition(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3484 cil_gen_sensitivity(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3536 cil_gen_category(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3585 cil_gen_catset(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3643 cil_gen_catorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3703 cil_gen_sensitivityorder(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3763 cil_gen_senscat(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3815 cil_gen_level(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3921 cil_gen_levelrange(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
3985 cil_gen_constrain(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) argument
4042 cil_gen_validatetrans(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) argument
4143 cil_gen_context(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
4203 cil_gen_filecon(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
4293 cil_gen_ibpkeycon(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
4376 cil_gen_portcon(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
4476 cil_gen_nodecon(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
4565 cil_gen_genfscon(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
4628 cil_gen_netifcon(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
4704 cil_gen_ibendportcon(__attribute__((unused)) struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
4766 cil_gen_pirqcon(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
4829 cil_gen_iomemcon(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
4914 cil_gen_ioportcon(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
4999 cil_gen_pcidevicecon(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
5062 cil_gen_devicetreecon(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
5122 cil_gen_fsuse(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
5206 cil_gen_macro(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
5358 cil_gen_call(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
5463 cil_gen_optional(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
5512 cil_gen_policycap(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
5560 cil_gen_ipaddr(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
5759 cil_gen_bounds(struct cil_db *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) argument
5818 cil_gen_default(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) argument
5885 cil_gen_defaultrange(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
5973 cil_gen_handleunknown(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
6025 cil_gen_mls(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
6073 cil_gen_src_info(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node) argument
6099 struct cil_tree_node *ast_node = NULL; local
[all...]
H A Dandroid.c17 struct cil_tree_node *ast_node; member in struct:version_datum
95 datum->ast_node = node;
169 switch (vers_datum->ast_node->flavor) {
784 struct cil_tree_node *ast_node = NULL; local
791 if (vers_datum->ast_node->flavor == CIL_TYPEATTRIBUTE) {
802 cil_tree_node_init(&ast_node);
803 ast_node->data = attrset;
804 ast_node->flavor = CIL_TYPEATTRIBUTESET;
807 ast_node->parent = ast_parent;
809 ast_parent->cl_head = ast_node;
[all...]
H A Dcil_resolve_ast.h101 int cil_resolve_name(struct cil_tree_node *ast_node, char *name, enum cil_sym_index sym_index, void *extra_args, struct cil_symtab_datum **datum);
102 int cil_resolve_name_keep_aliases(struct cil_tree_node *ast_node, char *name, enum cil_sym_index sym_index, void *extra_args, struct cil_symtab_datum **datum);
H A Dcil_resolve_ast.c67 static struct cil_name * __cil_insert_name(struct cil_db *db, hashtab_key_t key, struct cil_tree_node *ast_node) argument
72 struct cil_tree_node *parent = ast_node->parent;
103 cil_symtab_insert(symtab, key, (struct cil_symtab_datum *)name, ast_node);
4113 int cil_resolve_name(struct cil_tree_node *ast_node, char *name, enum cil_sym_index sym_index, void *extra_args, struct cil_symtab_datum **datum) argument
4118 rc = cil_resolve_name_keep_aliases(ast_node, name, sym_index, extra_args, datum);
4141 int cil_resolve_name_keep_aliases(struct cil_tree_node *ast_node, char *name, enum cil_sym_index sym_index, void *extra_args, struct cil_symtab_datum **datum) argument
4157 rc = __cil_resolve_name_helper(db, ast_node->parent, name, sym_index, datum);
4170 cil_tree_log(ast_node, CIL_ERR, "Invalid name %s", name);
4175 node = ast_node;
4198 if (ast_node
[all...]
H A Dcil_internal.h982 int cil_get_symtab(struct cil_tree_node *ast_node, symtab_t **symtab, enum cil_sym_index sym_index);
H A Dcil.c1758 int cil_get_symtab(struct cil_tree_node *ast_node, symtab_t **symtab, enum cil_sym_index sym_index) argument
1760 struct cil_tree_node *node = ast_node;
1814 cil_tree_log(ast_node, CIL_ERR, "Failed to get symtab from node");
/external/mesa3d/src/compiler/glsl/
H A Dast.h50 class ast_node { class
52 DECLARE_LINEAR_ZALLOC_CXX_OPERATORS(ast_node);
73 * \sa _mesa_glsl_error, ast_node::set_location
91 * \sa ast_node::get_location
105 * \sa ast_node::set_location
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 {
364 /* This list contains objects of type ast_node containin
[all...]
H A Dglsl_parser_extras.cpp1111 ast_node::print(void) const
1117 ast_node::ast_node(void)
1140 foreach_list_typed(ast_node, ast, link, &this->statements) {
1149 ast_node *statements)
1219 foreach_list_typed (ast_node, ast, link, &this->expressions) {
1258 foreach_list_typed (ast_node, ast, link, & this->expressions) {
1270 foreach_list_typed (ast_node, ast, link, & this->expressions) {
1324 foreach_list_typed(ast_node, ast, link, & this->parameters) {
1401 foreach_list_typed (ast_node, as
[all...]
H A Dast_array_index.cpp31 foreach_list_typed (ast_node, array_dimension, link, &this->array_dimensions) {
H A Dast_type.cpp502 ast_node* &node)
616 ast_node* &node)
804 ast_node *const_expression = exec_node_data(ast_node, node, link);
H A Dast_function.cpp41 foreach_list_typed(ast_node, ast, link, parameters) {
1939 foreach_list_typed(ast_node, ast, link, &this->expressions) {
2185 foreach_list_typed(const ast_node, ast, link, &this->expressions) { argument
H A Dast_to_hir.cpp153 foreach_list_typed (ast_node, ast, link, & state->translation_unit)
1046 ast_node::hir(exec_list *instructions, struct _mesa_glsl_parse_state *state)
1055 ast_node::has_sequence_subexpression() const
1061 ast_node::set_is_lhs(bool /* new_value */)
2023 foreach_list_typed (ast_node, ast, link, &this->expressions) {
2179 foreach_list_typed (ast_node, ast, link, &this->statements)
2191 * Evaluate the given exec_node (which should be an ast_node representing
2200 ast_node *array_size = exec_node_data(ast_node, node, link);
6282 foreach_list_typed (ast_node, stm
[all...]
/external/python/cpython2/Lib/test/
H A Dtest_ast.py182 def _assertTrueorder(self, ast_node, parent_pos):
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, nam
[all...]
/external/python/cpython3/Lib/test/
H A Dtest_ast.py195 def _assertTrueorder(self, ast_node, parent_pos):
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, nam
[all...]

Completed in 552 milliseconds