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

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

Issue 2632643002: Remove LibraryEntity.libraryName (Closed)
Patch Set: 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 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 411
412 LibraryElementZ(ObjectDecoder decoder) : super(decoder); 412 LibraryElementZ(ObjectDecoder decoder) : super(decoder);
413 413
414 @override 414 @override
415 ElementKind get kind => ElementKind.LIBRARY; 415 ElementKind get kind => ElementKind.LIBRARY;
416 416
417 @override 417 @override
418 Element get enclosingElement => null; 418 Element get enclosingElement => null;
419 419
420 @override 420 @override
421 String get name => entryCompilationUnit.name; 421 String get name => hasLibraryName ? libraryName : entryCompilationUnit.name;
422 422
423 @override 423 @override
424 SourceSpan get sourcePosition => entryCompilationUnit.sourcePosition; 424 SourceSpan get sourcePosition => entryCompilationUnit.sourcePosition;
425 425
426 @override 426 @override
427 accept(ElementVisitor visitor, arg) { 427 accept(ElementVisitor visitor, arg) {
428 return visitor.visitLibraryElement(this, arg); 428 return visitor.visitLibraryElement(this, arg);
429 } 429 }
430 430
431 @override 431 @override
(...skipping 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after
2406 } 2406 }
2407 2407
2408 @override 2408 @override
2409 Node get node => throw new UnsupportedError('${this}.node'); 2409 Node get node => throw new UnsupportedError('${this}.node');
2410 2410
2411 @override 2411 @override
2412 bool get hasNode => false; 2412 bool get hasNode => false;
2413 2413
2414 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})'; 2414 String toString() => 'MetadataAnnotationZ(${constant.toDartText()})';
2415 } 2415 }
OLDNEW
« pkg/compiler/lib/src/elements/modelx.dart ('K') | « pkg/compiler/lib/src/elements/names.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698