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

Unified Diff: pkg/compiler/lib/src/serialization/modelz.dart

Issue 1299413002: Move common identifiers, names and selectors to a separate library. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 4 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/resolution.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/serialization/modelz.dart
diff --git a/pkg/compiler/lib/src/serialization/modelz.dart b/pkg/compiler/lib/src/serialization/modelz.dart
index b39d715ea3587dc746d06872f3da9d40dd30172c..bd28c0e60c955e54c54e0dd2e235be88336a4b42 100644
--- a/pkg/compiler/lib/src/serialization/modelz.dart
+++ b/pkg/compiler/lib/src/serialization/modelz.dart
@@ -1233,6 +1233,14 @@ abstract class TypeDeclarationMixin<T extends GenericType>
List<DartType> _typeVariables;
T _rawType;
T _thisType;
+ Name _memberName;
+
+ Name get memberName {
+ if (_memberName == null) {
+ _memberName = new Name(name, library);
+ }
+ return _memberName;
+ }
void _ensureTypes() {
if (_typeVariables == null) {
@@ -1318,10 +1326,18 @@ class TypeVariableElementZ extends DeserializedElementZ
TypeDeclarationElement _typeDeclaration;
TypeVariableType _type;
DartType _bound;
+ Name _memberName;
TypeVariableElementZ(ObjectDecoder decoder)
: super(decoder);
+ Name get memberName {
+ if (_memberName == null) {
+ _memberName = new Name(name, library);
+ }
+ return _memberName;
+ }
+
@override
ElementKind get kind => ElementKind.TYPE_VARIABLE;
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698