Index: pkg/analyzer/lib/src/dart/constant/evaluation.dart |
diff --git a/pkg/analyzer/lib/src/dart/constant/evaluation.dart b/pkg/analyzer/lib/src/dart/constant/evaluation.dart |
index 8c48f497acbdd6785c49fdbb68b7ba0125aef0ab..1120429cfd83fcea0f8a2599458a55b4fd9d8872 100644 |
--- a/pkg/analyzer/lib/src/dart/constant/evaluation.dart |
+++ b/pkg/analyzer/lib/src/dart/constant/evaluation.dart |
@@ -861,7 +861,7 @@ class ConstantEvaluationEngine { |
static bool isValidPublicSymbol(String name) => |
name.isEmpty || |
name == "void" || |
- new JavaPatternMatcher(_PUBLIC_SYMBOL_PATTERN, name).matches(); |
+ _PUBLIC_SYMBOL_PATTERN.hasMatch(name); |
} |
/** |