Index: pkg/analyzer_experimental/lib/src/generated/constant.dart |
diff --git a/pkg/analyzer_experimental/lib/src/generated/constant.dart b/pkg/analyzer_experimental/lib/src/generated/constant.dart |
index bb5a29207da56a35133dfec6c7bffb0f3dc65008..fb3f013124de434c1e80ab64eae96e817d4c3b8b 100644 |
--- a/pkg/analyzer_experimental/lib/src/generated/constant.dart |
+++ b/pkg/analyzer_experimental/lib/src/generated/constant.dart |
@@ -393,7 +393,7 @@ class ConstantVisitor extends GeneralizingASTVisitor<EvaluationResultImpl> { |
} |
EvaluationResultImpl visitInterpolationString(InterpolationString node) => new ValidResult(node.value); |
EvaluationResultImpl visitListLiteral(ListLiteral node) { |
- if (node.modifier == null) { |
+ if (node.constKeyword == null) { |
return new ErrorResult.con1(node, CompileTimeErrorCode.MISSING_CONST_IN_LIST_LITERAL); |
} |
ErrorResult result = null; |
@@ -406,7 +406,7 @@ class ConstantVisitor extends GeneralizingASTVisitor<EvaluationResultImpl> { |
return ValidResult.RESULT_OBJECT; |
} |
EvaluationResultImpl visitMapLiteral(MapLiteral node) { |
- if (node.modifier == null) { |
+ if (node.constKeyword == null) { |
return new ErrorResult.con1(node, CompileTimeErrorCode.MISSING_CONST_IN_MAP_LITERAL); |
} |
ErrorResult result = null; |