Home
last modified time | relevance | path

Searched refs:outerAltNum (Results 1 – 10 of 10) sorted by relevance

/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/
DDefineGrammarItemsWalker.g57 protected int outerAltNum = 0;
326 this.outerAltNum=1;
334 this.outerAltNum++;
365 // r.TrackAltsWithRewrites($start,this.outerAltNum);
439 $act.outerAltNum = this.outerAltNum;
444 $act2.outerAltNum = this.outerAltNum;
449 $SEMPRED.outerAltNum = this.outerAltNum;
456 $GATED_SEMPRED.outerAltNum = this.outerAltNum;
501 grammar.altReferencesRule( currentRuleName, $scope_, $rr, this.outerAltNum );
504 $rarg.outerAltNum = this.outerAltNum;
[all …]
DActionTranslator.g52 int outerAltNum;
66 this.outerAltNum = actionAST.outerAltNum;
72 int outerAltNum)
79 this.outerAltNum = outerAltNum;
115 new CommonToken(ANTLRParser.ACTION,action),outerAltNum);
120 return enclosingRule.getTokenRefsInAlt(id, outerAltNum)!=null;
123 return enclosingRule.getRuleRefsInAlt(id, outerAltNum)!=null;
132 refs = enclosingRule.getTokenRefsInAlt(ref, outerAltNum);
135 refs = enclosingRule.getRuleRefsInAlt(ref, outerAltNum);
302 label = enclosingRule.getElementLabel($x.text, outerAltNum, generator);
[all …]
DActionAnalysis.g52 int outerAltNum = 0;
60 this.outerAltNum = actionAST.outerAltNum;
94 else if ( enclosingRule.getRuleRefsInAlt(x.getText(), outerAltNum)!=null ) {
DCodeGenTreeWalker.g72 private int outerAltNum = 0;
87 return outerAltNum;
91 outerAltNum = value;
558 this.outerAltNum=1;
573 this.outerAltNum++;
608 currentAltHasASTRewrite = r.hasRewrite(outerAltNum);
611 r.trackTokenReferenceInAlt($start, outerAltNum);
685 currentAltHasASTRewrite = r.hasRewrite(outerAltNum);
901 if ( grammar.buildAST() && !r.hasRewrite(outerAltNum) ) {
957 if ( encRule!=null && encRule.hasRewrite(outerAltNum) && astSuffix!=null )
[all …]
DTreeToNFAConverter.g65 protected int outerAltNum = 0;
81 other.outerAltNum = outerAltNum;
89 if ( r.hasRewrite( outerAltNum ) )
96 other.outerAltNum = outerAltNum;
111 other.outerAltNum = outerAltNum;
287 this.outerAltNum=1;
300 outerAltNum++;
/external/antlr/tool/src/main/java/org/antlr/tool/
DRule.java276 public void trackTokenReferenceInAlt(GrammarAST refAST, int outerAltNum) { in trackTokenReferenceInAlt() argument
277 List<GrammarAST> refs = altToTokenRefMap[outerAltNum].get(refAST.getText()); in trackTokenReferenceInAlt()
280 altToTokenRefMap[outerAltNum].put(refAST.getText(), refs); in trackTokenReferenceInAlt()
285 public List<GrammarAST> getTokenRefsInAlt(String ref, int outerAltNum) { in getTokenRefsInAlt() argument
286 if ( altToTokenRefMap[outerAltNum]!=null ) { in getTokenRefsInAlt()
287 List<GrammarAST> tokenRefASTs = altToTokenRefMap[outerAltNum].get(ref); in getTokenRefsInAlt()
293 public void trackRuleReferenceInAlt(GrammarAST refAST, int outerAltNum) { in trackRuleReferenceInAlt() argument
294 List<GrammarAST> refs = altToRuleRefMap[outerAltNum].get(refAST.getText()); in trackRuleReferenceInAlt()
297 altToRuleRefMap[outerAltNum].put(refAST.getText(), refs); in trackRuleReferenceInAlt()
302 public List<GrammarAST> getRuleRefsInAlt(String ref, int outerAltNum) { in getRuleRefsInAlt() argument
[all …]
DGrammarSanity.java267 int outerAltNum) in ensureAltIsSimpleNodeOrTree() argument
275 outerAltNum); in ensureAltIsSimpleNodeOrTree()
293 outerAltNum); in ensureAltIsSimpleNodeOrTree()
299 outerAltNum); in ensureAltIsSimpleNodeOrTree()
DGrammarAST.java117 public int outerAltNum; field in GrammarAST
165 this.outerAltNum = t.outerAltNum; in initialize()
DGrammar.java1995 int outerAltNum) in altReferencesRule() argument
2011 r.trackRuleReferenceInAlt(refAST, outerAltNum); in altReferencesRule()
2024 public void altReferencesTokenID(String ruleName, GrammarAST refAST, int outerAltNum) { in altReferencesTokenID() argument
2029 r.trackTokenReferenceInAlt(refAST, outerAltNum); in altReferencesTokenID()
/external/antlr/tool/src/main/java/org/antlr/codegen/
DCodeGenerator.java950 actionTree.outerAltNum); in translateArgAction()
1067 int outerAltNum, in translateTemplateConstructor() argument
1096 gen.setOuterAltNum(outerAltNum); in translateTemplateConstructor()
1113 int outerAltNum) in issueInvalidScopeError() argument
1142 int outerAltNum) in issueInvalidAttributeError() argument
1158 if ( label!=null || enclosingRule.getRuleRefsInAlt(x, outerAltNum)!=null ) { in issueInvalidAttributeError()
1194 int outerAltNum) in issueInvalidAttributeError() argument
1211 enclosingRule.getRuleRefsInAlt(x, outerAltNum)!=null || in issueInvalidAttributeError()