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

Unified Diff: pkg/analyzer2dart/lib/src/modely.dart

Issue 1115183002: Add ConstantConstructor to ConstantExpression system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 5 years, 7 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 | pkg/compiler/lib/src/closure.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer2dart/lib/src/modely.dart
diff --git a/pkg/analyzer2dart/lib/src/modely.dart b/pkg/analyzer2dart/lib/src/modely.dart
index 640680fc9c624cdd135ffdfd74f2cf793e267ab6..014bcc96cc5f88a623abf777c3431cd6c7216238 100644
--- a/pkg/analyzer2dart/lib/src/modely.dart
+++ b/pkg/analyzer2dart/lib/src/modely.dart
@@ -420,7 +420,7 @@ class LocalFunctionElementY extends ElementY
}
class ParameterElementY extends ElementY
- with AnalyzableElementY, AstElementY
+ with AnalyzableElementY, AstElementY, VariableElementMixin
implements dart2js.ParameterElement {
analyzer.ParameterElement get element => super.element;
@@ -459,12 +459,6 @@ class ParameterElementY extends ElementY
get functionDeclaration => unsupported('functionDeclaration');
@override
- get initializer => unsupported('initializer');
-
- @override
- get memberContext => unsupported('memberContext');
-
- @override
get functionSignature => unsupported('functionSignature');
}
@@ -718,6 +712,9 @@ abstract class VariableElementMixin
@override
get memberContext => unsupported('memberContext');
+
+ @override
+ get constant => unsupported('constant');
}
class TopLevelVariableElementY extends ElementY
@@ -861,6 +858,14 @@ class ConstructorElementY extends ElementY
@override
get nestedClosures => unsupported('nestedClosures');
+
+ @override
+ get constantConstructor => unsupported('constantConstructor');
+
+ @override
+ get isFromEnvironmentConstructor {
+ unsupported('isFromEnvironmentConstructor');
+ }
}
class InstanceMethodElementY extends ElementY
« no previous file with comments | « no previous file | pkg/compiler/lib/src/closure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698