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

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

Issue 1621763002: Use the explicit string 'dynamic' to refer to dynamic in summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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) 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 import 'package:analyzer/src/summary/format.dart'; 5 import 'package:analyzer/src/summary/format.dart';
6 import 'package:analyzer/src/summary/name_filter.dart'; 6 import 'package:analyzer/src/summary/name_filter.dart';
7 7
8 /** 8 /**
9 * Create a [LinkedLibraryBuilder] corresponding to the given 9 * Create a [LinkedLibraryBuilder] corresponding to the given
10 * [definingUnit], which should be the defining compilation unit for a library. 10 * [definingUnit], which should be the defining compilation unit for a library.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 /** 119 /**
120 * Cache of values returned by [getPart]. 120 * Cache of values returned by [getPart].
121 */ 121 */
122 final Map<String, UnlinkedUnit> partCache = <String, UnlinkedUnit>{}; 122 final Map<String, UnlinkedUnit> partCache = <String, UnlinkedUnit>{};
123 123
124 /** 124 /**
125 * Names defined inside the library being prelinked. 125 * Names defined inside the library being prelinked.
126 */ 126 */
127 final Map<String, _Meaning> privateNamespace = <String, _Meaning>{ 127 final Map<String, _Meaning> privateNamespace = <String, _Meaning>{
128 '': new _Meaning(0, ReferenceKind.classOrEnum, 0, 0) 128 'dynamic': new _Meaning(0, ReferenceKind.classOrEnum, 0, 0)
129 }; 129 };
130 130
131 /** 131 /**
132 * List of dependencies of the library being prelinked. This will be output 132 * List of dependencies of the library being prelinked. This will be output
133 * to [LinkedLibrary.dependencies]. 133 * to [LinkedLibrary.dependencies].
134 */ 134 */
135 final List<LinkedDependencyBuilder> dependencies = <LinkedDependencyBuilder>[ 135 final List<LinkedDependencyBuilder> dependencies = <LinkedDependencyBuilder>[
136 new LinkedDependencyBuilder() 136 new LinkedDependencyBuilder()
137 ]; 137 ];
138 138
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 * [sourceUri] is also relative. 444 * [sourceUri] is also relative.
445 */ 445 */
446 String resolveUri(String sourceUri, String relativeUri) { 446 String resolveUri(String sourceUri, String relativeUri) {
447 if (sourceUri == null) { 447 if (sourceUri == null) {
448 return relativeUri; 448 return relativeUri;
449 } else { 449 } else {
450 return Uri.parse(sourceUri).resolve(relativeUri).toString(); 450 return Uri.parse(sourceUri).resolve(relativeUri).toString();
451 } 451 }
452 } 452 }
453 } 453 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.dart ('k') | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698