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

Unified Diff: sdk/lib/_internal/compiler/implementation/constant_system.dart

Issue 11368080: Use abstract classes instead of interfaces in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/scanner/token.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/scanner/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698