| Index: pkg/dartino_compiler/lib/src/dartino_diagnostic_reporter.dart
|
| diff --git a/pkg/fletchc/lib/src/fletch_diagnostic_reporter.dart b/pkg/dartino_compiler/lib/src/dartino_diagnostic_reporter.dart
|
| similarity index 79%
|
| rename from pkg/fletchc/lib/src/fletch_diagnostic_reporter.dart
|
| rename to pkg/dartino_compiler/lib/src/dartino_diagnostic_reporter.dart
|
| index 5049ee5f0b2c66cc9c9d29603ea65b94f8de573f..6889b544dce8e7792a5b69afc1b1ea30a7d7f866 100644
|
| --- a/pkg/fletchc/lib/src/fletch_diagnostic_reporter.dart
|
| +++ b/pkg/dartino_compiler/lib/src/dartino_diagnostic_reporter.dart
|
| @@ -2,7 +2,7 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE.md file.
|
|
|
| -library fletchc.fletch_diagnostic_reporter;
|
| +library dartino_compiler.dartino_diagnostic_reporter;
|
|
|
| import 'package:compiler/src/tokens/token.dart' show
|
| Token;
|
| @@ -19,8 +19,8 @@ import 'package:compiler/src/diagnostics/source_span.dart' show
|
| import 'package:compiler/src/diagnostics/diagnostic_listener.dart' show
|
| DiagnosticMessage;
|
|
|
| -import 'fletch_compiler_implementation.dart' show
|
| - FletchCompilerImplementation;
|
| +import 'dartino_compiler_implementation.dart' show
|
| + DartinoCompilerImplementation;
|
|
|
| import 'package:compiler/src/diagnostics/messages.dart' show
|
| MessageKind;
|
| @@ -29,13 +29,13 @@ import 'please_report_crash.dart' show
|
| crashReportRequested,
|
| requestBugReportOnCompilerCrashMessage;
|
|
|
| -class FletchDiagnosticReporter extends CompilerDiagnosticReporter {
|
| - FletchDiagnosticReporter(
|
| - FletchCompilerImplementation compiler,
|
| +class DartinoDiagnosticReporter extends CompilerDiagnosticReporter {
|
| + DartinoDiagnosticReporter(
|
| + DartinoCompilerImplementation compiler,
|
| DiagnosticOptions options)
|
| : super(compiler, options);
|
|
|
| - FletchCompilerImplementation get compiler => super.compiler;
|
| + DartinoCompilerImplementation get compiler => super.compiler;
|
|
|
| @override
|
| SourceSpan spanFromTokens(Token begin, Token end, [Uri uri]) {
|
| @@ -60,7 +60,7 @@ class FletchDiagnosticReporter extends CompilerDiagnosticReporter {
|
| if (message.message.kind ==
|
| MessageKind.MIRRORS_LIBRARY_NOT_SUPPORT_BY_BACKEND) {
|
| const String noMirrors =
|
| - "Fletch doesn't support 'dart:mirrors'. See https://goo.gl/Kwrd0O";
|
| + "Dartino doesn't support 'dart:mirrors'. See https://goo.gl/Kwrd0O";
|
| message = createMessage(message.spannable,
|
| MessageKind.GENERIC,
|
| {'text': message});
|
| @@ -75,9 +75,9 @@ class FletchDiagnosticReporter extends CompilerDiagnosticReporter {
|
| print(requestBugReportOnCompilerCrashMessage);
|
| }
|
|
|
| - static FletchDiagnosticReporter createInstance(
|
| - FletchCompilerImplementation compiler,
|
| + static DartinoDiagnosticReporter createInstance(
|
| + DartinoCompilerImplementation compiler,
|
| DiagnosticOptions options) {
|
| - return new FletchDiagnosticReporter(compiler, options);
|
| + return new DartinoDiagnosticReporter(compiler, options);
|
| }
|
| }
|
|
|