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

Side by Side Diff: pkg/compiler/lib/src/warnings.dart

Issue 839323003: Implementation of async-await transformation on js ast. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Implement new ssa-nodes in ssa-tracer. Created 5 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart2js; 5 part of dart2js;
6 6
7 const DONT_KNOW_HOW_TO_FIX = "Computer says no!"; 7 const DONT_KNOW_HOW_TO_FIX = "Computer says no!";
8 8
9 /** 9 /**
10 * The messages in this file should meet the following guide lines: 10 * The messages in this file should meet the following guide lines:
(...skipping 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after
2068 "#{warnings} warning(s) suppressed in #{uri}."); 2068 "#{warnings} warning(s) suppressed in #{uri}.");
2069 2069
2070 static const MessageKind HIDDEN_HINTS = const MessageKind( 2070 static const MessageKind HIDDEN_HINTS = const MessageKind(
2071 "#{hints} hint(s) suppressed in #{uri}."); 2071 "#{hints} hint(s) suppressed in #{uri}.");
2072 2072
2073 static const MessageKind PREAMBLE = const MessageKind( 2073 static const MessageKind PREAMBLE = const MessageKind(
2074 "When run on the command-line, the compiled output might" 2074 "When run on the command-line, the compiled output might"
2075 " require a preamble file located in:\n" 2075 " require a preamble file located in:\n"
2076 " <sdk>/lib/_internal/compiler/js_lib/preambles."); 2076 " <sdk>/lib/_internal/compiler/js_lib/preambles.");
2077 2077
2078 static const MessageKind EXPERIMENTAL_ASYNC_AWAIT = const MessageKind(
2079 "Experimental language feature 'async/await' is not supported.");
2080
2081 static const MessageKind INVALID_STARRED_KEYWORD = const MessageKind( 2078 static const MessageKind INVALID_STARRED_KEYWORD = const MessageKind(
2082 "Invalid '#{keyword}' keyword.", 2079 "Invalid '#{keyword}' keyword.",
2083 options: const ['--enable-async'], 2080 options: const ['--enable-async'],
2084 howToFix: "Try removing whitespace between '#{keyword}' and '*'.", 2081 howToFix: "Try removing whitespace between '#{keyword}' and '*'.",
2085 examples: const [ 2082 examples: const [
2086 "main() async * {}", 2083 "main() async * {}",
2087 "main() sync * {}", 2084 "main() sync * {}",
2088 "main() async* { yield * 0; }" 2085 "main() async* { yield * 0; }"
2089 ]); 2086 ]);
2090 2087
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
2439 static String convertToString(value) { 2436 static String convertToString(value) {
2440 if (value is ErrorToken) { 2437 if (value is ErrorToken) {
2441 // Shouldn't happen. 2438 // Shouldn't happen.
2442 return value.assertionMessage; 2439 return value.assertionMessage;
2443 } else if (value is Token) { 2440 } else if (value is Token) {
2444 value = value.value; 2441 value = value.value;
2445 } 2442 }
2446 return '$value'; 2443 return '$value';
2447 } 2444 }
2448 } 2445 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698