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

Side by Side Diff: pkg/analyzer/lib/src/summary/link.dart

Issue 1888873004: Add LibraryElementForLink.isDartAsync. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | pkg/analyzer/test/src/summary/linker_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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 /** 5 /**
6 * This library is capable of producing linked summaries from unlinked 6 * This library is capable of producing linked summaries from unlinked
7 * ones (or prelinked ones). It functions by building a miniature 7 * ones (or prelinked ones). It functions by building a miniature
8 * element model to represent the contents of the summaries, and then 8 * element model to represent the contents of the summaries, and then
9 * scanning the element model to gather linked information and adding 9 * scanning the element model to gather linked information and adding
10 * it to the summary data structures. 10 * it to the summary data structures.
(...skipping 2687 matching lines...) Expand 10 before | Expand all | Expand 10 after
2698 List<LibraryElementForLink> get exportedLibraries => _exportedLibraries ??= 2698 List<LibraryElementForLink> get exportedLibraries => _exportedLibraries ??=
2699 _linkedLibrary.exportDependencies.map(_getDependency).toList(); 2699 _linkedLibrary.exportDependencies.map(_getDependency).toList();
2700 2700
2701 @override 2701 @override
2702 String get identifier => _absoluteUri.toString(); 2702 String get identifier => _absoluteUri.toString();
2703 2703
2704 @override 2704 @override
2705 List<LibraryElementForLink> get importedLibraries => _importedLibraries ??= 2705 List<LibraryElementForLink> get importedLibraries => _importedLibraries ??=
2706 _linkedLibrary.importDependencies.map(_getDependency).toList(); 2706 _linkedLibrary.importDependencies.map(_getDependency).toList();
2707 2707
2708 @override
2709 bool get isDartAsync => _absoluteUri == 'dart:async';
2710
2708 /** 2711 /**
2709 * If this library is part of the build unit being linked, return the library 2712 * If this library is part of the build unit being linked, return the library
2710 * cycle it is part of. Otherwise return `null`. 2713 * cycle it is part of. Otherwise return `null`.
2711 */ 2714 */
2712 LibraryCycleForLink get libraryCycleForLink; 2715 LibraryCycleForLink get libraryCycleForLink;
2713 2716
2714 @override 2717 @override
2715 List<UnitElement> get units { 2718 List<UnitElement> get units {
2716 if (_units == null) { 2719 if (_units == null) {
2717 UnlinkedUnit definingUnit = definingUnlinkedUnit; 2720 UnlinkedUnit definingUnit = definingUnlinkedUnit;
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
4073 List<int> implicitFunctionTypeIndices) => 4076 List<int> implicitFunctionTypeIndices) =>
4074 DynamicTypeImpl.instance; 4077 DynamicTypeImpl.instance;
4075 4078
4076 ReferenceableElementForLink getContainedName(String name) { 4079 ReferenceableElementForLink getContainedName(String name) {
4077 return new NonstaticMemberElementForLink(_constNode); 4080 return new NonstaticMemberElementForLink(_constNode);
4078 } 4081 }
4079 4082
4080 @override 4083 @override
4081 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 4084 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
4082 } 4085 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/linker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698