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

Unified Diff: pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart

Issue 1383483006: Extract DiagnosticReporter implementation from Compiler. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fixes after rebase. Created 5 years, 2 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/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart
index c5723ae8d5095b323a8a2dc194add7026d88e52e..5a84ef2252aa13ae986dc5f381bd95ffd039f2de 100644
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart
@@ -156,7 +156,7 @@ class ClassEmitter extends CodeEmitterHelper {
int code = field.getterFlags + (field.setterFlags << 2);
if (code == 0) {
- compiler.internalError(fieldElement,
+ reporter.internalError(fieldElement,
'Field code is 0 ($fieldElement).');
}
fieldNameParts.add(
@@ -212,7 +212,7 @@ class ClassEmitter extends CodeEmitterHelper {
for (Field field in cls.fields) {
Element member = field.element;
- compiler.withCurrentElement(member, () {
+ reporter.withCurrentElement(member, () {
if (field.needsGetter) {
emitGetterForCSP(member, field.name, field.accessorName, builder);
}

Powered by Google App Engine
This is Rietveld 408576698