Searched refs:ast (Results 1 - 25 of 165) sorted by relevance

1234567

/external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/parse/
H A Dparser_unittest.py24 import mojom.parse.ast as ast namespace
40 expected = ast.Mojom(
41 ast.Module(('IDENTIFIER', 'my_module'), None),
42 ast.ImportList(),
50 expected = ast.Mojom(
51 ast.Module(('IDENTIFIER', 'my_module'), None),
52 ast.ImportList(),
142 expected = ast.Mojom(
143 ast
[all...]
H A Dtranslate_unittest.py24 from mojom.parse import ast namespace
49 tree = ast.Mojom(
51 ast.ImportList(),
52 [ast.Union("SomeUnion", None, ast.UnionBody(
53 [ast.UnionField("a", None, None, "int32"),
54 ast.UnionField("b", None, None, "string")]))])
65 methods = [ast.Method('dup', None, None, ast.ParameterList(), None),
66 ast
[all...]
/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/
H A DReplaceIcuTags.java19 import com.google.currysrc.api.process.ast.AstNodes;
38 AST ast = tag.getAST();
45 rewrite.replace(tag, createIcuMarker(ast), null /* editGroup */);
49 rewrite.replace(tag, createIcuUsageText(ast), null /* editGroup */);
59 rewrite.replace(tag, createIcuEnhancementText(ast, element), null /* editGroup */);
63 rewrite.replace(tag, createIcuNoteText(ast), null /* editGroup */);
68 rewrite.replace(tag, createDiscouragedText(ast, element), null /* editGroup */);
80 private static TagElement createIcuEnhancementText(AST ast, IDocElement fragment) { argument
81 return AstNodes.createTextTagElement(ast,
86 private static TagElement createIcuUsageText(AST ast) { argument
93 createIcuNoteText(AST ast) argument
97 createIcuMarker(AST ast) argument
101 createDiscouragedText(AST ast, IDocElement fragment) argument
[all...]
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/
H A DAstNodes.java16 package com.google.currysrc.api.process.ast;
29 public static TagElement createTextTagElement(AST ast, String text) { argument
30 TagElement element = (TagElement) ast.createInstance(TagElement.class);
31 TextElement textElement = createTextElement(ast, text);
36 public static TextElement createTextElement(AST ast, String text) { argument
37 TextElement textElement = ast.newTextElement();
H A DBodyDeclarationLocator.java16 package com.google.currysrc.api.process.ast;
H A DStartPositionComparator.java16 package com.google.currysrc.api.process.ast;
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/
H A Dconstruction.rb376 expected_tree = opts[ :ast ]
394 ast_test :input => "1 + 2", :rule => :r1, :ast => "(+ 1 2)"
396 ast_test :input => "assert 2+3", :rule => :r2, :ast => "(assert (+ 2 3))"
398 ast_test :input => "assert 2+3 : 5", :rule => :r2, :ast => "(assert (+ 2 3) 5)"
400 ast_test :input => "if 1 fooze", :rule => :r3, :ast => "(if 1 fooze)"
402 ast_test :input => "if 1 fooze else fooze", :rule => :r3, :ast => "(if 1 fooze fooze)"
404 ast_test :input => "while 2 fooze", :rule => :r4, :ast => "(while 2 fooze)"
406 ast_test :input => "return;", :rule => :r5, :ast => "return"
408 ast_test :input => "return 2+3;", :rule => :r5, :ast => "(return (+ 2 3))"
410 ast_test :input => "3", :rule => :r6, :ast
[all...]
/external/javassist/src/main/javassist/compiler/ast/
H A DArrayInit.java16 package javassist.compiler.ast;
H A DKeyword.java16 package javassist.compiler.ast;
H A DMember.java16 package javassist.compiler.ast;
H A DStringL.java16 package javassist.compiler.ast;
H A DSymbol.java16 package javassist.compiler.ast;
H A DVariable.java16 package javassist.compiler.ast;
H A DAssignExpr.java16 package javassist.compiler.ast;
H A DBinExpr.java16 package javassist.compiler.ast;
/external/selinux/libsepol/cil/test/unit/
H A Dtest_cil_fqn.c55 cil_build_ast(test_db, tree->root, test_db->ast->root);
57 int rc = cil_fqn_qualify(test_db->ast->root);
71 cil_build_ast(test_db, tree->root, test_db->ast->root);
73 int rc = cil_fqn_qualify(test_db->ast->root);
H A Dtest_cil_resolve_ast.c80 cil_build_ast(test_db, test_tree->root, test_db->ast->root);
82 struct cil_tree_node *test_curr = test_db->ast->root->cl_head->cl_head;
104 cil_build_ast(test_db, test_tree->root, test_db->ast->root);
106 struct cil_tree_node *test_curr = test_db->ast->root->cl_head->cl_head;
118 test_db->ast->root = NULL;
120 int rc = cil_resolve_ast(test_db, test_db->ast->root);
143 cil_build_ast(test_db, test_tree->root, test_db->ast->root);
145 int rc = cil_resolve_roleallow(test_db->ast->root->cl_head->next->next, args);
162 int rc1=cil_build_ast(test_db, test_tree->root, test_db->ast->root);
165 int rc = cil_resolve_roleallow(test_db->ast
[all...]
/external/libmojo/mojo/public/tools/bindings/pylib/mojom/parse/
H A Dtranslate.py9 from . import ast namespace
86 assert isinstance(attribute_list, ast.AttributeList)
93 assert isinstance(enum_value, ast.EnumValue)
100 assert isinstance(enum, ast.Enum)
109 assert isinstance(const, ast.Const)
122 assert isinstance(struct_field, ast.StructField)
133 assert isinstance(struct, ast.Struct)
139 ast.StructField, struct.name),
140 'enums': _MapTreeForType(_EnumToDict, struct.body, ast.Enum,
143 ast
[all...]
H A Dparser.py29 from . import ast namespace
75 p[0] = ast.Mojom(None, ast.ImportList(), [])
109 p[0] = ast.Import(eval(p[2]), filename=self.filename, lineno=p.lineno(2))
113 p[0] = ast.Module(p[3], p[1], filename=self.filename, lineno=p.lineno(2))
133 p[0] = ast.AttributeList()
141 p[0] = ast.AttributeList(p[1])
151 p[0] = ast.Attribute(p[1], p[3], filename=self.filename, lineno=p.lineno(1))
155 p[0] = ast.Attribute(p[1], True, filename=self.filename, lineno=p.lineno(1))
171 p[0] = ast
[all...]
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/
H A DJavadocUtils.java18 import com.google.currysrc.api.process.ast.AstNodes;
39 AST ast = node.getAST();
40 javadoc = (Javadoc) ast.createInstance(Javadoc.class);
47 AST ast = javadoc.getAST();
48 TagElement tagElement = AstNodes.createTextTagElement(ast, tagText);
/external/libmojo/third_party/jinja2/
H A Dmeta.py33 def find_undeclared_variables(ast):
41 >>> ast = env.parse('{% set foo = 42 %}{{ bar + foo }}')
42 >>> meta.find_undeclared_variables(ast)
52 codegen = TrackingCodeGenerator(ast.environment)
53 codegen.visit(ast)
57 def find_referenced_templates(ast):
65 >>> ast = env.parse('{% extends "layout.html" %}{% include helper %}')
66 >>> list(meta.find_referenced_templates(ast))
72 for node in ast.find_all((nodes.Extends, nodes.FromImport, nodes.Import,
/external/javassist/src/main/javassist/compiler/
H A DNoFieldException.java18 import javassist.compiler.ast.ASTree;
H A DProceedHandler.java19 import javassist.compiler.ast.ASTList;
/external/google-breakpad/src/testing/scripts/generator/cpp/
H A Dgmock_class.py36 from cpp import ast namespace
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/libmojo/mojo/public/tools/bindings/generators/
H A Drun_cpp_generator.py6 import ast namespace
19 dict = ast.literal_eval(s)

Completed in 461 milliseconds

1234567