Lines Matching defs:ast
50 struct cil_tree_node *ast;
6503 new_ast_node = parse_statement(args->db, parse_current, args->ast);
6508 args->ast = new_ast_node;
6529 struct cil_tree_node *ast = args->ast;
6531 if (ast->flavor == CIL_TUNABLEIF) {
6532 args->tunif = ast;
6533 } else if (ast->flavor == CIL_IN) {
6534 args->in = ast;
6535 } else if (ast->flavor == CIL_MACRO) {
6536 args->macro = ast;
6537 } else if (ast->flavor == CIL_OPTIONAL) {
6538 args->optional = ast;
6539 } else if (ast->flavor == CIL_BOOLEANIF) {
6540 args->boolif = ast;
6549 struct cil_tree_node *ast = args->ast;
6551 if (ast->flavor == CIL_ROOT) {
6555 args->ast = ast->parent;
6557 if (ast->flavor == CIL_TUNABLEIF) {
6561 if (ast->flavor == CIL_IN) {
6565 if (ast->flavor == CIL_MACRO) {
6569 if (ast->flavor == CIL_OPTIONAL) {
6570 struct cil_tree_node *n = ast->parent;
6582 if (ast->flavor == CIL_BOOLEANIF) {
6596 int cil_build_ast(struct cil_db *db, struct cil_tree_node *parse_tree, struct cil_tree_node *ast)
6601 if (db == NULL || parse_tree == NULL || ast == NULL) {
6605 extra_args.ast = ast;