Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(440)

Unified Diff: pkg/analyzer/tool/summary/mini_ast.dart

Issue 2898183002: Prepare for development branch by updating externally-used API. (Closed)
Patch Set: Minor tweaks found during testing. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | pkg/compiler/lib/src/kernel/fasta_support.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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].
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | pkg/compiler/lib/src/kernel/fasta_support.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698