File tree 2 files changed +16
-1
lines changed
runtime/JavaScript/src/antlr4/tree
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { Parser } from "../Parser" ;
2
+ import { ParseTree } from "./ParseTree" ;
3
+ import { Tree } from "./Tree" ;
4
+
5
+ export default Trees ;
6
+ declare namespace Trees {
7
+ function toStringTree ( tree : Tree , ruleNames : string [ ] , recog : Parser ) : string ;
8
+ function getNodeText ( t : Tree , ruleNames : string [ ] , recog : Parser ) : string ;
9
+ function getChildren ( t : Tree ) : Tree [ ] ;
10
+ function getAncestors ( t : Tree ) : Tree [ ] ;
11
+ function findAllTokenNodes ( t : ParseTree , ttype : number ) : ParseTree [ ] ;
12
+ function findAllRuleNodes ( t : ParseTree , ruleIndex : number ) : ParseTree [ ] ;
13
+ function findAllNodes ( t : ParseTree , index : number , findTokens : boolean ) : ParseTree [ ] ;
14
+ function descendants ( t : ParseTree ) : ParseTree [ ] ;
15
+ }
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ export * from './ParseTree';
5
5
export * from './ParseTreeListener' ;
6
6
export * from './ParseTreeVisitor' ;
7
7
export * from './ParseTreeWalker' ;
8
-
8
+ export * as Trees from './Trees' ;
You can’t perform that action at this time.
0 commit comments