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

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

Issue 1244473002: dart2js: Fix check for support of reflection. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2506 matching lines...) Expand 10 before | Expand all | Expand 10 after
2517 * 2517 *
2518 * You can disable this message by using the --enable-experimental-mirrors 2518 * You can disable this message by using the --enable-experimental-mirrors
2519 * command-line flag. 2519 * command-line flag.
2520 * 2520 *
2521 * To learn what to do next, please visit: 2521 * To learn what to do next, please visit:
2522 * http://dartlang.org/dart2js-reflection 2522 * http://dartlang.org/dart2js-reflection
2523 **************************************************************** 2523 ****************************************************************
2524 '''); 2524 ''');
2525 2525
2526 2526
2527 static const MessageKind MIRRORS_LIBRARY_NEW_EMITTER = 2527 static const MessageKind MIRRORS_LIBRARY_NOT_SUPPORT_BY_BACKEND =
2528 const MessageKind( 2528 const MessageKind(
2529 "dart:mirrors library is not supported when using the new emitter " 2529 "dart:mirrors library is not supported when using this backend.");
Johnni Winther 2015/07/16 18:14:29 Which backend? Can you provide more info and maybe
floitsch 2015/07/17 13:16:19 I wondered. (After all I removed the old one). I t
2530 "(DART_VM_OPTIONS='-Ddart2js.use.new.emitter=true')");
2531 2530
2532 static const MessageKind CALL_NOT_SUPPORTED_ON_NATIVE_CLASS = 2531 static const MessageKind CALL_NOT_SUPPORTED_ON_NATIVE_CLASS =
2533 const MessageKind( 2532 const MessageKind(
2534 "Non-supported 'call' member on a native class, or a " 2533 "Non-supported 'call' member on a native class, or a "
2535 "subclass of a native class."); 2534 "subclass of a native class.");
2536 2535
2537 static const MessageKind DIRECTLY_THROWING_NSM = 2536 static const MessageKind DIRECTLY_THROWING_NSM =
2538 const MessageKind( 2537 const MessageKind(
2539 "This 'noSuchMethod' implementation is guaranteed to throw an " 2538 "This 'noSuchMethod' implementation is guaranteed to throw an "
2540 "exception. The generated code will be smaller if it is " 2539 "exception. The generated code will be smaller if it is "
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
2611 static String convertToString(value) { 2610 static String convertToString(value) {
2612 if (value is ErrorToken) { 2611 if (value is ErrorToken) {
2613 // Shouldn't happen. 2612 // Shouldn't happen.
2614 return value.assertionMessage; 2613 return value.assertionMessage;
2615 } else if (value is Token) { 2614 } else if (value is Token) {
2616 value = value.value; 2615 value = value.value;
2617 } 2616 }
2618 return '$value'; 2617 return '$value';
2619 } 2618 }
2620 } 2619 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698