Lines Matching refs:node
383 CIL_KEY_NODE = cil_strpool_add("<node>");
1111 const char * cil_node_to_string(struct cil_tree_node *node)
1113 switch (node->flavor) {
1155 switch (((struct cil_condblock*)node->data)->flavor) {
1265 switch (((struct cil_avrule *)node->data)->rule_kind) {
1279 switch (((struct cil_avrule *)node->data)->rule_kind) {
1297 switch (((struct cil_type_rule *)node->data)->rule_kind) {
1482 struct cil_tree_node *node;
1490 node = NODE(i->data);
1491 if (node->flavor == CIL_CATSET) {
1959 struct cil_tree_node *node = ast_node;
1963 /* Class statements are not blocks, so the passed node should be the class */
1964 if (node->flavor == CIL_CLASS || node->flavor == CIL_MAP_CLASS ||
1965 node->flavor == CIL_COMMON) {
1966 *symtab = &((struct cil_class*)node->data)->perms;
1977 while (node != NULL && *symtab == NULL) {
1978 switch (node->flavor) {
1980 *symtab = &((struct cil_root *)node->data)->symtab[sym_index];
1983 *symtab = &((struct cil_block*)node->data)->symtab[sym_index];
1986 *symtab = &((struct cil_macro*)node->data)->symtab[sym_index];
1990 *symtab = &((struct cil_in*)node->data)->symtab[sym_index];
1993 if (node->parent->flavor == CIL_TUNABLEIF) {
1995 *symtab = &((struct cil_condblock*)node->data)->symtab[sym_index];
1996 } else if (node->parent->flavor == CIL_BOOLEANIF) {
1997 node = node->parent->parent;
2002 node = node->parent;
2013 cil_tree_log(ast_node, CIL_ERR, "Failed to get symtab from node");