Home
last modified time | relevance | path

Searched refs:equeue (Results 1 – 12 of 12) sorted by relevance

/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestAttributes.java96 ErrorQueue equeue = new ErrorQueue(); in testArguments() local
97 ErrorManager.setErrorListener(equeue); in testArguments()
111 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size()); in testArguments()
119 ErrorQueue equeue = new ErrorQueue(); in testComplicatedArgParsing() local
120 ErrorManager.setErrorListener(equeue); in testComplicatedArgParsing()
137 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size()); in testComplicatedArgParsing()
141 ErrorQueue equeue = new ErrorQueue(); in testBracketArgParsing() local
142 ErrorManager.setErrorListener(equeue); in testBracketArgParsing()
165 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size()); in testBracketArgParsing()
172 ErrorQueue equeue = new ErrorQueue(); in testStringArgParsing() local
[all …]
DTestSymbolDefinitions.java216 ErrorQueue equeue = new ErrorQueue(); in testRefToRuleWithNoReturnValue() local
217 ErrorManager.setErrorListener(equeue); in testRefToRuleWithNoReturnValue()
233 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size()); in testRefToRuleWithNoReturnValue()
239 ErrorQueue equeue = new ErrorQueue(); in testParserStringLiterals() local
240 ErrorManager.setErrorListener(equeue); in testParserStringLiterals()
249 checkGrammarSemanticsError(equeue, expectedMessage); in testParserStringLiterals()
253 ErrorQueue equeue = new ErrorQueue(); in testParserCharLiterals() local
254 ErrorManager.setErrorListener(equeue); in testParserCharLiterals()
263 checkGrammarSemanticsError(equeue, expectedMessage); in testParserCharLiterals()
267 ErrorQueue equeue = new ErrorQueue(); in testEmptyNotChar() local
[all …]
DTestCompositeGrammars.java40 ErrorQueue equeue = new ErrorQueue(); in testWildcardStillWorks() local
41 ErrorManager.setErrorListener(equeue); in testWildcardStillWorks()
46 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size()); in testWildcardStillWorks()
186 ErrorQueue equeue = new ErrorQueue(); in testDelegatesSeeSameTokenType2() local
187 ErrorManager.setErrorListener(equeue); in testDelegatesSeeSameTokenType2()
227 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size()); in testDelegatesSeeSameTokenType2()
232 ErrorQueue equeue = new ErrorQueue(); in testCombinedImportsCombined() local
233 ErrorManager.setErrorListener(equeue); in testCombinedImportsCombined()
255 assertEquals("unexpected errors: "+equeue, 1, equeue.errors.size()); in testCombinedImportsCombined()
257 …assertEquals("unexpected errors: "+equeue, expectedError, equeue.errors.get(0).toString().replaceF… in testCombinedImportsCombined()
[all …]
DTestTemplates.java53 ErrorQueue equeue = new ErrorQueue(); in testTemplateConstructor() local
54 ErrorManager.setErrorListener(equeue); in testTemplateConstructor()
80 assertNoErrors(equeue); in testTemplateConstructor()
90 ErrorQueue equeue = new ErrorQueue(); in testTemplateConstructorNoArgs() local
91 ErrorManager.setErrorListener(equeue); in testTemplateConstructorNoArgs()
117 assertNoErrors(equeue); in testTemplateConstructorNoArgs()
128 ErrorQueue equeue = new ErrorQueue(); in testIndirectTemplateConstructor() local
129 ErrorManager.setErrorListener(equeue); in testIndirectTemplateConstructor()
155 assertNoErrors(equeue); in testIndirectTemplateConstructor()
164 ErrorQueue equeue = new ErrorQueue(); in testStringConstructor() local
[all …]
DTestRewriteTemplates.java237 ErrorQueue equeue = new ErrorQueue(); in testRewriteRuleAndRewriteModeOnSimpleElements() local
238 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeOnSimpleElements()
254 assertEquals("unexpected errors: "+equeue, 0, equeue.warnings.size()); in testRewriteRuleAndRewriteModeOnSimpleElements()
258 ErrorQueue equeue = new ErrorQueue(); in testRewriteRuleAndRewriteModeIgnoreActionsPredicates() local
259 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeIgnoreActionsPredicates()
276 assertEquals("unexpected errors: "+equeue, 0, equeue.warnings.size()); in testRewriteRuleAndRewriteModeIgnoreActionsPredicates()
280 ErrorQueue equeue = new ErrorQueue(); in testRewriteRuleAndRewriteModeNotSimple() local
281 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeNotSimple()
295 assertEquals("unexpected errors: "+equeue, 0, equeue.warnings.size()); in testRewriteRuleAndRewriteModeNotSimple()
299 ErrorQueue equeue = new ErrorQueue(); in testRewriteRuleAndRewriteModeRefRule() local
[all …]
DTestSemanticPredicates.java253 ErrorQueue equeue = new ErrorQueue(); in testLeftRecursivePred() local
254 ErrorManager.setErrorListener(equeue); in testLeftRecursivePred()
270 assertEquals("unexpected number of expected problems", 1, equeue.size()); in testLeftRecursivePred()
271 Message msg = (Message)equeue.errors.get(0); in testLeftRecursivePred()
362 ErrorQueue equeue = new ErrorQueue(); in testPredsUsedAfterRecursionOverflow() local
363 ErrorManager.setErrorListener(equeue); in testPredsUsedAfterRecursionOverflow()
371 assertEquals("unexpected number of expected problems", 0, equeue.size()); in testPredsUsedAfterRecursionOverflow()
396 ErrorQueue equeue = new ErrorQueue(); in testPredsUsedAfterK2FailsNoRecursionOverflow() local
397 ErrorManager.setErrorListener(equeue); in testPredsUsedAfterK2FailsNoRecursionOverflow()
405 assertEquals("unexpected number of expected problems", 0, equeue.size()); in testPredsUsedAfterK2FailsNoRecursionOverflow()
[all …]
DTestRewriteAST.java862 ErrorQueue equeue = new ErrorQueue(); in testWeirdRuleRef() local
863 ErrorManager.setErrorListener(equeue); in testWeirdRuleRef()
880 assertEquals("unexpected errors: "+equeue, 1, equeue.errors.size()); in testWeirdRuleRef()
1159 ErrorQueue equeue = new ErrorQueue(); in testUnknownRule() local
1160 ErrorManager.setErrorListener(equeue); in testUnknownRule()
1183 checkError(equeue, expectedMessage); in testUnknownRule()
1187 ErrorQueue equeue = new ErrorQueue(); in testKnownRuleButNotInLHS() local
1188 ErrorManager.setErrorListener(equeue); in testKnownRuleButNotInLHS()
1212 checkError(equeue, expectedMessage); in testKnownRuleButNotInLHS()
1216 ErrorQueue equeue = new ErrorQueue(); in testUnknownToken() local
[all …]
DTestDFAConversion.java549 ErrorQueue equeue = new ErrorQueue(); in testIndirectRecursionLoop() local
550 ErrorManager.setErrorListener(equeue); in testIndirectRecursionLoop()
557 assertEquals(1, equeue.errors.size()); in testIndirectRecursionLoop()
558 Message msg = (Message)equeue.errors.get(0); in testIndirectRecursionLoop()
578 ErrorQueue equeue = new ErrorQueue(); in testIndirectRecursionLoop2() local
579 ErrorManager.setErrorListener(equeue); in testIndirectRecursionLoop2()
586 assertEquals(1, equeue.errors.size()); in testIndirectRecursionLoop2()
587 Message msg = (Message)equeue.errors.get(0); in testIndirectRecursionLoop2()
609 ErrorQueue equeue = new ErrorQueue(); in testIndirectRecursionLoop3() local
610 ErrorManager.setErrorListener(equeue); in testIndirectRecursionLoop3()
[all …]
DBaseTest.java172 ErrorQueue equeue = (ErrorQueue)listener; in antlr() local
173 if ( equeue.errors.size()>0 ) { in antlr()
176 for (int i = 0; i < equeue.errors.size(); i++) { in antlr()
177 Message msg = (Message) equeue.errors.get(i); in antlr()
431 protected void checkGrammarSemanticsError(ErrorQueue equeue, in checkGrammarSemanticsError() argument
442 for (int i = 0; i < equeue.errors.size(); i++) { in checkGrammarSemanticsError()
443 Message m = (Message)equeue.errors.get(i); in checkGrammarSemanticsError()
452 if ( equeue.size()!=1 ) { in checkGrammarSemanticsError()
453 System.err.println(equeue); in checkGrammarSemanticsError()
457 protected void checkGrammarSemanticsWarning(ErrorQueue equeue, in checkGrammarSemanticsWarning() argument
[all …]
DTestCharDFAConversion.java163 ErrorQueue equeue = new ErrorQueue(); in testIdenticalRules() local
164 ErrorManager.setErrorListener(equeue); in testIdenticalRules()
169 1, equeue.size()); in testIdenticalRules()
170 Message msg = (Message)equeue.errors.get(0); in testIdenticalRules()
343 ErrorQueue equeue = new ErrorQueue(); in testNonGreedyLoopThatNeverLoops() local
344 ErrorManager.setErrorListener(equeue); in testNonGreedyLoopThatNeverLoops()
349 1, equeue.size()); in testNonGreedyLoopThatNeverLoops()
350 Message msg = (Message)equeue.errors.get(0); in testNonGreedyLoopThatNeverLoops()
DTestMessages.java49 ErrorQueue equeue = new ErrorQueue(); in testMessageStringificationIsConsistent() local
50 ErrorManager.setErrorListener(equeue); in testMessageStringificationIsConsistent()
DTestTreeGrammarRewriteAST.java232 ErrorQueue equeue = new ErrorQueue(); in testNoWildcardAsRootError() local
233 ErrorManager.setErrorListener(equeue); in testNoWildcardAsRootError()
248 assertEquals("unexpected errors: "+equeue, 1, equeue.errors.size()); in testNoWildcardAsRootError()
256 checkError(equeue, expectedMessage); in testNoWildcardAsRootError()