Package org.antlr.v4.semantics
Class UseDefAnalyzer
- java.lang.Object
-
- org.antlr.v4.semantics.UseDefAnalyzer
-
public class UseDefAnalyzer extends Object
Look for errors and deadcode stuff
-
-
Constructor Summary
Constructors Constructor Description UseDefAnalyzer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
actionIsContextDependent(ActionAST actionAST)
static Map<Rule,Set<Rule>>
getRuleDependencies(Grammar g)
Find all rules reachable from r directly or indirectly for all r in gstatic Map<Rule,Set<Rule>>
getRuleDependencies(Grammar g, Collection<Rule> rules)
static Map<Rule,Set<Rule>>
getRuleDependencies(LexerGrammar g, String modeName)
static void
trackTokenRuleRefsInActions(Grammar g)
-
-
-
Method Detail
-
trackTokenRuleRefsInActions
public static void trackTokenRuleRefsInActions(Grammar g)
-
actionIsContextDependent
public static boolean actionIsContextDependent(ActionAST actionAST)
-
getRuleDependencies
public static Map<Rule,Set<Rule>> getRuleDependencies(Grammar g)
Find all rules reachable from r directly or indirectly for all r in g
-
getRuleDependencies
public static Map<Rule,Set<Rule>> getRuleDependencies(LexerGrammar g, String modeName)
-
-