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

Unified Diff: pkg/compiler/lib/src/resolution/enum_creator.dart

Issue 2603263002: Prefix resolution_types with Resolution. (Closed)
Patch Set: Rebased Created 3 years, 11 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 | « pkg/compiler/lib/src/resolution/constructors.dart ('k') | pkg/compiler/lib/src/resolution/member_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/enum_creator.dart
diff --git a/pkg/compiler/lib/src/resolution/enum_creator.dart b/pkg/compiler/lib/src/resolution/enum_creator.dart
index d525e2a7832cd78a012037fc67642ba30c88fcd3..5fd1a68132ea447495b78fc21888bf0f40cc3b97 100644
--- a/pkg/compiler/lib/src/resolution/enum_creator.dart
+++ b/pkg/compiler/lib/src/resolution/enum_creator.dart
@@ -206,13 +206,14 @@ class EnumCreator {
void createMembers() {
Enum node = enumClass.node;
- InterfaceType enumType = enumClass.thisType;
+ ResolutionInterfaceType enumType = enumClass.thisType;
AstBuilder builder = new AstBuilder(enumClass.position.charOffset);
- InterfaceType intType = commonElements.intType;
- InterfaceType stringType = commonElements.stringType;
+ ResolutionInterfaceType intType = commonElements.intType;
+ ResolutionInterfaceType stringType = commonElements.stringType;
- EnumFieldElementX addInstanceMember(String name, InterfaceType type) {
+ EnumFieldElementX addInstanceMember(
+ String name, ResolutionInterfaceType type) {
Identifier identifier = builder.identifier(name);
VariableList variableList =
new VariableList(builder.modifiers(isFinal: true));
@@ -243,8 +244,8 @@ class EnumCreator {
FunctionSignatureX constructorSignature = new FunctionSignatureX(
requiredParameters: [indexFormal],
requiredParameterCount: 1,
- type: new FunctionType(
- constructor, const DynamicType(), <DartType>[intType]));
+ type: new ResolutionFunctionType(constructor,
+ const ResolutionDynamicType(), <ResolutionDartType>[intType]));
constructor.functionSignature = constructorSignature;
enumClass.addMember(constructor, reporter);
@@ -308,8 +309,8 @@ class EnumCreator {
EnumMethodElementX toString = new EnumMethodElementX(
'toString', enumClass, Modifiers.EMPTY, toStringNode);
- FunctionSignatureX toStringSignature =
- new FunctionSignatureX(type: new FunctionType(toString, stringType));
+ FunctionSignatureX toStringSignature = new FunctionSignatureX(
+ type: new ResolutionFunctionType(toString, stringType));
toString.functionSignature = toStringSignature;
enumClass.addMember(toString, reporter);
« no previous file with comments | « pkg/compiler/lib/src/resolution/constructors.dart ('k') | pkg/compiler/lib/src/resolution/member_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698