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/prelink.dart

Issue 1667723002: Use summary IDL file for interface classes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/idl.dart';
6 import 'package:analyzer/src/summary/name_filter.dart'; 7 import 'package:analyzer/src/summary/name_filter.dart';
7 8
8 /** 9 /**
9 * Create a [LinkedLibraryBuilder] corresponding to the given 10 * Create a [LinkedLibraryBuilder] corresponding to the given
10 * [definingUnit], which should be the defining compilation unit for a library. 11 * [definingUnit], which should be the defining compilation unit for a library.
11 * Compilation units referenced by the defining compilation unit via `part` 12 * Compilation units referenced by the defining compilation unit via `part`
12 * declarations will be retrieved using [getPart]. Public namespaces for 13 * declarations will be retrieved using [getPart]. Public namespaces for
13 * libraries referenced by the defining compilation unit via `import` 14 * libraries referenced by the defining compilation unit via `import`
14 * declarations (and files reachable from them via `part` and `export` 15 * declarations (and files reachable from them via `part` and `export`
15 * declarations) will be retrieved using [getImport]. 16 * declarations) will be retrieved using [getImport].
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 * [sourceUri] is also relative. 500 * [sourceUri] is also relative.
500 */ 501 */
501 String resolveUri(String sourceUri, String relativeUri) { 502 String resolveUri(String sourceUri, String relativeUri) {
502 if (sourceUri == null) { 503 if (sourceUri == null) {
503 return relativeUri; 504 return relativeUri;
504 } else { 505 } else {
505 return Uri.parse(sourceUri).resolve(relativeUri).toString(); 506 return Uri.parse(sourceUri).resolve(relativeUri).toString();
506 } 507 }
507 } 508 }
508 } 509 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/name_filter.dart ('k') | pkg/analyzer/lib/src/summary/public_namespace_computer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698