Home
last modified time | relevance | path

Searched refs:Tree (Results 1 – 25 of 442) sorted by relevance

12345678910>>...18

/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestTreeNodeStream.java48 Tree t = new CommonTree(new CommonToken(101)); in testSingleNode()
62 Tree t = new CommonTree(new CommonToken(101)); in test4Nodes()
78 Tree root = new CommonTree((Token)null); in testList()
80 Tree t = new CommonTree(new CommonToken(101)); in testList()
85 Tree u = new CommonTree(new CommonToken(105)); in testList()
101 Tree root = new CommonTree((Token)null); in testFlatList()
118 Tree root = new CommonTree((Token)null); in testListWithOneNode()
133 Tree t = new CommonTree(new CommonToken(101)); in testAoverB()
148 Tree t = new CommonTree(new CommonToken(101)); in testLT()
154 assertEquals(101, ((Tree)stream.LT(1)).getType()); in testLT()
[all …]
DTestBufferedTreeNodeStream.java33 import org.antlr.runtime.tree.Tree;
52 Tree r0 = new CommonTree(new CommonToken(101)); in testSeek()
53 Tree r1 = new CommonTree(new CommonToken(102)); in testSeek()
56 Tree r2 = new CommonTree(new CommonToken(106)); in testSeek()
67 assertEquals(107, ((Tree)stream.LT(1)).getType()); in testSeek()
71 assertEquals(104, ((Tree)stream.LT(1)).getType()); in testSeek()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
DBaseTreeAdaptor.java70 return ((Tree)tree).isNil(); in isNil()
107 ((Tree)t).addChild((Tree)child); in addChild()
139 Tree newRootTree = (Tree)newRoot; in becomeRoot()
140 Tree oldRootTree = (Tree)oldRoot; in becomeRoot()
147 if ( nc==1 ) newRootTree = (Tree)newRootTree.getChild(0); in becomeRoot()
163 Tree r = (Tree)root; in rulePostProcessing()
169 r = (Tree)r.getChild(0); in rulePostProcessing()
186 Tree t = (Tree)create(fromToken); in create()
195 Tree t = (Tree)create(fromToken); in create()
201 Tree t = (Tree)create(fromToken); in create()
[all …]
DCommonTreeAdaptor.java52 return ((Tree)t).dupNode(); in dupNode()
100 ((Tree)t).setTokenStartIndex(start); in setTokenBoundaries()
101 ((Tree)t).setTokenStopIndex(stop); in setTokenBoundaries()
106 return ((Tree)t).getTokenStartIndex(); in getTokenStartIndex()
111 return ((Tree)t).getTokenStopIndex(); in getTokenStopIndex()
116 return ((Tree)t).getText(); in getText()
121 return ((Tree)t).getType(); in getType()
137 return ((Tree)t).getChild(i); in getChild()
142 return ((Tree)t).getChildCount(); in getChildCount()
147 return ((Tree)t).getParent(); in getParent()
[all …]
DBaseTree.java39 public abstract class BaseTree implements Tree {
49 public BaseTree(Tree node) { in BaseTree()
52 public Tree getChild(int i) { in getChild()
56 return (Tree)children.get(i); in getChild()
66 public Tree getFirstChildWithType(int type) { in getFirstChildWithType()
68 Tree t = (Tree) children.get(i); in getFirstChildWithType()
89 public void addChild(Tree t) { in addChild()
105 Tree c = (Tree)childTree.children.get(i); in addChild()
134 Tree t = (Tree) kids.get(i); in addChildren()
139 public void setChild(int i, Tree t) { in setChild()
[all …]
DTree.java44 public interface Tree { interface
45 public static final Tree INVALID_NODE = new CommonTree(Token.INVALID_TOKEN);
47 Tree getChild(int i); in getChild()
53 public Tree getParent(); in getParent()
55 public void setParent(Tree t); in setParent()
61 public Tree getAncestor(int ttype); in getAncestor()
79 void addChild(Tree t); in addChild()
82 public void setChild(int i, Tree t); in setChild()
112 Tree dupNode(); in dupNode()
/external/clang/lib/AST/
DASTDiagnostic.cpp720 DiffTree Tree; member in __anon910c3b370111::TemplateDiff
872 Tree.AddNode(); in DiffTemplate()
889 Tree.SetNode(FromType, ToType); in DiffTemplate()
890 Tree.SetDefault(FromIter.isEnd() && !FromType.isNull(), in DiffTemplate()
892 Tree.SetKind(DiffTree::Type); in DiffTemplate()
895 Tree.SetSame(true); in DiffTemplate()
908 Tree.SetNode(FromArgTST->getTemplateName().getAsTemplateDecl(), in DiffTemplate()
910 Tree.SetNode(FromQual, ToQual); in DiffTemplate()
911 Tree.SetKind(DiffTree::Template); in DiffTemplate()
957 Tree.SetNode(FromExpr, ToExpr); in DiffTemplate()
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DGrammarAST.java39 import org.antlr.runtime.tree.Tree;
160 public void initialize(Tree ast) { in initialize()
290 Tree child = getChild(0); in getLine()
305 Tree child = getChild(0); in getCharPositionInLine()
340 Tree parent = getParent(); in getLastSibling()
355 public static List<Tree> descendants(Tree root){ in descendants()
359 public static List<Tree> descendants(Tree root, boolean insertDownUpNodes){ in descendants()
360 List<Tree> result = new ArrayList<Tree>(); in descendants()
368 Tree child = root.getChild(i); in descendants()
369 for (Tree subchild : descendants(child, true)) in descendants()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/
DAPI CHANGES.TXT11 Antlr.Runtime.Tree.Tree renamed to Antlr.Runtime.Tree.TreeConstants
36 Antlr.Runtime.Tree.RewriteRuleElementStream is no longer generic (this causes appropriate changes t…
37 Antlr.Runtime.Tree.RewriteRuleElementStream.HasNext has been turned into a property
38 Antlr.Runtime.Tree.RewriteRuleElementStream._Next() has been merged with NextTree()
39 Antlr.Runtime.Tree.RewriteRuleElementStream.Dup() has been added
41 Antlr.Runtime.Tree.RewriteRuleTokenStream.Dup() has been added
43 Antlr.Runtime.Tree.RewriteRuleTokenStream.Dup() has been added
47 Antlr.Runtime.Tree.ITreeAdaptor.GetNilNode has been turned into property Nil (implementing classes …
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/
DCommonTreeAdaptor.as6 /** A TreeAdaptor that works with any Tree implementation. It provides
27 return (Tree(t)).dupNode();
65 * Only works with Tree nodes. For rules that match nothing,
81 Tree(t).tokenStartIndex = start;
82 Tree(t).tokenStopIndex = stop;
89 return Tree(t).tokenStartIndex;
96 return Tree(t).tokenStopIndex;
103 return Tree(t).text;
110 return Tree(t).type;;
128 return Tree(t).getChild(i);
[all …]
DBaseTreeAdaptor.as9 /** A TreeAdaptor that works with any Tree implementation. */
41 return Tree(tree).isNil;
49 * tree (not just Tree interface). It invokes the adaptor routines
78 Tree(t).addChild(Tree(child));
109 // If new Root is token, then create a Tree.
114 var newRootTree:Tree = Tree(newRoot);
115 var oldRootTree:Tree = Tree(oldRoot);
122 if ( nc==1 ) newRootTree = Tree(newRootTree.getChild(0));
137 var r:Tree = Tree(root);
143 r = Tree(r.getChild(0));
[all …]
DBaseTree.as35 public class BaseTree implements Tree {
42 public function BaseTree(node:Tree = null) {
45 public function getChild(i:int):Tree {
59 public function getFirstChildWithType(type:int):Tree {
61 var t:Tree = Tree(_children[i]);
82 public function addChild(t:Tree):void {
96 var c:Tree = Tree(childTree._children[i]);
124 var t:Tree = Tree(kids[i]);
129 public function setChild(i:int, t:Tree):void {
226 var child:Tree = Tree(getChild(c));
[all …]
DTree.as12 public interface Tree { interface in org.antlr.runtime.tree
14 function getChild(i:int):Tree;
18 // Tree tracks parent and child index now > 3.0
20 function get parent():Tree;
22 function set parent(t:Tree):void;
28 function getAncestor(ttype:int):Tree;
47 function addChild(t:Tree):void;
50 function setChild(i:int, t:Tree):void;
80 function dupNode():Tree;
/external/skia/tests/
DGrRedBlackTreeTest.cpp15 typedef GrRedBlackTree<int> Tree; typedef
18 Tree tree; in DEF_TEST()
26 Tree::Iter xi = tree.insert(x); in DEF_TEST()
44 for (Tree::Iter a = tree.begin(); tree.end() != a; ++a) { in DEF_TEST()
45 Tree::Iter b = a; in DEF_TEST()
60 Tree::Iter iter = tree.findFirst(i); in DEF_TEST()
90 Tree::Iter iter; in DEF_TEST()
138 for (Tree::Iter a = tree.begin(); tree.end() != a; ++a) { in DEF_TEST()
139 Tree::Iter b = a; in DEF_TEST()
151 Tree::Iter iter = tree.findFirst(i); in DEF_TEST()
/external/chromium_org/third_party/skia/tests/
DGrRedBlackTreeTest.cpp15 typedef GrRedBlackTree<int> Tree; typedef
18 Tree tree; in DEF_TEST()
26 Tree::Iter xi = tree.insert(x); in DEF_TEST()
44 for (Tree::Iter a = tree.begin(); tree.end() != a; ++a) { in DEF_TEST()
45 Tree::Iter b = a; in DEF_TEST()
60 Tree::Iter iter = tree.findFirst(i); in DEF_TEST()
90 Tree::Iter iter; in DEF_TEST()
138 for (Tree::Iter a = tree.begin(); tree.end() != a; ++a) { in DEF_TEST()
139 Tree::Iter b = a; in DEF_TEST()
151 Tree::Iter iter = tree.findFirst(i); in DEF_TEST()
/external/clang/utils/TableGen/
DClangASTNodesEmitter.cpp53 std::pair<Record *, Record *> EmitNode (const ChildMap &Tree, raw_ostream& OS,
73 const ChildMap &Tree, in EmitNode() argument
78 ChildIterator i = Tree.lower_bound(Base), e = Tree.upper_bound(Base); in EmitNode()
103 if (Tree.find(R) != Tree.end()) { in EmitNode()
105 = EmitNode(Tree, OS, R); in EmitNode()
158 ChildMap Tree; in run() local
164 Tree.insert(std::make_pair(R->getValueAsDef("Base"), R)); in run()
166 Tree.insert(std::make_pair(&Root, R)); in run()
169 EmitNode(Tree, OS, &Root); in run()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DAstTreeRuleReturnScope`2.cs33 namespace Antlr.Runtime.Tree
39 public TOutputTree Tree property in Antlr.Runtime.Tree.AstTreeRuleReturnScope
52 object IAstRuleReturnScope.Tree
56 return Tree;
DTreeRewriter.cs33 namespace Antlr.Runtime.Tree
79 if (showTransformations && r != null && !t.Equals(r.Tree) && r.Tree != null) in ApplyOnce()
80 ReportTransformation(t, r.Tree); in ApplyOnce()
82 if ( r != null && r.Tree != null ) in ApplyOnce()
83 return r.Tree; in ApplyOnce()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DTreeRewriter.cs33 namespace Antlr.Runtime.Tree {
70 if (r != null && !t.Equals(r.Tree) && r.Tree != null) { in ApplyOnce()
73 ((CommonTree)(object)r.Tree).ToStringTree()); in ApplyOnce()
77 if (r != null && r.Tree != null) in ApplyOnce()
78 return r.Tree; in ApplyOnce()
/external/chromium_org/chrome/browser/resources/options/
Dcertificate_tree.js17 /** @const */ var Tree = cr.ui.Tree;
111 __proto__: Tree.prototype,
115 Tree.prototype.decorate.call(this); class
121 Tree.prototype.addAt.call(this, child, index);
128 Tree.prototype.remove.call(this, child);
/external/antlr/antlr-3.4/runtime/C/doxygen/
Ddoxygengroups.dox117 /// \defgroup ANTLR3_BASE_TREE ANTLR3_BASE_TREE - Base Tree Class Definition
119 /// \defgroup ANTLR3_COMMON_TREE ANTLR3_COMMON_TREE - Common Tree Class Definition
121 /// \defgroup ANTLR3_ARBORETUM ANTLR3_ARBORETUM - Tree Factory Class Definition
123 /// \defgroup ANTLR3_PARSE_TREE ANTLR3_PARSE_TREE - Parse Tree Class Definition
125 /// \defgroup ANTLR3_TREE_NODE_STREAM ANTLR3_TREE_NODE_STREAM - Tree Node Class Definition
127 …/// \defgroup ANTLR3_COMMON_TREE_NODE_STREAM ANTLR3_COMMON_TREE_NODE_STREAM - Common Tree Node Cla…
129 /// \defgroup ANTLR3_TREE_WALK_STATE ANTLR3_TREE_WALK_STATE - Tree Walk State Class Definition
131 /// \defgroup ANTLR3_BASE_TREE_ADAPTOR ANTLR3_BASE_TREE_ADAPTOR - Base Tree Class Definition
133 …/// \defgroup ANTLR3_COMMON_TREE_ADAPTOR ANTLR3_COMMON_TREE_ADAPTOR - Common Tree Adaptor Class De…
135 /// \defgroup ANTLR3_TREE_PARSER ANTLR3_TREE_PARSER - Tree Parser Class Definition
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DAstParserRuleReturnScope`2.cs39 public TTree Tree property in Antlr.Runtime.AstParserRuleReturnScope
52 object IAstRuleReturnScope.Tree
56 return Tree;
/external/antlr/antlr-3.4/runtime/ObjC/Framework/test/runtime/tree/
DANTLRCommonTreeTest.m22 STAssertNotNil(tree, @"Tree was nil");
30 STAssertNotNil(tree, @"Tree was nil");
32 …STAssertEquals([tree getType], (NSInteger)ANTLRTokenTypeInvalid, @"Tree should have an invalid tok…
44 STAssertNotNil(tree, @"Tree was nil");
46 STAssertNotNil(tree.token, @"Tree with token was nil");
48 …(NSUInteger) tree.token.line, (NSUInteger)1, [NSString stringWithFormat:@"Tree should be at line 1…
50 STAssertNotNil(((ANTLRCommonToken *)tree.token).text, @"Tree with token with text was nil");
61 STAssertNotNil(tree, @"Tree was nil");
62 …STAssertEquals(tree.token.type, (NSInteger)ANTLRTokenTypeInvalid, @"Tree Token type was not ANTLRT…
72 STAssertNotNil(tree, @"Tree was nil");
[all …]
/external/chromium_org/content/test/data/accessibility/
Daria-level-expected-mac.txt8 AXStaticText AXValue='Tree item at level 1'
10 AXStaticText AXValue='Tree item at level 2'
12 AXStaticText AXValue='Tree item at level 3'
Daria-level-expected-win.txt8 ROLE_SYSTEM_STATICTEXT name='Tree item at level 1'
10 ROLE_SYSTEM_STATICTEXT name='Tree item at level 2'
12 ROLE_SYSTEM_STATICTEXT name='Tree item at level 3'

12345678910>>...18