• Home
  • Raw
  • Download

Lines Matching refs:CommonTree

27 #import "CommonTree.h"
30 @implementation CommonTree implementation
32 + (CommonTree *)INVALID_NODE
34 return [[CommonTree alloc] initWithToken:[CommonToken invalidToken]];
37 + (CommonTree *)invalidNode
39 // Had to cast to CommonTree * here, because GCC is dumb.
40 return [[CommonTree alloc] initWithToken:CommonToken.INVALID_TOKEN];
43 + (CommonTree *)newTree
45 return [[CommonTree alloc] init];
48 + (CommonTree *)newTreeWithTree:(CommonTree *)aTree
50 return [[CommonTree alloc] initWithTreeNode:aTree];
53 + (CommonTree *)newTreeWithToken:(id<Token>)aToken
55 return [[CommonTree alloc] initWithToken:aToken];
58 + (CommonTree *)newTreeWithTokenType:(NSInteger)aTType
60 return [[CommonTree alloc] initWithTokenType:(NSInteger)aTType];
63 + (CommonTree *)newTreeWithTokenType:(NSInteger)aTType Text:(NSString *)theText
65 return [[CommonTree alloc] initWithTokenType:(NSInteger)aTType Text:theText];
70 self = (CommonTree *)[super init];
78 return (CommonTree *)self;
81 - (id)initWithTreeNode:(CommonTree *)aNode
83 self = (CommonTree *)[super init];
97 self = (CommonTree *)[super init];
111 self = (CommonTree *)[super init];
126 self = (CommonTree *)[super init];
154 CommonTree *copy;
162 copy.parent = (CommonTree *)[self.parent copyWithZone:aZone];
186 - (CommonTree *) dupNode
188 return [CommonTree newTreeWithTree:self ];
293 CommonTree *firstChild = (CommonTree *)[children objectAtIndex:0];
294 CommonTree *lastChild = (CommonTree *)[children objectAtIndex:[children count]-1];
305 - (CommonTree *) getParent
310 - (void) setParent:(CommonTree *) t