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

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

Issue 2700843002: Use absolute URIs for LinkedDependency.uri/parts. (Closed)
Patch Set: Created 3 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 file is an "idl" style description of the summary format. It 6 * This file is an "idl" style description of the summary format. It
7 * contains abstract classes which declare the interface for reading data from 7 * contains abstract classes which declare the interface for reading data from
8 * summaries. It is parsed and transformed into code that implements the 8 * summaries. It is parsed and transformed into code that implements the
9 * summary format. 9 * summary format.
10 * 10 *
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 */ 589 */
590 unit 590 unit
591 } 591 }
592 592
593 /** 593 /**
594 * Information about a dependency that exists between one library and another 594 * Information about a dependency that exists between one library and another
595 * due to an "import" declaration. 595 * due to an "import" declaration.
596 */ 596 */
597 abstract class LinkedDependency extends base.SummaryClass { 597 abstract class LinkedDependency extends base.SummaryClass {
598 /** 598 /**
599 * URI for the compilation units listed in the library's `part` declarations. 599 * Absolute URI for the compilation units listed in the library's `part`
600 * These URIs are relative to the importing library. 600 * declarations, empty string for invalid URI.
601 */ 601 */
602 @Id(1) 602 @Id(1)
603 List<String> get parts; 603 List<String> get parts;
604 604
605 /** 605 /**
606 * The relative URI of the dependent library. This URI is relative to the 606 * The absolute URI of the dependent library, e.g. `package:foo/bar.dart`.
607 * importing library, even if there are intervening `export` declarations.
608 * So, for example, if `a.dart` imports `b/c.dart` and `b/c.dart` exports
609 * `d/e.dart`, the URI listed for `a.dart`'s dependency on `e.dart` will be
610 * `b/d/e.dart`.
611 */ 607 */
612 @Id(0) 608 @Id(0)
613 String get uri; 609 String get uri;
614 } 610 }
615 611
616 /** 612 /**
617 * Information about a single name in the export namespace of the library that 613 * Information about a single name in the export namespace of the library that
618 * is not in the public namespace. 614 * is not in the public namespace.
619 */ 615 */
620 abstract class LinkedExportName extends base.SummaryClass { 616 abstract class LinkedExportName extends base.SummaryClass {
(...skipping 2577 matching lines...) Expand 10 before | Expand all | Expand 10 after
3198 @Id(11) 3194 @Id(11)
3199 int get visibleLength; 3195 int get visibleLength;
3200 3196
3201 /** 3197 /**
3202 * If a local variable, the beginning of the visible range; zero otherwise. 3198 * If a local variable, the beginning of the visible range; zero otherwise.
3203 */ 3199 */
3204 @informative 3200 @informative
3205 @Id(12) 3201 @Id(12)
3206 int get visibleOffset; 3202 int get visibleOffset;
3207 } 3203 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698