| Index: sdk/lib/_internal/compiler/implementation/constant_system.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/constant_system.dart b/sdk/lib/_internal/compiler/implementation/constant_system.dart
|
| index 566c673a3ab0d5ec357fb64d36fb35438a88e6b0..91808d461648abcc9c17bb074936c811e5dfb1bb 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/constant_system.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/constant_system.dart
|
| @@ -4,18 +4,18 @@
|
|
|
| part of dart2js;
|
|
|
| -interface Operation {
|
| - final SourceString name;
|
| +abstract class Operation {
|
| + SourceString get name;
|
| bool isUserDefinable();
|
| }
|
|
|
| -interface UnaryOperation extends Operation {
|
| +abstract class UnaryOperation extends Operation {
|
| /** Returns [:null:] if it was unable to fold the operation. */
|
| Constant fold(Constant constant);
|
| apply(value);
|
| }
|
|
|
| -interface BinaryOperation extends Operation {
|
| +abstract class BinaryOperation extends Operation {
|
| /** Returns [:null:] if it was unable to fold the operation. */
|
| Constant fold(Constant left, Constant right);
|
| apply(left, right);
|
| @@ -24,7 +24,7 @@ interface BinaryOperation extends Operation {
|
| /**
|
| * A [ConstantSystem] is responsible for creating constants and folding them.
|
| */
|
| -interface ConstantSystem {
|
| +abstract class ConstantSystem {
|
| BinaryOperation get add;
|
| BinaryOperation get bitAnd;
|
| UnaryOperation get bitNot;
|
|
|