/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/ |
D | ITreeNodeStreamFixture.cs | 43 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 …]
|
D | RewriteRuleXxxxStreamFixture.cs | 260 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/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
D | BaseTree.cs | 50 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 …]
|
D | BaseTreeAdaptor.cs | 84 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 …]
|
D | ITree.cs | 51 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()
|
D | CommonTree.cs | 149 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()
|
D | AntlrRuntime_BaseTreeDebugView.cs | 47 public ITree[] Children 54 ITree[] children = new ITree[_tree.Children.Count];
|
D | TreeRewriter.cs | 137 ITree old = oldTree as ITree; in ReportTransformation() 138 ITree @new = newTree as ITree; in ReportTransformation()
|
D | CommonErrorNode.cs | 88 else if ( start is ITree )
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
D | BaseTree.cs | 48 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 …]
|
D | BaseTreeAdaptor.cs | 78 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 …]
|
D | CommonTreeAdaptor.cs | 64 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 …]
|
D | ITree.cs | 50 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()
|
D | CommonTree.cs | 124 public override ITree Parent { 184 public override ITree DupNode() { in DupNode()
|
D | TreeConstants.cs | 37 public static readonly ITree INVALID_NODE = new CommonTree( Tokens.Invalid );
|
D | CommonErrorNode.cs | 77 } else if (start is ITree) {
|
D | ParseTree.cs | 85 public override ITree DupNode() { in DupNode()
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
D | TreeExtensions.cs | 33 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/runtime/Delphi/Sources/Antlr3.Runtime.Tests/ |
D | Antlr.Runtime.Tree.Tests.pas | 90 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/runtime/Delphi/Sources/Antlr3.Runtime/ |
D | Antlr.Runtime.Tree.pas | 438 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); 471 procedure SetChild(const I: Integer; const T: ITree); 484 function DupNode: ITree; 495 property Parent: ITree read GetParent write SetParent; 535 IBaseTree = interface(ITree) 541 function GetParent: ITree; in GetParent() [all …]
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Test/SlimParsing/Tree/ |
D | ITreeFactory.cs | 37 where TTree : ITree 51 : ITreeFactory<IToken, ITree>
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
D | RecognitionException.cs | 316 } 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/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | RecognitionException.cs | 440 else if (this._node is Tree.ITree) in ExtractInformationFromTreeNodeStream() 442 this._line = ((Tree.ITree)this._node).Line; in ExtractInformationFromTreeNodeStream() 443 this._charPositionInLine = ((Tree.ITree)this._node).CharPositionInLine; in ExtractInformationFromTreeNodeStream()
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
D | RemoteDebugEventSocketListener.cs | 41 using ITree = Antlr.Runtime.Tree.ITree; typedef 229 public override ITree DupNode() { in DupNode()
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
D | RemoteDebugEventSocketListener.cs | 42 using ITree = Antlr.Runtime.Tree.ITree; typedef 279 public override ITree DupNode() in DupNode()
|