Antlr4.Runtime.Tree.Pattern.ParseTreePatternMatcher.Matches C# (CSharp) Method

Matches() public method

Does pattern matched as rule patternRuleIndex match tree ?
public Matches ( IParseTree tree, string pattern, int patternRuleIndex ) : bool
tree IParseTree
pattern string
patternRuleIndex int
return bool
        public virtual bool Matches(IParseTree tree, string pattern, int patternRuleIndex)
        {
            ParseTreePattern p = Compile(pattern, patternRuleIndex);
            return Matches(tree, p);
        }

Same methods

ParseTreePatternMatcher::Matches ( IParseTree tree, ParseTreePattern pattern ) : bool