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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart

Issue 2965393002: Use FastaMessage instead of String. Part 1. (Closed)
Patch Set: Add type variable to Code. Created 3 years, 5 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
Index: pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart b/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
index 8c5c392f2adacaf4d8e47931f98c23b581e4c15e..5c774340a16d79286cd7460680783064fa3f3896 100644
--- a/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
@@ -4,7 +4,23 @@
library fasta.fasta_accessors;
-import 'package:front_end/src/fasta/kernel/kernel_shadow_ast.dart'
+import 'package:kernel/ast.dart'
+ hide InvalidExpression, InvalidInitializer, InvalidStatement;
+
+import '../../scanner/token.dart' show Token;
+
+import '../deprecated_problems.dart' show deprecated_internalProblem;
+
+import '../messages.dart' show Message;
+
+import '../names.dart' show callName, lengthName;
+
+import '../scope.dart'
+ show deprecated_AccessErrorBuilder, ProblemBuilder, Scope;
+
+import '../type_inference/type_promotion.dart' show TypePromoter;
+
+import 'kernel_shadow_ast.dart'
show
KernelArguments,
KernelComplexAssignment,
@@ -15,23 +31,10 @@ import 'package:front_end/src/fasta/kernel/kernel_shadow_ast.dart'
KernelTypeLiteral,
KernelVariableAssignment;
-import 'package:front_end/src/fasta/kernel/utils.dart' show offsetForToken;
-
-import 'package:front_end/src/scanner/token.dart' show Token;
+import 'utils.dart' show offsetForToken;
import 'frontend_accessors.dart' show Accessor;
-import 'package:front_end/src/fasta/type_inference/type_promotion.dart'
- show TypePromoter;
-
-import 'package:kernel/ast.dart'
- hide InvalidExpression, InvalidInitializer, InvalidStatement;
-
-import '../deprecated_problems.dart' show deprecated_internalProblem;
-
-import '../scope.dart'
- show deprecated_AccessErrorBuilder, ProblemBuilder, Scope;
-
import 'frontend_accessors.dart' as kernel
show
IndexAccessor,
@@ -54,8 +57,6 @@ import 'kernel_builder.dart'
PrefixBuilder,
TypeDeclarationBuilder;
-import '../names.dart' show callName, lengthName;
-
abstract class BuilderHelper {
LibraryBuilder get library;
@@ -80,7 +81,9 @@ abstract class BuilderHelper {
finishSend(Object receiver, Arguments arguments, int offset);
- Expression deprecated_buildCompileTimeError(error, [int offset]);
+ Expression buildCompileTimeError(Message message, int charOffset);
+
+ Expression deprecated_buildCompileTimeError(String error, [int offset]);
Initializer buildInvalidInitializer(Expression expression, [int offset]);
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | pkg/front_end/lib/src/fasta/kernel/kernel_class_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698