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

Unified Diff: pkg/compiler/lib/src/diagnostics/messages.dart

Issue 2213673002: Delete dart_backend from compiler. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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/diagnostics/messages.dart
diff --git a/pkg/compiler/lib/src/diagnostics/messages.dart b/pkg/compiler/lib/src/diagnostics/messages.dart
index 11c00009a38df4775deab5680cb2f216377f2376..472e0166cb02acd0a05a01edc58120217f0f6979 100644
--- a/pkg/compiler/lib/src/diagnostics/messages.dart
+++ b/pkg/compiler/lib/src/diagnostics/messages.dart
@@ -3626,15 +3626,18 @@ part of test.main;
MessageKind.EXTERNAL_WITH_BODY: const MessageTemplate(
MessageKind.EXTERNAL_WITH_BODY,
"External function '#{functionName}' cannot have a function body.",
- options: const ["--output-type=dart"],
howToFix:
"Try removing the 'external' modifier or the function body.",
examples: const [
"""
+import 'package:js/js.dart';
+@JS()
external foo() => 0;
main() => foo();
""",
"""
+import 'package:js/js.dart';
+@JS()
external foo() {}
main() => foo();
"""
« no previous file with comments | « pkg/compiler/lib/src/dart_backend/renamer.dart ('k') | pkg/compiler/lib/src/mirror_renamer/mirror_renamer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698