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

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

Issue 1828543009: First steps toward generating fully linked summaries from ASTs. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/generated/java_core.dart';
6 import 'package:analyzer/src/generated/java_engine.dart';
7 import 'package:analyzer/src/generated/source.dart';
8 import 'package:analyzer/src/generated/utilities_dart.dart'; 5 import 'package:analyzer/src/generated/utilities_dart.dart';
9 import 'package:analyzer/src/summary/format.dart'; 6 import 'package:analyzer/src/summary/format.dart';
10 import 'package:analyzer/src/summary/idl.dart'; 7 import 'package:analyzer/src/summary/idl.dart';
11 import 'package:analyzer/src/summary/name_filter.dart'; 8 import 'package:analyzer/src/summary/name_filter.dart';
12 9
13 /** 10 /**
14 * Create a [LinkedLibraryBuilder] corresponding to the given 11 * Create a [LinkedLibraryBuilder] corresponding to the given
15 * [definingUnit], which should be the defining compilation unit for a library. 12 * [definingUnit], which should be the defining compilation unit for a library.
16 * Compilation units referenced by the defining compilation unit via `part` 13 * Compilation units referenced by the defining compilation unit via `part`
17 * declarations will be retrieved using [getPart]. Public namespaces for 14 * declarations will be retrieved using [getPart]. Public namespaces for
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 */ 506 */
510 String resolveUri(String sourceUri, String relativeUri) { 507 String resolveUri(String sourceUri, String relativeUri) {
511 if (sourceUri == null) { 508 if (sourceUri == null) {
512 return relativeUri; 509 return relativeUri;
513 } else { 510 } else {
514 return resolveRelativeUri(Uri.parse(sourceUri), Uri.parse(relativeUri)) 511 return resolveRelativeUri(Uri.parse(sourceUri), Uri.parse(relativeUri))
515 .toString(); 512 .toString();
516 } 513 }
517 } 514 }
518 } 515 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698