Home
last modified time | relevance | path

Searched refs:ITree (Results 1 – 25 of 32) sorted by relevance

12

/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DITreeNodeStreamFixture.cs43 using ITree = Antlr.Runtime.Tree.ITree; typedef
59 ITree t = new CommonTree(new CommonToken(101)); in testSingleNode()
77 ITree t = new CommonTree(new CommonToken(101)); in test4Nodes()
95 ITree root = new CommonTree((IToken)null); in testList()
97 ITree t = new CommonTree(new CommonToken(101)); in testList()
102 ITree u = new CommonTree(new CommonToken(105)); in testList()
120 ITree root = new CommonTree((IToken)null); in testFlatList()
139 ITree root = new CommonTree((IToken)null); in testListWithOneNode()
156 ITree t = new CommonTree(new CommonToken(101)); in testAoverB()
173 ITree t = new CommonTree(new CommonToken(101)); in testLT()
[all …]
DRewriteRuleXxxxStreamFixture.cs260 ITree tree1 = CreateTree(token1); in CheckRRSubtreeStreamBehaviourWithElements()
268 Assert.AreEqual(tree1, (ITree) subtreeTest.NextNode(), in CheckRRSubtreeStreamBehaviourWithElements()
288 ITree tree2 = CreateTree(token2); in CheckRRSubtreeStreamBehaviourWithElements()
314 ITree tree1 = CreateTree(token1); in CheckRRNodeStreamBehaviourWithElements()
343 ITree tree2 = CreateTree(token2); in CheckRRNodeStreamBehaviourWithElements()
373 private ITree CreateTree(IToken token) { in CreateTree()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DBaseTree.cs50 public abstract class BaseTree : ITree
52 private IList<ITree> _children;
64 public BaseTree( ITree node ) in BaseTree()
73 public virtual IList<ITree> Children
86 #region ITree Members
100 public virtual ITree Parent
169 public virtual ITree GetChild( int i ) in GetChild()
180 public virtual ITree GetFirstChildWithType( int type ) in GetFirstChildWithType()
182 foreach ( ITree child in Children ) in GetFirstChildWithType()
199 public virtual void AddChild( ITree t ) in AddChild()
[all …]
DBaseTreeAdaptor.cs84 return ( (ITree)tree ).IsNil; in IsNil()
153 ( (ITree)t ).AddChild( (ITree)child ); in AddChild()
190 ITree newRootTree = (ITree)newRoot; in BecomeRoot()
191 ITree oldRootTree = (ITree)oldRoot; in BecomeRoot()
201 newRootTree = (ITree)newRootTree.GetChild( 0 ); in BecomeRoot()
219 ITree r = (ITree)root; in RulePostProcessing()
228 r = (ITree)r.GetChild( 0 ); in RulePostProcessing()
282 ITree tree = GetTree(t); in GetType()
296 ITree tree = GetTree(t); in GetText()
310 ITree tree = GetTree(t); in GetChild()
[all …]
DITree.cs51 public interface ITree interface
54 ITree GetChild( int i ); in GetChild()
63 ITree Parent
73 ITree GetAncestor( int ttype ); in GetAncestor()
80 IList<ITree> GetAncestors(); in GetAncestors()
97 void AddChild( ITree t ); in AddChild()
100 void SetChild( int i, ITree t ); in SetChild()
145 ITree DupNode(); in DupNode()
DCommonTree.cs149 public override ITree Parent
240 public override ITree DupNode() in DupNode()
261 foreach (ITree childTree in Children) in SetUnknownTokenBoundaries()
275 ITree firstChild = Children[0]; in SetUnknownTokenBoundaries()
276 ITree lastChild = Children[Children.Count - 1]; in SetUnknownTokenBoundaries()
DAntlrRuntime_BaseTreeDebugView.cs47 public ITree[] Children
54 ITree[] children = new ITree[_tree.Children.Count];
DTreeRewriter.cs137 ITree old = oldTree as ITree; in ReportTransformation()
138 ITree @new = newTree as ITree; in ReportTransformation()
DParseTree.cs100 public override ITree DupNode() in DupNode()
DCommonErrorNode.cs88 else if ( start is ITree )
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DBaseTree.cs48 public abstract class BaseTree : ITree {
49 List<ITree> children;
60 public BaseTree(ITree node) { in BaseTree()
68 public virtual IList<ITree> Children {
74 #region ITree Members
86 public virtual ITree Parent {
141 public virtual ITree GetChild(int i) { in GetChild()
151 public virtual ITree GetFirstChildWithType(int type) { in GetFirstChildWithType()
152 foreach (ITree child in children) { in GetFirstChildWithType()
168 public virtual void AddChild(ITree t) { in AddChild()
[all …]
DBaseTreeAdaptor.cs78 return ((ITree)tree).IsNil; in IsNil()
119 ((ITree)t).AddChild((ITree)child); in AddChild()
155 ITree newRootTree = (ITree)newRoot; in BecomeRoot()
156 ITree oldRootTree = (ITree)oldRoot; in BecomeRoot()
164 newRootTree = (ITree)newRootTree.GetChild(0); in BecomeRoot()
180 ITree r = (ITree)root; in RulePostProcessing()
185 r = (ITree)r.GetChild(0); in RulePostProcessing()
202 ITree t = (ITree)Create(fromToken); in Create()
213 ITree t = (ITree)Create(fromToken); in Create()
219 ITree t = (ITree)Create(fromToken); in Create()
[all …]
DCommonTreeAdaptor.cs64 return ((ITree)t).DupNode(); in DupNode()
129 ((ITree)t).TokenStartIndex = start; in SetTokenBoundaries()
130 ((ITree)t).TokenStopIndex = stop; in SetTokenBoundaries()
137 return ((ITree)t).TokenStartIndex; in GetTokenStartIndex()
144 return ((ITree)t).TokenStopIndex; in GetTokenStopIndex()
151 return ((ITree)t).Text; in GetText()
158 return ((ITree)t).Type; in GetType()
178 return ((ITree)t).GetChild(i); in GetChild()
185 return ((ITree)t).ChildCount; in GetChildCount()
192 return ((ITree)t).Parent; in GetParent()
[all …]
DITree.cs50 public interface ITree { interface
52 ITree GetChild(int i); in GetChild()
60 ITree Parent {
69 ITree GetAncestor(int ttype); in GetAncestor()
76 IList<ITree> GetAncestors(); in GetAncestors()
92 void AddChild(ITree t); in AddChild()
95 void SetChild(int i, ITree t); in SetChild()
137 ITree DupNode(); in DupNode()
DCommonTree.cs124 public override ITree Parent {
184 public override ITree DupNode() { in DupNode()
DTreeConstants.cs37 public static readonly ITree INVALID_NODE = new CommonTree( Tokens.Invalid );
DCommonErrorNode.cs77 } else if (start is ITree) {
DParseTree.cs85 public override ITree DupNode() { in DupNode()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DTreeExtensions.cs33 using ITree = Antlr.Runtime.Tree.ITree; typedef
39 public static ITree getNextSibling( this ITree tree ) in getNextSibling()
45 public static void setFirstChild( this ITree tree, ITree child ) in setFirstChild()
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime.Tests/
DAntlr.Runtime.Tree.Tests.pas90 function CreateTree(const Token: IToken): ITree; in CreateTree()
333 R2: ITree;
652 T: ITree;
668 T: ITree;
683 T: ITree;
733 T: ITree;
736 Node: ITree;
748 Node := Stream.LT(1) as ITree;
759 Node := Stream.LT(I) as ITree; // look ahead to ith token
766 Root: ITree;
[all …]
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/
DAntlr.Runtime.Tree.pas438 ITree = interface(IANTLRInterface) interface
442 function GetParent: ITree; in GetParent()
443 procedure SetParent(const Value: ITree); argument
461 function GetChild(const I: Integer): ITree; in GetChild()
468 procedure AddChild(const T: ITree); argument
471 procedure SetChild(const I: Integer; const T: ITree); argument
484 function DupNode: ITree; in DupNode()
495 property Parent: ITree read GetParent write SetParent;
535 IBaseTree = interface(ITree)
541 function GetParent: ITree; in GetParent()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/SlimParsing/Tree/
DITreeFactory.cs37 where TTree : ITree
51 : ITreeFactory<IToken, ITree>
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DRecognitionException.cs316 } else if (this._node is Tree.ITree) { in ExtractInformationFromTreeNodeStream()
317 this._line = ((Tree.ITree)this._node).Line; in ExtractInformationFromTreeNodeStream()
318 this._charPositionInLine = ((Tree.ITree)this._node).CharPositionInLine; in ExtractInformationFromTreeNodeStream()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DRecognitionException.cs386 else if (this._node is Tree.ITree) in ExtractInformationFromTreeNodeStream()
388 this._line = ((Tree.ITree)this._node).Line; in ExtractInformationFromTreeNodeStream()
389 this._charPositionInLine = ((Tree.ITree)this._node).CharPositionInLine; in ExtractInformationFromTreeNodeStream()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DRemoteDebugEventSocketListener.cs42 using ITree = Antlr.Runtime.Tree.ITree; typedef
279 public override ITree DupNode() in DupNode()

12