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

Unified Diff: pkg/front_end/lib/src/fasta/loader.dart

Issue 2917863003: Various infrastructure changes. (Closed)
Patch Set: Fix comment. 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
Index: pkg/front_end/lib/src/fasta/loader.dart
diff --git a/pkg/front_end/lib/src/fasta/loader.dart b/pkg/front_end/lib/src/fasta/loader.dart
index 306d163f4b9c1b6937c4fba606b9f2dcfbf19263..a9e235747f9357aaebd18b1d67effb95b1693061 100644
--- a/pkg/front_end/lib/src/fasta/loader.dart
+++ b/pkg/front_end/lib/src/fasta/loader.dart
@@ -25,6 +25,8 @@ abstract class Loader<L> {
final TargetImplementation target;
+ final List<InputError> errors = <InputError>[];
+
LibraryBuilder coreLibrary;
LibraryBuilder first;
@@ -138,7 +140,7 @@ ${format(ms / libraryCount, 3, 12)} ms/compilation unit.""");
Future<Null> buildBody(covariant LibraryBuilder library);
List<InputError> collectCompileTimeErrors() {
- List<InputError> errors = <InputError>[];
+ List<InputError> errors = <InputError>[]..addAll(this.errors);
for (LibraryBuilder library in builders.values) {
if (library.loader == this) {
errors.addAll(library.compileTimeErrors);
@@ -147,13 +149,21 @@ ${format(ms / libraryCount, 3, 12)} ms/compilation unit.""");
return errors;
}
+ Builder getAbstractClassInstantiationError() {
+ return target.getAbstractClassInstantiationError(this);
+ }
+
Builder getCompileTimeError() => target.getCompileTimeError(this);
+ Builder getDuplicatedFieldInitializerError() {
+ return target.getDuplicatedFieldInitializerError(this);
+ }
+
+ Builder getFallThroughError() => target.getFallThroughError(this);
+
Builder getNativeAnnotation() => target.getNativeAnnotation(this);
- Builder getAbstractClassInstantiationError() {
- return target.getAbstractClassInstantiationError(this);
- }
+ Builder getNoSuchMethodError() => target.getNoSuchMethodError(this);
}
String format(double d, int fractionDigits, int width) {
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_target.dart ('k') | pkg/front_end/lib/src/fasta/target_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698