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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 45143003: Implement JS_INTERCEPTOR_CONSTANT (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 = ""; 7 const DONT_KNOW_HOW_TO_FIX = "";
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 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 "'#{constructorName}'."); 1445 "'#{constructorName}'.");
1446 1446
1447 static const MessageKind PATCH_NON_FUNCTION = const MessageKind( 1447 static const MessageKind PATCH_NON_FUNCTION = const MessageKind(
1448 "Error: Cannot patch non-function with function patch " 1448 "Error: Cannot patch non-function with function patch "
1449 "'#{functionName}'."); 1449 "'#{functionName}'.");
1450 1450
1451 ////////////////////////////////////////////////////////////////////////////// 1451 //////////////////////////////////////////////////////////////////////////////
1452 // Patch errors end. 1452 // Patch errors end.
1453 ////////////////////////////////////////////////////////////////////////////// 1453 //////////////////////////////////////////////////////////////////////////////
1454 1454
1455 static const MessageKind WRONG_ARGUMENT_FOR_JS_INTERCEPTOR_CONSTANT =
ahe 2013/10/29 15:23:07 I'd remove this message and use MessageKind.GENERI
sra1 2013/10/29 18:00:47 I decided to keep it since there are multiple refe
1456 const MessageKind(
1457 "Error: Argument for 'JS_INTERCEPTOR_CONSTANT' must be a type constant.");
1458
1455 toString() => template; 1459 toString() => template;
1456 1460
1457 Message message([Map arguments = const {}, bool terse = false]) { 1461 Message message([Map arguments = const {}, bool terse = false]) {
1458 return new Message(this, arguments, terse); 1462 return new Message(this, arguments, terse);
1459 } 1463 }
1460 1464
1461 CompilationError error([Map arguments = const {}, bool terse = false]) { 1465 CompilationError error([Map arguments = const {}, bool terse = false]) {
1462 return new CompilationError(this, arguments, terse); 1466 return new CompilationError(this, arguments, terse);
1463 } 1467 }
1464 1468
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 1538
1535 class CompileTimeConstantError extends Diagnostic { 1539 class CompileTimeConstantError extends Diagnostic {
1536 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) 1540 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse)
1537 : super(kind, arguments, terse); 1541 : super(kind, arguments, terse);
1538 } 1542 }
1539 1543
1540 class CompilationError extends Diagnostic { 1544 class CompilationError extends Diagnostic {
1541 CompilationError(MessageKind kind, Map arguments, bool terse) 1545 CompilationError(MessageKind kind, Map arguments, bool terse)
1542 : super(kind, arguments, terse); 1546 : super(kind, arguments, terse);
1543 } 1547 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698