/external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/parse/ |
parser_unittest.py | 24 import mojom.parse.ast as ast 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.Module(('IDENTIFIER', 'my_module'), None) [all...] |
translate_unittest.py | 24 from mojom.parse import ast 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.Method('dup', None, None, ast.ParameterList(), None) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_ast.py | 3 import ast
130 if not isinstance(ast_node, ast.AST) or ast_node._fields is None:
132 if isinstance(ast_node, (ast.expr, ast.stmt, ast.excepthandler)):
149 ast_tree = compile(i, "?", kind, ast.PyCF_ONLY_AST)
154 slc = ast.parse("x[::]").body[0].value.slice
157 self.assertIsInstance(slc.step, ast.Name)
161 im = ast.parse("from . import y").body[0] [all...] |
/system/tools/hidl/c2hal/ |
Define.cpp | 19 #include "AST.h" 21 extern android::status_t parseExpression(android::AST *ast, std::string str); 47 void Define::processContents(AST &ast) { 48 status_t res = parseExpression(&ast, mSlurp); 55 mExpression = ast.getExpression(); 56 ast.setExpression(NULL); 58 mExpressionType = mExpression->getType(ast); 60 ast.getDefinesScope().enter(getName(), this) [all...] |
TypeDef.cpp | 37 void TypeDef::processContents(AST &ast) { 38 mDeclaration->processContents(ast);
|
/external/python/cpython2/Lib/test/ |
test_ast.py | 3 import ast 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)): 198 x = ast.AST() 208 ast.AST(lineno=2 [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_ast.py | 3 import ast 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)): 198 x = ast.AST() 208 ast.AST(lineno=2 [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_ast.py | 3 import ast 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)): 198 x = ast.AST() 208 ast.AST(lineno=2 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_ast.py | 3 import ast 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)): 198 x = ast.AST() 208 ast.AST(lineno=2 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_ast.py | 3 import ast 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)): 198 x = ast.AST() 208 ast.AST(lineno=2 [all...] |
/prebuilts/go/darwin-x86/src/go/types/ |
return.go | 10 "go/ast" 17 func (check *Checker) isTerminating(s ast.Stmt, label string) bool { 22 case *ast.BadStmt, *ast.DeclStmt, *ast.EmptyStmt, *ast.SendStmt, 23 *ast.IncDecStmt, *ast.AssignStmt, *ast.GoStmt, *ast.DeferStmt [all...] |
/prebuilts/go/linux-x86/src/go/types/ |
return.go | 10 "go/ast" 17 func (check *Checker) isTerminating(s ast.Stmt, label string) bool { 22 case *ast.BadStmt, *ast.DeclStmt, *ast.EmptyStmt, *ast.SendStmt, 23 *ast.IncDecStmt, *ast.AssignStmt, *ast.GoStmt, *ast.DeferStmt [all...] |
/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/ |
ReplaceIcuTags.java | 19 import com.google.currysrc.api.process.ast.AstNodes; 22 import org.eclipse.jdt.core.dom.AST; 38 AST ast = tag.getAST(); local 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 */); 67 rewrite.replace(tag, createDiscouragedText(ast, fragments), null /* editGroup */); 79 private static TagElement createIcuEnhancementText(AST ast, IDocElement fragment) [all...] |
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/ |
AstNodes.java | 16 package com.google.currysrc.api.process.ast; 18 import org.eclipse.jdt.core.dom.AST; 29 public static TagElement createTextTagElement(AST ast, String text) { 30 TagElement element = (TagElement) ast.createInstance(TagElement.class); 31 TextElement textElement = createTextElement(ast, text); 36 public static TextElement createTextElement(AST ast, String text) { 37 TextElement textElement = ast.newTextElement();
|
/build/kati/ |
ast.go | 23 type ast interface { type 36 func (ast *assignAST) eval(ev *Evaluator) error { 37 return ev.evalAssign(ast) 40 func (ast *assignAST) evalRHS(ev *Evaluator, lhs string) (Var, error) { 42 if ast.filename == bootstrapMakefileName { 45 if ast.opt == "override" { 48 // TODO(ukai): handle ast.opt == "export" 49 switch ast.op { 51 switch v := ast.rhs.(type) { 66 return &recursiveVar{expr: ast.rhs, origin: origin}, ni [all...] |
/prebuilts/tools/common/m2/repository/org/pegdown/pegdown/1.1.0/ |
pegdown-1.1.0.jar | |
/prebuilts/tools/common/m2/repository/me/tatarka/retrolambda/projectlombok/lombok.ast/0.2.3.a2/ |
lombok.ast-0.2.3.a2.jar | |
/prebuilts/go/darwin-x86/src/cmd/fix/ |
netipv6zone.go | 7 import "go/ast" 23 func netipv6zone(f *ast.File) bool { 30 cl, ok := n.(*ast.CompositeLit) 34 se, ok := cl.Type.(*ast.SelectorExpr) 44 if _, ok := e.(*ast.KeyValueExpr); ok { 49 cl.Elts[i] = &ast.KeyValueExpr{ 50 Key: ast.NewIdent("IP"), 54 if elit, ok := e.(*ast.BasicLit); ok && elit.Value == "0" { 57 cl.Elts[i] = &ast.KeyValueExpr{ 58 Key: ast.NewIdent("Port") [all...] |
fix.go | 9 "go/ast" 22 f func(*ast.File) bool 47 // walk traverses the AST x, calling visit(y) for each node y in the tree but 48 // also with a pointer to each ast.Expr, ast.Stmt, and *ast.BlockStmt, 68 case *ast.Decl: 70 case *ast.Expr: 72 case *ast.Spec: 74 case *ast.Stmt [all...] |
/prebuilts/go/linux-x86/src/cmd/fix/ |
netipv6zone.go | 7 import "go/ast" 23 func netipv6zone(f *ast.File) bool { 30 cl, ok := n.(*ast.CompositeLit) 34 se, ok := cl.Type.(*ast.SelectorExpr) 44 if _, ok := e.(*ast.KeyValueExpr); ok { 49 cl.Elts[i] = &ast.KeyValueExpr{ 50 Key: ast.NewIdent("IP"), 54 if elit, ok := e.(*ast.BasicLit); ok && elit.Value == "0" { 57 cl.Elts[i] = &ast.KeyValueExpr{ 58 Key: ast.NewIdent("Port") [all...] |
fix.go | 9 "go/ast" 22 f func(*ast.File) bool 47 // walk traverses the AST x, calling visit(y) for each node y in the tree but 48 // also with a pointer to each ast.Expr, ast.Stmt, and *ast.BlockStmt, 68 case *ast.Decl: 70 case *ast.Expr: 72 case *ast.Spec: 74 case *ast.Stmt [all...] |
/prebuilts/tools/common/lombok-ast/ |
lombok-ast-0.2.1.jar | |
lombok-ast-0.2.jar | |
/prebuilts/tools/common/m2/repository/com/android/tools/external/lombok/lombok-ast/0.2.1/ |
lombok-ast-0.2.1.jar | |
/prebuilts/go/darwin-x86/src/cmd/vet/ |
deadcode.go | 10 "go/ast" 23 hasBreak map[ast.Stmt]bool 25 labels map[string]ast.Stmt 26 breakTarget ast.Stmt 34 func checkUnreachable(f *File, node ast.Node) { 35 var body *ast.BlockStmt 37 case *ast.FuncDecl: 39 case *ast.FuncLit: 48 hasBreak: make(map[ast.Stmt]bool), 50 labels: make(map[string]ast.Stmt) [all...] |