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

Side by Side Diff: pkg/compiler/lib/src/serialization/modelz.dart

Issue 2034973003: Handle deferred access of unserialized code. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Implementation of the element model used for deserialiation. 5 /// Implementation of the element model used for deserialiation.
6 /// 6 ///
7 /// These classes are created by [ElementDeserializer] triggered by the 7 /// These classes are created by [ElementDeserializer] triggered by the
8 /// [Deserializer]. 8 /// [Deserializer].
9 9
10 library dart2js.serialization.modelz; 10 library dart2js.serialization.modelz;
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 } 475 }
476 476
477 @override 477 @override
478 void forEachImport(f(Element element)) { 478 void forEachImport(f(Element element)) {
479 _ensureImports(); 479 _ensureImports();
480 _importsMap.forEach(f); 480 _importsMap.forEach(f);
481 } 481 }
482 482
483 @override 483 @override
484 Iterable<ImportElement> getImportsFor(Element element) { 484 Iterable<ImportElement> getImportsFor(Element element) {
485 return _unsupported('getImportsFor'); 485 // TODO(johnniwinther): Serialize this to support deferred access to
486 // serialized entities.
487 return <ImportElement>[];
486 } 488 }
487 489
488 String toString() { 490 String toString() {
489 return 'Zlibrary(${canonicalUri})'; 491 return 'Zlibrary(${canonicalUri})';
490 } 492 }
491 493
492 @override 494 @override
493 Iterable<ExportElement> get exports { 495 Iterable<ExportElement> get exports {
494 if (_exports == null) { 496 if (_exports == null) {
495 _exports = _decoder.getElements(Key.EXPORTS, isOptional: true); 497 _exports = _decoder.getElements(Key.EXPORTS, isOptional: true);
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 } 1329 }
1328 1330
1329 @override 1331 @override
1330 PrefixElement get redirectionDeferredPrefix { 1332 PrefixElement get redirectionDeferredPrefix {
1331 _ensureRedirection(); 1333 _ensureRedirection();
1332 return _redirectionDeferredPrefix; 1334 return _redirectionDeferredPrefix;
1333 } 1335 }
1334 } 1336 }
1335 1337
1336 class ForwardingConstructorElementZ extends ElementZ 1338 class ForwardingConstructorElementZ extends ElementZ
1337 with AnalyzableElementMixin, AstElementMixinZ 1339 with
1338 implements ConstructorElement { 1340 AnalyzableElementMixin,
1341 AstElementMixinZ
1342 implements
1343 ConstructorElement,
1344 // TODO(johnniwinther): Sort out whether a constructor is a method.
1345 MethodElement {
1339 final MixinApplicationElement enclosingClass; 1346 final MixinApplicationElement enclosingClass;
1340 final ConstructorElement definingConstructor; 1347 final ConstructorElement definingConstructor;
1341 1348
1342 ForwardingConstructorElementZ(this.enclosingClass, this.definingConstructor); 1349 ForwardingConstructorElementZ(this.enclosingClass, this.definingConstructor);
1343 1350
1344 @override 1351 @override
1345 CompilationUnitElement get compilationUnit => enclosingClass.compilationUnit; 1352 CompilationUnitElement get compilationUnit => enclosingClass.compilationUnit;
1346 1353
1347 @override 1354 @override
1348 accept(ElementVisitor visitor, arg) { 1355 accept(ElementVisitor visitor, arg) {
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
2246 } 2253 }
2247 2254
2248 @override 2255 @override
2249 ElementKind get kind => ElementKind.PREFIX; 2256 ElementKind get kind => ElementKind.PREFIX;
2250 2257
2251 @override 2258 @override
2252 Element lookupLocalMember(String memberName) { 2259 Element lookupLocalMember(String memberName) {
2253 return _unsupported('lookupLocalMember'); 2260 return _unsupported('lookupLocalMember');
2254 } 2261 }
2255 } 2262 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/equivalence.dart ('k') | pkg/compiler/lib/src/serialization/system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698