MCPcopy
hub / github.com/google/closure-compiler / Matcher

Interface Matcher

src/com/google/javascript/refactoring/Matcher.java:25–31  ·  view source on GitHub ↗

Interface for a class that knows how to match a Node for a specific pattern. For example of Matchers, see Matchers.

Source from the content-addressed store, hash-verified

23 * pattern. For example of Matchers, see {@link Matchers}.
24 */
25public interface Matcher {
26 /**
27 * Returns true if the specified {@link Node} and {@link NodeMetadata} match
28 * the given pattern.
29 */
30 boolean matches(Node n, NodeMetadata metadata);
31}

Callers 8

getFixForInvalidSuperMethod · 0.95
processArgsMethod · 0.95
levelMethod · 0.65
testAnythingMethod · 0.65

Implementers 12

JsSourceMatchersrc/com/google/javascript/refactoring/
Diagnostictest/com/google/javascript/jscomp/Comp
Matcherssrc/com/google/javascript/refactoring/
Scannersrc/com/google/javascript/refactoring/
GoogBindToArrowsrc/com/google/javascript/refactoring/
AllowListsrc/com/google/javascript/jscomp/Confo
DiagnosticGroupsrc/com/google/javascript/jscomp/Diagn
TemplateAstMatchersrc/com/google/javascript/jscomp/Templ
QualifiedNamesrc/com/google/javascript/rhino/Qualif
StringListQnamesrc/com/google/javascript/rhino/Qualif
GetpropQnamesrc/com/google/javascript/rhino/Qualif
NodeQnamesrc/com/google/javascript/rhino/Qualif

Calls

no outgoing calls

Tested by

no test coverage detected