Index: pkg/fletchc/lib/src/fletch_constants.dart |
diff --git a/pkg/fletchc/lib/src/fletch_constants.dart b/pkg/fletchc/lib/src/fletch_constants.dart |
index d6744a9a232d36db210ab69ffb14d7aa7ae5d982..9e183ef7e4338c2a4ccd362bbec97cd397b688d8 100644 |
--- a/pkg/fletchc/lib/src/fletch_constants.dart |
+++ b/pkg/fletchc/lib/src/fletch_constants.dart |
@@ -60,3 +60,23 @@ class FletchClassConstant extends ConstantValue { |
return 'FletchClassConstant($classId)'; |
} |
} |
+ |
+class FletchClassInstanceConstant extends ConstantValue { |
ahe
2015/04/07 15:00:11
Why is this needed?
Anders Johnsen
2015/04/08 06:32:14
Because we create artificial constants, not presen
|
+ final int classId; |
+ |
+ FletchClassInstanceConstant(this.classId); |
+ |
+ DartType getType(CoreTypes types) => const DynamicType(); |
+ |
+ List<ConstantValue> getDependencies() => const <ConstantValue>[]; |
+ |
+ accept(visitor, arg) { |
+ throw new UnsupportedError("FletchClassInstanceConstant.accept"); |
+ } |
+ |
+ String unparse() => toStructuredString(); |
+ |
+ String toStructuredString() { |
+ return 'FletchClassInstanceConstant($classId)'; |
+ } |
+} |