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

Unified Diff: pkg/compiler/lib/src/string_validator.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
« no previous file with comments | « pkg/compiler/lib/src/ssa/variable_allocator.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/string_validator.dart
diff --git a/pkg/compiler/lib/src/string_validator.dart b/pkg/compiler/lib/src/string_validator.dart
index f953ec08e674a4120c752340d61ac88232ff69b0..b790774b3db0429349a4ef1bf3e596a2c87ded4e 100644
--- a/pkg/compiler/lib/src/string_validator.dart
+++ b/pkg/compiler/lib/src/string_validator.dart
@@ -15,9 +15,9 @@ import 'tree/tree.dart';
import 'util/characters.dart';
class StringValidator {
- final DiagnosticListener listener;
+ final DiagnosticReporter reporter;
- StringValidator(this.listener);
+ StringValidator(this.reporter);
DartString validateInterpolationPart(Token token, StringQuoting quoting,
{bool isFirst: false,
@@ -102,7 +102,7 @@ class StringValidator {
}
void stringParseError(String message, Token token, int offset) {
- listener.reportErrorMessage(
+ reporter.reportErrorMessage(
token, MessageKind.GENERIC, {'text': "$message @ $offset"});
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/variable_allocator.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698