Home
last modified time | relevance | path

Searched refs:ast (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/external/selinux/libsepol/cil/test/unit/
Dtest_cil_resolve_ast.c80 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_name()
82 struct cil_tree_node *test_curr = test_db->ast->root->cl_head->cl_head; in test_cil_resolve_name()
104 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_name_invalid_type_neg()
106 struct cil_tree_node *test_curr = test_db->ast->root->cl_head->cl_head; in test_cil_resolve_name_invalid_type_neg()
118 test_db->ast->root = NULL; in test_cil_resolve_ast_curr_null_neg()
120 int rc = cil_resolve_ast(test_db, test_db->ast->root); in test_cil_resolve_ast_curr_null_neg()
143 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_roleallow()
145 int rc = cil_resolve_roleallow(test_db->ast->root->cl_head->next->next, args); in test_cil_resolve_roleallow()
162 int rc1=cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_roleallow_srcdecl_neg()
165 int rc = cil_resolve_roleallow(test_db->ast->root->cl_head->next, args); in test_cil_resolve_roleallow_srcdecl_neg()
[all …]
Dtest_cil_copy_ast.c156 test_ast_node->parent = test_db->ast->root; in test_cil_copy_block()
224 test_ast_node->parent = test_db->ast->root; in test_cil_copy_class()
251 test_ast_node->parent = test_db->ast->root; in test_cil_copy_common()
282 test_ast_node->parent = test_db->ast->root; in test_cil_copy_classcommon()
316 test_ast_node->parent = test_db->ast->root; in test_cil_copy_sid()
343 test_ast_node->parent = test_db->ast->root; in test_cil_copy_sidcontext()
372 test_ast_node->parent = test_db->ast->root; in test_cil_copy_user()
399 test_ast_node->parent = test_db->ast->root; in test_cil_copy_role()
426 test_ast_node->parent = test_db->ast->root; in test_cil_copy_userrole()
455 test_ast_node->parent = test_db->ast->root; in test_cil_copy_type()
[all …]
Dtest_cil_build_ast.c45 struct cil_tree_node *ast; member
54 args->ast = node; in gen_build_args()
218 test_ast_node->parent = test_db->ast->root; in test_cil_gen_block()
240 test_ast_node->parent = test_db->ast->root; in test_cil_gen_block_justblock_neg()
259 test_ast_node->parent = test_db->ast->root; in test_cil_gen_block_noname_neg()
295 test_ast_node->parent = test_db->ast->root; in test_cil_gen_block_treenull_neg()
348 test_ast_node->parent = test_db->ast->root; in test_cil_destroy_block()
369 test_ast_node->parent = test_db->ast->root; in test_cil_gen_blockinherit()
388 test_ast_node->parent = test_db->ast->root; in test_cil_gen_blockinherit_namelist_neg()
407 test_ast_node->parent = test_db->ast->root; in test_cil_gen_blockinherit_namenull_neg()
[all …]
Dtest_cil_fqn.c55 cil_build_ast(test_db, tree->root, test_db->ast->root); in test_cil_qualify_name()
57 int rc = cil_fqn_qualify(test_db->ast->root); in test_cil_qualify_name()
71 cil_build_ast(test_db, tree->root, test_db->ast->root); in test_cil_qualify_name_cil_flavor()
73 int rc = cil_fqn_qualify(test_db->ast->root); in test_cil_qualify_name_cil_flavor()
Dtest_cil_list.c60 test_ast_node->parent = test_db->ast->root; in test_cil_list_append_item()
88 test_ast_node->parent = test_db->ast->root; in test_cil_list_append_item_append()
124 test_ast_node->parent = test_db->ast->root; in test_cil_list_append_item_append_extra()
166 test_ast_node->parent = test_db->ast->root; in test_cil_list_append_item_listnull_neg()
193 test_ast_node->parent = test_db->ast->root; in test_cil_list_append_item_itemnull_neg()
217 test_ast_node->parent = test_db->ast->root; in test_cil_list_prepend_item()
245 test_ast_node->parent = test_db->ast->root; in test_cil_list_prepend_item_prepend()
274 test_ast_node->parent = test_db->ast->root; in test_cil_list_prepend_item_prepend_neg()
308 test_ast_node->parent = test_db->ast->root; in test_cil_list_prepend_item_listnull_neg()
335 test_ast_node->parent = test_db->ast->root; in test_cil_list_prepend_item_itemnull_neg()
Dtest_cil.c53 CuAssertPtrNotNull(tc, test_db->ast); in test_cil_db_init()
69 test_ast_node->parent = test_db->ast->root; in test_cil_get_symtab_block()
87 test_ast_node->parent = test_db->ast->root; in test_cil_get_symtab_class()
105 test_ast_node->parent = test_db->ast->root; in test_cil_get_symtab_root()
123 test_ast_node->parent = test_db->ast->root; in test_cil_get_symtab_flavor_neg()
/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/
DReplaceIcuTags.java19 import com.google.currysrc.api.process.ast.AstNodes;
38 AST ast = tag.getAST(); in visitTagElement() local
45 rewrite.replace(tag, createIcuMarker(ast), null /* editGroup */); in visitTagElement()
49 rewrite.replace(tag, createIcuUsageText(ast), null /* editGroup */); in visitTagElement()
59 rewrite.replace(tag, createIcuEnhancementText(ast, element), null /* editGroup */); in visitTagElement()
63 rewrite.replace(tag, createIcuNoteText(ast), null /* editGroup */); in visitTagElement()
70 private static TagElement createIcuEnhancementText(AST ast, IDocElement fragment) { in createIcuEnhancementText() argument
71 return AstNodes.createTextTagElement(ast, in createIcuEnhancementText()
76 private static TagElement createIcuUsageText(AST ast) { in createIcuUsageText() argument
78 return AstNodes.createTextTagElement(ast, in createIcuUsageText()
[all …]
DRunWithAnnotator.java127 AST ast = cu.getAST(); in addRunWithAnnotation() local
129 QualifiedName qRunWith = (QualifiedName) ast.newName(RUN_WITH_CLASS_NAME); in addRunWithAnnotation()
130 QualifiedName qRunner = (QualifiedName) ast.newName(runnerClass); in addRunWithAnnotation()
138 SingleMemberAnnotation annotation = ast.newSingleMemberAnnotation(); in addRunWithAnnotation()
139 annotation.setTypeName(ast.newSimpleName(runWithName)); in addRunWithAnnotation()
141 TypeLiteral junit4Literal = ast.newTypeLiteral(); in addRunWithAnnotation()
142 junit4Literal.setType(ast.newSimpleType(ast.newSimpleName(runnerName))); in addRunWithAnnotation()
153 AST ast = cu.getAST(); in appendImport() local
154 ImportDeclaration importDeclaration = ast.newImportDeclaration(); in appendImport()
DTranslateJcite.java21 import com.google.currysrc.api.process.ast.AstNodes;
22 import com.google.currysrc.api.process.ast.BodyDeclarationLocator;
40 import static com.google.currysrc.api.process.ast.BodyDeclarationLocators.findDeclarationNode;
41 import static com.google.currysrc.api.process.ast.BodyDeclarationLocators.matchesAny;
177 AST ast = tagNode.getAST(); in createSampleTagElement() local
178 return AstNodes.createTextTagElement(ast, "@sample " + fileName + " " + newTag); in createSampleTagElement()
184 AST ast = tagNode.getAST(); in createEscapedJciteTagElement() local
185 TagElement replacement = ast.newTagElement(); in createEscapedJciteTagElement()
186 replacement.fragments().add(AstNodes.createTextElement(ast, ESCAPED_JCITE_TAG)); in createEscapedJciteTagElement()
187 replacement.fragments().addAll(ASTNode.copySubtrees(ast, tagNode.fragments())); in createEscapedJciteTagElement()
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/
DAstNodes.java16 package com.google.currysrc.api.process.ast;
29 public static TagElement createTextTagElement(AST ast, String text) { in createTextTagElement() argument
30 TagElement element = (TagElement) ast.createInstance(TagElement.class); in createTextTagElement()
31 TextElement textElement = createTextElement(ast, text); in createTextTagElement()
36 public static TextElement createTextElement(AST ast, String text) { in createTextElement() argument
37 TextElement textElement = ast.newTextElement(); in createTextElement()
/external/clang/test/SemaObjC/
Dbool-type.m1 // RUN: %clang_cc1 -triple thumbv7s-apple-ios8.0 -ast-dump "%s" 2>&1 | FileCheck %s --check-prefix …
2 // RUN: %clang_cc1 -triple thumbv7k-apple-watchos2.0 -ast-dump "%s" 2>&1 | FileCheck %s --check-pre…
3 // RUN: %clang_cc1 -triple i386-apple-watchos2.0 -ast-dump "%s" 2>&1 | FileCheck %s --check-prefix …
4 // RUN: %clang_cc1 -triple arm64-apple-ios8.0 -ast-dump "%s" 2>&1 | FileCheck %s --check-prefix CHE…
5 // RUN: %clang_cc1 -triple x86_64-apple-ios8.0 -ast-dump "%s" 2>&1 | FileCheck %s --check-prefix CH…
6 // RUN: %clang_cc1 -triple i386-apple-macosx10.10 -ast-dump "%s" 2>&1 | FileCheck %s --check-prefix…
7 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -ast-dump "%s" 2>&1 | FileCheck %s --check-pref…
/external/chromium-trace/catapult/third_party/html5lib-python/
Dsetup.py2 import ast
35 t = ast.parse(init_file.read(), filename="__init__.py", mode="exec")
36 assert isinstance(t, ast.Module)
37 assignments = filter(lambda x: isinstance(x, ast.Assign), t.body)
40 isinstance(a.targets[0], ast.Name) and
42 isinstance(a.value, ast.Str)):
/external/clang/test/ASTMerge/
Dcategory.m1 // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/category1.m
2 // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/category2.m
3 // RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
Dproperty.m1 // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/property1.m
2 // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/property2.m
3 // RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
Dinterface.m1 // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/interface1.m
2 // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/interface2.m
3 // RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
/external/google-breakpad/src/testing/scripts/generator/cpp/
Dgmock_class.py36 from cpp import ast
52 function_type = ast.FUNCTION_VIRTUAL | ast.FUNCTION_PURE_VIRTUAL
53 ctor_or_dtor = ast.FUNCTION_CTOR | ast.FUNCTION_DTOR
58 if (isinstance(node, ast.Function) and
63 if node.modifiers & ast.FUNCTION_CONST:
125 if (isinstance(node, ast.Class) and node.body and
194 builder = ast.BuilderFromSource(source, filename)
/external/autotest/client/common_lib/
Dcontrol_data.py219 assert(expr.__class__ == compiler.ast.Const)
225 assert(expr.__class__ == compiler.ast.Dict)
240 assert(expr.__class__ == compiler.ast.List)
251 assert(expr.__class__ == compiler.ast.Name)
257 if expr.__class__ == compiler.ast.Const:
259 if expr.__class__ == compiler.ast.Name:
261 if expr.__class__ == compiler.ast.Dict:
263 if expr.__class__ == compiler.ast.List:
269 assert(n.__class__ == compiler.ast.Assign)
272 assert(n.nodes[0].__class__ == compiler.ast.AssName)
[all …]
/external/opencv3/3rdparty/jinja2/
Dmeta.py33 def find_undeclared_variables(ast): argument
52 codegen = TrackingCodeGenerator(ast.environment)
53 codegen.visit(ast)
57 def find_referenced_templates(ast): argument
72 for node in ast.find_all((nodes.Extends, nodes.FromImport, nodes.Import,
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/
DJavadocUtils.java18 import com.google.currysrc.api.process.ast.AstNodes;
39 AST ast = node.getAST(); in addJavadocTag() local
40 javadoc = (Javadoc) ast.createInstance(Javadoc.class); in addJavadocTag()
47 AST ast = javadoc.getAST(); in addJavadocTag() local
48 TagElement tagElement = AstNodes.createTextTagElement(ast, tagText); in addJavadocTag()
/external/mesa3d/src/glsl/
Dglsl_parser_extras.cpp508 ast_node *ast = exec_node_data(ast_node, n, link); in print() local
509 ast->print(); in print()
591 ast_node *ast = exec_node_data(ast_node, n, link); in print() local
592 ast->print(); in print()
627 ast_node *ast = exec_node_data(ast_node, n, link); in print() local
628 ast->print(); in print()
677 ast_node *ast = exec_node_data(ast_node, n, link); in print() local
678 ast->print(); in print()
756 ast_node *ast = exec_node_data(ast_node, ptr, link); in print() local
757 ast->print(); in print()
[all …]
/external/clang/docs/
DHowToSetupToolingForLLVM.rst108 * ``-ast-print`` --- Build ASTs and then pretty-print them.
109 * ``-ast-dump`` --- Build ASTs and then debug dump them.
110 * ``-ast-dump-filter=<string>`` --- Use with ``-ast-dump`` or ``-ast-print`` to
112 qualified name. Use ``-ast-list`` to list all filterable declaration node
114 * ``-ast-list`` --- Build ASTs and print the list of declaration node qualified
121 …$ clang-check tools/clang/tools/clang-check/ClangCheck.cpp -ast-dump -ast-dump-filter ActionFactor…
129 …$ clang-check tools/clang/tools/clang-check/ClangCheck.cpp -ast-print -ast-dump-filter ActionFacto…
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/runner/
DTestSuiteAdapter.java88 public static ITestCaseOutput createAstOutput(String ast) { in createAstOutput() argument
89 if(ast == null) throw new IllegalArgumentException("null"); in createAstOutput()
90 return new TestCaseOutputAST(ast); in createAstOutput()
/external/clang/test/Index/
DTestClassForwardDecl.m1 // RUN: c-index-test -write-pch %t.ast -arch x86_64 -mmacosx-version-min=10.6 %s
2 // RUN: c-index-test -test-file-scan %t.ast %s | FileCheck -check-prefix=CHECK-scan %s
3 // RUN: c-index-test -test-load-tu %t.ast local | FileCheck -check-prefix=CHECK-load %s
DTestClassDecl.m1 // RUN: c-index-test -write-pch %t.ast -fobjc-nonfragile-abi -fblocks -x objective-c %s
2 // RUN: c-index-test -test-file-scan %t.ast %s | FileCheck -check-prefix=CHECK-scan %s
3 // RUN: c-index-test -test-load-tu %t.ast local | FileCheck -check-prefix=CHECK-load %s
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
DTemplateCompiler.java88 private Template compile(TemplateSyntaxTree ast, String templateName, EscapeMode mode) { in compile() argument
89 CharSequence javaSource = translateAstToJavaSource(ast, mode); in compile()
109 private CharSequence translateAstToJavaSource(TemplateSyntaxTree ast, EscapeMode mode) { in translateAstToJavaSource() argument
113 ast.apply(new TemplateTranslator(PACKAGE_NAME, CLASS_NAME, sourceBuffer, propagateStatus)); in translateAstToJavaSource()

12345678910>>...12