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

Unified Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 1048463002: Issue 22279. Tweak constants evaluation error messages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/error.dart
diff --git a/pkg/analyzer/lib/src/generated/error.dart b/pkg/analyzer/lib/src/generated/error.dart
index 9ff7fa198c1c0e91302541dd4adca964eb101b9c..ec087bf69943428ec53e7ccc572fde899a2b51f7 100644
--- a/pkg/analyzer/lib/src/generated/error.dart
+++ b/pkg/analyzer/lib/src/generated/error.dart
@@ -704,8 +704,8 @@ class CompileTimeErrorCode extends ErrorCode {
* value.
*/
static const CompileTimeErrorCode CONST_EVAL_TYPE_BOOL =
- const CompileTimeErrorCode(
- 'CONST_EVAL_TYPE_BOOL', "An expression of type 'bool' was expected");
+ const CompileTimeErrorCode('CONST_EVAL_TYPE_BOOL',
+ "In constant expressions operand(s) of this operator must be of type 'bool'");
Brian Wilkerson 2015/03/28 02:35:33 I'd change "expressions" --> "expressions," but ot
scheglov 2015/03/28 03:09:15 Done.
/**
* 12.11.2 Const: An expression of one of the forms e1 == e2 or e1 != e2 where
@@ -714,7 +714,7 @@ class CompileTimeErrorCode extends ErrorCode {
*/
static const CompileTimeErrorCode CONST_EVAL_TYPE_BOOL_NUM_STRING =
const CompileTimeErrorCode('CONST_EVAL_TYPE_BOOL_NUM_STRING',
- "An expression of type 'bool', 'num', 'String' or 'null' was expected");
+ "In constant expressions operands of this operator must be of type 'bool', 'num', 'String' or 'null'");
/**
* 12.11.2 Const: An expression of one of the forms ~e, e1 ^ e2, e1 & e2,
@@ -722,8 +722,8 @@ class CompileTimeErrorCode extends ErrorCode {
* that evaluate to an integer value or to null.
*/
static const CompileTimeErrorCode CONST_EVAL_TYPE_INT =
- const CompileTimeErrorCode(
- 'CONST_EVAL_TYPE_INT', "An expression of type 'int' was expected");
+ const CompileTimeErrorCode('CONST_EVAL_TYPE_INT',
+ "In constant expressions operand(s) of this operator must be of type 'int'");
/**
* 12.11.2 Const: An expression of one of the forms e, e1 + e2, e1 - e2, e1 *
@@ -732,8 +732,8 @@ class CompileTimeErrorCode extends ErrorCode {
* value or to null.
*/
static const CompileTimeErrorCode CONST_EVAL_TYPE_NUM =
- const CompileTimeErrorCode(
- 'CONST_EVAL_TYPE_NUM', "An expression of type 'num' was expected");
+ const CompileTimeErrorCode('CONST_EVAL_TYPE_NUM',
+ "In constant expressions operand(s) of this operator must be of type 'num'");
/**
* 12.11.2 Const: It is a compile-time error if evaluation of a constant
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698