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

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

Issue 2150473002: Test ImportElement and fix PrefixElementZ.isTopLevel (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | tests/compiler/dart2js/serialization/equivalence_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after
2279 implements PrefixElement { 2279 implements PrefixElement {
2280 bool _isDeferred; 2280 bool _isDeferred;
2281 ImportElement _deferredImport; 2281 ImportElement _deferredImport;
2282 GetterElement _loadLibrary; 2282 GetterElement _loadLibrary;
2283 2283
2284 PrefixElementZ(ObjectDecoder decoder) : super(decoder); 2284 PrefixElementZ(ObjectDecoder decoder) : super(decoder);
2285 2285
2286 @override 2286 @override
2287 accept(ElementVisitor visitor, arg) => visitor.visitPrefixElement(this, arg); 2287 accept(ElementVisitor visitor, arg) => visitor.visitPrefixElement(this, arg);
2288 2288
2289 @override
2290 bool get isTopLevel => false;
2291
2289 void _ensureDeferred() { 2292 void _ensureDeferred() {
2290 if (_isDeferred == null) { 2293 if (_isDeferred == null) {
2291 _isDeferred = _decoder.getBool(Key.IS_DEFERRED); 2294 _isDeferred = _decoder.getBool(Key.IS_DEFERRED);
2292 if (_isDeferred) { 2295 if (_isDeferred) {
2293 _deferredImport = _decoder.getElement(Key.IMPORT); 2296 _deferredImport = _decoder.getElement(Key.IMPORT);
2294 _loadLibrary = _decoder.getElement(Key.GETTER); 2297 _loadLibrary = _decoder.getElement(Key.GETTER);
2295 } 2298 }
2296 } 2299 }
2297 } 2300 }
2298 2301
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 } 2339 }
2337 2340
2338 @override 2341 @override
2339 Node get node => throw new UnsupportedError('${this}.node'); 2342 Node get node => throw new UnsupportedError('${this}.node');
2340 2343
2341 @override 2344 @override
2342 bool get hasNode => false; 2345 bool get hasNode => false;
2343 2346
2344 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})'; 2347 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})';
2345 } 2348 }
OLDNEW
« no previous file with comments | « no previous file | tests/compiler/dart2js/serialization/equivalence_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698