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

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

Issue 2203173002: Use unitMember/classMember/parameter names instead of offsets in index. (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
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/index_unit.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 707
708 /** 708 /**
709 * Each item of this list corresponds to a unique referenced element. It is 709 * Each item of this list corresponds to a unique referenced element. It is
710 * the kind of the synthetic element. 710 * the kind of the synthetic element.
711 */ 711 */
712 @Id(5) 712 @Id(5)
713 List<IndexSyntheticElementKind> get elementKinds; 713 List<IndexSyntheticElementKind> get elementKinds;
714 714
715 /** 715 /**
716 * Each item of this list corresponds to a unique referenced element. It is 716 * Each item of this list corresponds to a unique referenced element. It is
717 * the offset of the element name relative to the beginning of the file. The 717 * the identifier of the class member element name, or `null` if the element i s
718 * list is sorted in ascending order, so that the client can quickly check 718 * a top-level element. The list is sorted in ascending order, so that the
719 * whether an element is referenced in this [PackageIndex]. 719 * client can quickly check whether an element is referenced in this
720 * [PackageIndex].
720 */ 721 */
721 @Id(1) 722 @Id(7)
722 List<int> get elementOffsets; 723 List<int> get elementNameClassMemberIds;
723 724
724 /** 725 /**
725 * Each item of this list corresponds to a unique referenced element. It is 726 * Each item of this list corresponds to a unique referenced element. It is
727 * the identifier of the named parameter name, or `null` if the element is not
728 * a named parameter. The list is sorted in ascending order, so that the
729 * client can quickly check whether an element is referenced in this
730 * [PackageIndex].
731 */
732 @Id(8)
733 List<int> get elementNameParameterIds;
734
735 /**
736 * Each item of this list corresponds to a unique referenced element. It is
737 * the identifier of the top-level element name, or `null` if the element is
738 * the unit. The list is sorted in ascending order, so that the client can
739 * quickly check whether an element is referenced in this [PackageIndex].
740 */
741 @Id(1)
742 List<int> get elementNameUnitMemberIds;
743
744 /**
745 * Each item of this list corresponds to a unique referenced element. It is
726 * the index into [unitLibraryUris] and [unitUnitUris] for the library 746 * the index into [unitLibraryUris] and [unitUnitUris] for the library
727 * specific unit where the element is declared. 747 * specific unit where the element is declared.
728 */ 748 */
729 @Id(0) 749 @Id(0)
730 List<int> get elementUnits; 750 List<int> get elementUnits;
731 751
732 /** 752 /**
733 * List of unique element strings used in this [PackageIndex]. The list is 753 * List of unique element strings used in this [PackageIndex]. The list is
734 * sorted in ascending order, so that the client can quickly check the 754 * sorted in ascending order, so that the client can quickly check the
735 * presence of a string in this [PackageIndex]. 755 * presence of a string in this [PackageIndex].
(...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after
2765 */ 2785 */
2766 @Id(11) 2786 @Id(11)
2767 int get visibleLength; 2787 int get visibleLength;
2768 2788
2769 /** 2789 /**
2770 * If a local variable, the beginning of the visible range; zero otherwise. 2790 * If a local variable, the beginning of the visible range; zero otherwise.
2771 */ 2791 */
2772 @Id(12) 2792 @Id(12)
2773 int get visibleOffset; 2793 int get visibleOffset;
2774 } 2794 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/index_unit.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698