v4: Update BaseTest harness for changes to the runtime

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9382]
This commit is contained in:
sharwell 2011-11-17 19:46:29 -08:00
parent ff97c91ef2
commit 3e279fbd3e
1 changed files with 5 additions and 5 deletions

View File

@ -1015,14 +1015,14 @@ public abstract class BaseTest {
" <lexerName> lex = new <lexerName>(input);\n" + " <lexerName> lex = new <lexerName>(input);\n" +
" TokenRewriteStream tokens = new TokenRewriteStream(lex);\n" + " TokenRewriteStream tokens = new TokenRewriteStream(lex);\n" +
" <createParser>\n"+ " <createParser>\n"+
" ParserRuleContext r = parser.<parserStartRuleName>();\n" + " ASTContext\\<? extends CommonAST> r = parser.<parserStartRuleName>();\n" +
" <if(!treeParserStartRuleName)>\n" + " <if(!treeParserStartRuleName)>\n" +
" if ( r.tree!=null ) {\n" + " if ( r.getTree()!=null ) {\n" +
" System.out.println(((Tree)r.tree).toStringTree());\n" + " System.out.println(((Tree)r.getTree()).toStringTree());\n" +
" Trees.sanityCheckParentAndChildIndexes((CommonAST)r.tree);\n" + " Trees.sanityCheckParentAndChildIndexes((CommonAST)r.getTree());\n" +
" }\n" + " }\n" +
" <else>\n" + " <else>\n" +
" CommonASTNodeStream nodes = new CommonASTNodeStream((Tree)r.tree);\n" + " CommonASTNodeStream nodes = new CommonASTNodeStream((Tree)r.getTree());\n" +
" nodes.setTokenStream(tokens);\n" + " nodes.setTokenStream(tokens);\n" +
" <treeParserName> walker = new <treeParserName>(nodes);\n" + " <treeParserName> walker = new <treeParserName>(nodes);\n" +
" walker.<treeParserStartRuleName>();\n" + " walker.<treeParserStartRuleName>();\n" +