| Index: sdk/lib/_internal/compiler/implementation/constant_system.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/constant_system.dart (revision 17016)
|
| +++ sdk/lib/_internal/compiler/implementation/constant_system.dart (working copy)
|
| @@ -48,6 +48,8 @@
|
| BinaryOperation get subtract;
|
| BinaryOperation get truncatingDivide;
|
|
|
| + const ConstantSystem();
|
| +
|
| Constant createInt(int i);
|
| Constant createDouble(double d);
|
| // We need a diagnostic node to report errors in case the string is malformed.
|
| @@ -69,4 +71,10 @@
|
| bool isBool(Constant constant);
|
| /** Returns true if the [constant] is null at runtime. */
|
| bool isNull(Constant constant);
|
| +
|
| + Operation lookupUnary(SourceString operator) {
|
| + if (operator == const SourceString('-')) return negate;
|
| + if (operator == const SourceString('~')) return bitNot;
|
| + return null;
|
| + }
|
| }
|
|
|