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

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

Issue 2216873003: Add an "api signature" to summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 643
644 /** 644 /**
645 * Summary information about a package. 645 * Summary information about a package.
646 */ 646 */
647 @TopLevel('PBdl') 647 @TopLevel('PBdl')
648 abstract class PackageBundle extends base.SummaryClass { 648 abstract class PackageBundle extends base.SummaryClass {
649 factory PackageBundle.fromBuffer(List<int> buffer) => 649 factory PackageBundle.fromBuffer(List<int> buffer) =>
650 generated.readPackageBundle(buffer); 650 generated.readPackageBundle(buffer);
651 651
652 /** 652 /**
653 * MD5 hash of the non-informative fields of the [PackageBundle] (not
654 * including this one). This can be used to identify when the API of a
655 * package may have changed.
656 */
657 @Id(7)
658 String get apiSignature;
659
660 /**
653 * Linked libraries. 661 * Linked libraries.
654 */ 662 */
655 @Id(0) 663 @Id(0)
656 List<LinkedLibrary> get linkedLibraries; 664 List<LinkedLibrary> get linkedLibraries;
657 665
658 /** 666 /**
659 * The list of URIs of items in [linkedLibraries], e.g. `dart:core` or 667 * The list of URIs of items in [linkedLibraries], e.g. `dart:core` or
660 * `package:foo/bar.dart`. 668 * `package:foo/bar.dart`.
661 */ 669 */
662 @Id(1) 670 @Id(1)
(...skipping 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after
2785 */ 2793 */
2786 @Id(11) 2794 @Id(11)
2787 int get visibleLength; 2795 int get visibleLength;
2788 2796
2789 /** 2797 /**
2790 * If a local variable, the beginning of the visible range; zero otherwise. 2798 * If a local variable, the beginning of the visible range; zero otherwise.
2791 */ 2799 */
2792 @Id(12) 2800 @Id(12)
2793 int get visibleOffset; 2801 int get visibleOffset;
2794 } 2802 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698