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

Unified Diff: pkg/front_end/lib/src/fasta/builder/class_builder.dart

Issue 2767633004: Report compile-time errors on cyclic hierarchies. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_class_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/builder/class_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/class_builder.dart b/pkg/front_end/lib/src/fasta/builder/class_builder.dart
index 113222635c94ebf01a28097817733aa3541ae6ee..41273c323baaa696f07dadd01bd724dc31e3b860 100644
--- a/pkg/front_end/lib/src/fasta/builder/class_builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/class_builder.dart
@@ -187,4 +187,16 @@ abstract class ClassBuilder<T extends TypeBuilder, R>
}
return substitutionMap;
}
+
+ void addCompileTimeError(int charOffset, String message) {
+ library.addCompileTimeError(charOffset, message, fileUri: fileUri);
+ }
+
+ void addWarning(int charOffset, String message) {
+ library.addWarning(charOffset, message, fileUri: fileUri);
+ }
+
+ void addNit(int charOffset, String message) {
+ library.addNit(charOffset, message, fileUri: fileUri);
Paul Berry 2017/03/22 16:22:30 Not a blocking issue for this CL, but when we next
ahe 2017/03/22 17:49:49 I agree. I use "nit" to report warnings that aren'
ahe 2017/03/23 11:35:35 I did that in CL 2770683005.
+ }
}
« no previous file with comments | « no previous file | 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