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

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

Issue 1928783002: Add LibraryElementForLink.isDartCore. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 2764 matching lines...) Expand 10 before | Expand all | Expand 10 after
2775 @override 2775 @override
2776 String get identifier => _absoluteUri.toString(); 2776 String get identifier => _absoluteUri.toString();
2777 2777
2778 @override 2778 @override
2779 List<LibraryElementForLink> get importedLibraries => _importedLibraries ??= 2779 List<LibraryElementForLink> get importedLibraries => _importedLibraries ??=
2780 _linkedLibrary.importDependencies.map(_getDependency).toList(); 2780 _linkedLibrary.importDependencies.map(_getDependency).toList();
2781 2781
2782 @override 2782 @override
2783 bool get isDartAsync => _absoluteUri == 'dart:async'; 2783 bool get isDartAsync => _absoluteUri == 'dart:async';
2784 2784
2785 @override
2786 bool get isDartCore => _absoluteUri == 'dart:core';
2787
2785 /** 2788 /**
2786 * If this library is part of the build unit being linked, return the library 2789 * If this library is part of the build unit being linked, return the library
2787 * cycle it is part of. Otherwise return `null`. 2790 * cycle it is part of. Otherwise return `null`.
2788 */ 2791 */
2789 LibraryCycleForLink get libraryCycleForLink; 2792 LibraryCycleForLink get libraryCycleForLink;
2790 2793
2791 @override 2794 @override
2792 List<UnitElement> get units { 2795 List<UnitElement> get units {
2793 if (_units == null) { 2796 if (_units == null) {
2794 UnlinkedUnit definingUnit = definingUnlinkedUnit; 2797 UnlinkedUnit definingUnit = definingUnlinkedUnit;
(...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after
4360 if (type is InterfaceType) { 4363 if (type is InterfaceType) {
4361 Element result = type.lookUpGetter(name, compilationUnit.library); 4364 Element result = type.lookUpGetter(name, compilationUnit.library);
4362 result ??= type.lookUpMethod(name, compilationUnit.library); 4365 result ??= type.lookUpMethod(name, compilationUnit.library);
4363 return result; 4366 return result;
4364 } 4367 }
4365 } 4368 }
4366 // TODO(scheglov): implement for propagated types 4369 // TODO(scheglov): implement for propagated types
4367 return null; 4370 return null;
4368 } 4371 }
4369 } 4372 }
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