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

Side by Side Diff: pkg/analysis_server/lib/src/services/index/index.dart

Issue 1371463002: Record HAS_ANCESTOR relations into index. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | pkg/analysis_server/lib/src/services/index/index_contributor.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library services.index; 5 library services.index;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/analysis/index_core.dart'; 9 import 'package:analysis_server/analysis/index_core.dart';
10 import 'package:analysis_server/src/services/index/indexable_element.dart'; 10 import 'package:analysis_server/src/services/index/indexable_element.dart';
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 /** 136 /**
137 * Left: the Universe or a Library. 137 * Left: the Universe or a Library.
138 * Defines an Element. 138 * Defines an Element.
139 * Right: an Element declaration. 139 * Right: an Element declaration.
140 */ 140 */
141 static final RelationshipImpl DEFINES = 141 static final RelationshipImpl DEFINES =
142 RelationshipImpl.getRelationship("defines"); 142 RelationshipImpl.getRelationship("defines");
143 143
144 /** 144 /**
145 * Left: class. 145 * Left: class.
146 * Has ancestor (extended or implemented, directly or indirectly).
147 * Right: other class declaration.
148 */
149 static final RelationshipImpl HAS_ANCESTOR =
150 RelationshipImpl.getRelationship("has-ancestor");
151
152 /**
153 * Left: class.
146 * Is extended by. 154 * Is extended by.
147 * Right: other class declaration. 155 * Right: other class declaration.
148 */ 156 */
149 static final RelationshipImpl IS_EXTENDED_BY = 157 static final RelationshipImpl IS_EXTENDED_BY =
150 RelationshipImpl.getRelationship("is-extended-by"); 158 RelationshipImpl.getRelationship("is-extended-by");
151 159
152 /** 160 /**
153 * Left: class. 161 * Left: class.
154 * Is implemented by. 162 * Is implemented by.
155 * Right: other class declaration. 163 * Right: other class declaration.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 */ 360 */
353 static RelationshipImpl getRelationship(String identifier) { 361 static RelationshipImpl getRelationship(String identifier) {
354 RelationshipImpl relationship = _RELATIONSHIP_MAP[identifier]; 362 RelationshipImpl relationship = _RELATIONSHIP_MAP[identifier];
355 if (relationship == null) { 363 if (relationship == null) {
356 relationship = new RelationshipImpl(identifier); 364 relationship = new RelationshipImpl(identifier);
357 _RELATIONSHIP_MAP[identifier] = relationship; 365 _RELATIONSHIP_MAP[identifier] = relationship;
358 } 366 }
359 return relationship; 367 return relationship;
360 } 368 }
361 } 369 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/index/index_contributor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698