Home
last modified time | relevance | path

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

/external/antlr/tool/src/test/java/org/antlr/test/
DTestAttributes.java98 ErrorQueue equeue = new ErrorQueue(); in testArguments() local
99 ErrorManager.setErrorListener(equeue); in testArguments()
113 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size()); in testArguments()
121 ErrorQueue equeue = new ErrorQueue(); in testComplicatedArgParsing() local
122 ErrorManager.setErrorListener(equeue); in testComplicatedArgParsing()
139 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size()); in testComplicatedArgParsing()
143 ErrorQueue equeue = new ErrorQueue(); in testBracketArgParsing() local
144 ErrorManager.setErrorListener(equeue); in testBracketArgParsing()
167 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size()); in testBracketArgParsing()
174 ErrorQueue equeue = new ErrorQueue(); in testStringArgParsing() local
[all …]
DTestSymbolDefinitions.java218 ErrorQueue equeue = new ErrorQueue(); in testRefToRuleWithNoReturnValue() local
219 ErrorManager.setErrorListener(equeue); in testRefToRuleWithNoReturnValue()
235 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size()); in testRefToRuleWithNoReturnValue()
241 ErrorQueue equeue = new ErrorQueue(); in testParserStringLiterals() local
242 ErrorManager.setErrorListener(equeue); in testParserStringLiterals()
251 checkGrammarSemanticsError(equeue, expectedMessage); in testParserStringLiterals()
255 ErrorQueue equeue = new ErrorQueue(); in testParserCharLiterals() local
256 ErrorManager.setErrorListener(equeue); in testParserCharLiterals()
265 checkGrammarSemanticsError(equeue, expectedMessage); in testParserCharLiterals()
269 ErrorQueue equeue = new ErrorQueue(); in testEmptyNotChar() local
[all …]
DTestCompositeGrammars.java42 ErrorQueue equeue = new ErrorQueue(); in testWildcardStillWorks() local
43 ErrorManager.setErrorListener(equeue); in testWildcardStillWorks()
48 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size()); in testWildcardStillWorks()
188 ErrorQueue equeue = new ErrorQueue(); in testDelegatesSeeSameTokenType2() local
189 ErrorManager.setErrorListener(equeue); in testDelegatesSeeSameTokenType2()
229 assertEquals("unexpected errors: "+equeue, 0, equeue.errors.size()); in testDelegatesSeeSameTokenType2()
234 ErrorQueue equeue = new ErrorQueue(); in testCombinedImportsCombined() local
235 ErrorManager.setErrorListener(equeue); in testCombinedImportsCombined()
257 assertEquals("unexpected errors: "+equeue, 1, equeue.errors.size()); in testCombinedImportsCombined()
259 …assertEquals("unexpected errors: "+equeue, expectedError, equeue.errors.get(0).toString().replaceF… in testCombinedImportsCombined()
[all …]
DTestTemplates.java55 ErrorQueue equeue = new ErrorQueue(); in testTemplateConstructor() local
56 ErrorManager.setErrorListener(equeue); in testTemplateConstructor()
82 assertNoErrors(equeue); in testTemplateConstructor()
92 ErrorQueue equeue = new ErrorQueue(); in testTemplateConstructorNoArgs() local
93 ErrorManager.setErrorListener(equeue); in testTemplateConstructorNoArgs()
119 assertNoErrors(equeue); in testTemplateConstructorNoArgs()
130 ErrorQueue equeue = new ErrorQueue(); in testIndirectTemplateConstructor() local
131 ErrorManager.setErrorListener(equeue); in testIndirectTemplateConstructor()
157 assertNoErrors(equeue); in testIndirectTemplateConstructor()
166 ErrorQueue equeue = new ErrorQueue(); in testStringConstructor() local
[all …]
DTestRewriteTemplates.java239 ErrorQueue equeue = new ErrorQueue(); in testRewriteRuleAndRewriteModeOnSimpleElements() local
240 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeOnSimpleElements()
256 assertEquals("unexpected errors: "+equeue, 0, equeue.warnings.size()); in testRewriteRuleAndRewriteModeOnSimpleElements()
260 ErrorQueue equeue = new ErrorQueue(); in testRewriteRuleAndRewriteModeIgnoreActionsPredicates() local
261 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeIgnoreActionsPredicates()
278 assertEquals("unexpected errors: "+equeue, 0, equeue.warnings.size()); in testRewriteRuleAndRewriteModeIgnoreActionsPredicates()
282 ErrorQueue equeue = new ErrorQueue(); in testRewriteRuleAndRewriteModeNotSimple() local
283 ErrorManager.setErrorListener(equeue); in testRewriteRuleAndRewriteModeNotSimple()
297 assertEquals("unexpected errors: "+equeue, 0, equeue.warnings.size()); in testRewriteRuleAndRewriteModeNotSimple()
301 ErrorQueue equeue = new ErrorQueue(); in testRewriteRuleAndRewriteModeRefRule() local
[all …]
DTestSemanticPredicates.java256 ErrorQueue equeue = new ErrorQueue(); in testLeftRecursivePred() local
257 ErrorManager.setErrorListener(equeue); in testLeftRecursivePred()
273 assertEquals("unexpected number of expected problems", 1, equeue.size()); in testLeftRecursivePred()
274 Message msg = equeue.errors.get(0); in testLeftRecursivePred()
365 ErrorQueue equeue = new ErrorQueue(); in testPredsUsedAfterRecursionOverflow() local
366 ErrorManager.setErrorListener(equeue); in testPredsUsedAfterRecursionOverflow()
374 assertEquals("unexpected number of expected problems", 0, equeue.size()); in testPredsUsedAfterRecursionOverflow()
399 ErrorQueue equeue = new ErrorQueue(); in testPredsUsedAfterK2FailsNoRecursionOverflow() local
400 ErrorManager.setErrorListener(equeue); in testPredsUsedAfterK2FailsNoRecursionOverflow()
408 assertEquals("unexpected number of expected problems", 0, equeue.size()); in testPredsUsedAfterK2FailsNoRecursionOverflow()
[all …]
DTestRewriteAST.java864 ErrorQueue equeue = new ErrorQueue(); in testWeirdRuleRef() local
865 ErrorManager.setErrorListener(equeue); in testWeirdRuleRef()
882 assertEquals("unexpected errors: "+equeue, 1, equeue.errors.size()); in testWeirdRuleRef()
1158 ErrorQueue equeue = new ErrorQueue(); in testUnknownRule() local
1159 ErrorManager.setErrorListener(equeue); in testUnknownRule()
1182 checkError(equeue, expectedMessage); in testUnknownRule()
1186 ErrorQueue equeue = new ErrorQueue(); in testKnownRuleButNotInLHS() local
1187 ErrorManager.setErrorListener(equeue); in testKnownRuleButNotInLHS()
1211 checkError(equeue, expectedMessage); in testKnownRuleButNotInLHS()
1215 ErrorQueue equeue = new ErrorQueue(); in testUnknownToken() local
[all …]
DTestDFAConversion.java552 ErrorQueue equeue = new ErrorQueue(); in testIndirectRecursionLoop() local
553 ErrorManager.setErrorListener(equeue); in testIndirectRecursionLoop()
560 assertEquals(1, equeue.errors.size()); in testIndirectRecursionLoop()
561 Message msg = equeue.errors.get(0); in testIndirectRecursionLoop()
581 ErrorQueue equeue = new ErrorQueue(); in testIndirectRecursionLoop2() local
582 ErrorManager.setErrorListener(equeue); in testIndirectRecursionLoop2()
589 assertEquals(1, equeue.errors.size()); in testIndirectRecursionLoop2()
590 Message msg = equeue.errors.get(0); in testIndirectRecursionLoop2()
612 ErrorQueue equeue = new ErrorQueue(); in testIndirectRecursionLoop3() local
613 ErrorManager.setErrorListener(equeue); in testIndirectRecursionLoop3()
[all …]
DTestCharDFAConversion.java165 ErrorQueue equeue = new ErrorQueue(); in testIdenticalRules() local
166 ErrorManager.setErrorListener(equeue); in testIdenticalRules()
171 1, equeue.size()); in testIdenticalRules()
172 Message msg = equeue.errors.get(0); in testIdenticalRules()
345 ErrorQueue equeue = new ErrorQueue(); in testNonGreedyLoopThatNeverLoops() local
346 ErrorManager.setErrorListener(equeue); in testNonGreedyLoopThatNeverLoops()
351 1, equeue.size()); in testNonGreedyLoopThatNeverLoops()
352 Message msg = equeue.errors.get(0); in testNonGreedyLoopThatNeverLoops()
DBaseTest.java188 ErrorQueue equeue = (ErrorQueue)listener; in antlr() local
189 if ( equeue.errors.size()>0 ) { in antlr()
192 for (int i = 0; i < equeue.errors.size(); i++) { in antlr()
193 Message msg = equeue.errors.get(i); in antlr()
523 protected void checkGrammarSemanticsError(ErrorQueue equeue, in checkGrammarSemanticsError() argument
534 for (int i = 0; i < equeue.errors.size(); i++) { in checkGrammarSemanticsError()
535 Message m = equeue.errors.get(i); in checkGrammarSemanticsError()
544 if ( equeue.size()!=1 ) { in checkGrammarSemanticsError()
545 System.err.println(equeue); in checkGrammarSemanticsError()
549 protected void checkGrammarSemanticsWarning(ErrorQueue equeue, in checkGrammarSemanticsWarning() argument
[all …]
DTestMessages.java51 ErrorQueue equeue = new ErrorQueue(); in testMessageStringificationIsConsistent() local
52 ErrorManager.setErrorListener(equeue); in testMessageStringificationIsConsistent()
DTestTreeGrammarRewriteAST.java233 ErrorQueue equeue = new ErrorQueue(); in testNoWildcardAsRootError() local
234 ErrorManager.setErrorListener(equeue); in testNoWildcardAsRootError()
249 assertEquals("unexpected errors: "+equeue, 1, equeue.errors.size()); in testNoWildcardAsRootError()
257 checkError(equeue, expectedMessage); in testNoWildcardAsRootError()