Home
last modified time | relevance | path

Searched refs:refAST (Results 1 – 5 of 5) sorted by relevance

/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DGrammarSanity.java189 GrammarAST refAST, in checkRuleReference() argument
193 Rule r = grammar.getRule(refAST.getText()); in checkRuleReference()
194 if ( refAST.getType()==ANTLRParser.RULE_REF ) { in checkRuleReference()
213 refAST.getToken(), in checkRuleReference()
218 else if ( refAST.getType()==ANTLRParser.TOKEN_REF ) { in checkRuleReference()
225 refAST.getToken(), in checkRuleReference()
226 refAST.getText()); in checkRuleReference()
248 refAST.getToken(), in checkRuleReference()
DRule.java270 public void trackTokenReferenceInAlt(GrammarAST refAST, int outerAltNum) { in trackTokenReferenceInAlt() argument
271 List refs = (List)altToTokenRefMap[outerAltNum].get(refAST.getText()); in trackTokenReferenceInAlt()
274 altToTokenRefMap[outerAltNum].put(refAST.getText(), refs); in trackTokenReferenceInAlt()
276 refs.add(refAST); in trackTokenReferenceInAlt()
287 public void trackRuleReferenceInAlt(GrammarAST refAST, int outerAltNum) { in trackRuleReferenceInAlt() argument
288 List refs = (List)altToRuleRefMap[outerAltNum].get(refAST.getText()); in trackRuleReferenceInAlt()
291 altToRuleRefMap[outerAltNum].put(refAST.getText(), refs); in trackRuleReferenceInAlt()
293 refs.add(refAST); in trackRuleReferenceInAlt()
DNameSpaceChecker.java129 GrammarAST refAST = (GrammarAST)iter.next(); in lookForReferencesToUndefinedSymbols() local
130 Token tok = refAST.token; in lookForReferencesToUndefinedSymbols()
165 GrammarAST refAST = (GrammarAST)scopeAST.getChild(1); in lookForReferencesToUndefinedSymbols() local
166 String ruleName = refAST.getText(); in lookForReferencesToUndefinedSymbols()
DGrammar.java1956 GrammarAST refAST, in altReferencesRule() argument
1973 r.trackRuleReferenceInAlt(refAST, outerAltNum); in altReferencesRule()
1974 Token refToken = refAST.getToken(); in altReferencesRule()
1975 if ( !ruleRefs.contains(refAST) ) { in altReferencesRule()
1976 ruleRefs.add(refAST); in altReferencesRule()
1986 public void altReferencesTokenID(String ruleName, GrammarAST refAST, int outerAltNum) { in altReferencesTokenID() argument
1991 r.trackTokenReferenceInAlt(refAST, outerAltNum); in altReferencesTokenID()
1992 if ( !tokenIDRefs.contains(refAST.getToken()) ) { in altReferencesTokenID()
1993 tokenIDRefs.add(refAST.getToken()); in altReferencesTokenID()
2033 GrammarAST refAST, in checkRuleReference() argument
[all …]
/external/antlr/antlr-3.4/lib/
Dantlr-3.4-complete.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/antlr/ org/ ...