Index: pkg/analyzer/tool/summary/mini_ast.dart |
diff --git a/pkg/analyzer/tool/summary/mini_ast.dart b/pkg/analyzer/tool/summary/mini_ast.dart |
index 72b514e3f9584ce5e83dcae650711d68e9e7b80f..19b8e2fb0cbab6ba09f5a4007944267bbec076ce 100644 |
--- a/pkg/analyzer/tool/summary/mini_ast.dart |
+++ b/pkg/analyzer/tool/summary/mini_ast.dart |
@@ -2,12 +2,12 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-import 'package:front_end/src/fasta/errors.dart'; |
+import 'package:front_end/src/fasta/errors.dart' show internalError; |
+import 'package:front_end/src/fasta/fasta_codes.dart' show FastaMessage; |
import 'package:front_end/src/fasta/parser/identifier_context.dart'; |
import 'package:front_end/src/fasta/parser/parser.dart'; |
-import 'package:front_end/src/scanner/token.dart'; |
import 'package:front_end/src/fasta/source/stack_listener.dart'; |
-import 'package:front_end/src/scanner/token.dart' as analyzer; |
+import 'package:front_end/src/scanner/token.dart'; |
/// "Mini AST" representation of a declaration which can accept annotations. |
class AnnotatedNode { |
@@ -55,7 +55,7 @@ class Comment { |
final List<Token> tokens; |
- factory Comment(analyzer.Token commentToken) { |
+ factory Comment(Token commentToken) { |
var tokens = <Token>[]; |
bool isDocumentation = false; |
while (commentToken != null) { |
@@ -433,6 +433,11 @@ class MiniAstBuilder extends StackListener { |
String name = pop(); |
push(new TypeName(name, typeArguments)); |
} |
+ |
+ @override |
+ void addCompileTimeErrorFromMessage(FastaMessage message) { |
+ internalError(message.message); |
+ } |
} |
/// Parser intended for use with [MiniAstBuilder]. |