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

Side by Side Diff: pkg/analysis_server/lib/src/protocol.dart

Issue 582453002: Index and search of import prefixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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 protocol; 5 library protocol;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:analysis_server/src/computer/element.dart' show 10 import 'package:analysis_server/src/computer/element.dart' show
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } 228 }
229 if (kind == engine.ElementKind.LOCAL_VARIABLE) { 229 if (kind == engine.ElementKind.LOCAL_VARIABLE) {
230 return ElementKind.LOCAL_VARIABLE; 230 return ElementKind.LOCAL_VARIABLE;
231 } 231 }
232 if (kind == engine.ElementKind.METHOD) { 232 if (kind == engine.ElementKind.METHOD) {
233 return ElementKind.METHOD; 233 return ElementKind.METHOD;
234 } 234 }
235 if (kind == engine.ElementKind.PARAMETER) { 235 if (kind == engine.ElementKind.PARAMETER) {
236 return ElementKind.PARAMETER; 236 return ElementKind.PARAMETER;
237 } 237 }
238 if (kind == engine.ElementKind.PREFIX) {
239 return ElementKind.PREFIX;
240 }
238 if (kind == engine.ElementKind.SETTER) { 241 if (kind == engine.ElementKind.SETTER) {
239 return ElementKind.SETTER; 242 return ElementKind.SETTER;
240 } 243 }
241 if (kind == engine.ElementKind.TOP_LEVEL_VARIABLE) { 244 if (kind == engine.ElementKind.TOP_LEVEL_VARIABLE) {
242 return ElementKind.TOP_LEVEL_VARIABLE; 245 return ElementKind.TOP_LEVEL_VARIABLE;
243 } 246 }
244 if (kind == engine.ElementKind.TYPE_PARAMETER) { 247 if (kind == engine.ElementKind.TYPE_PARAMETER) {
245 return ElementKind.TYPE_PARAMETER; 248 return ElementKind.TYPE_PARAMETER;
246 } 249 }
247 return ElementKind.UNKNOWN; 250 return ElementKind.UNKNOWN;
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); 1014 hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
1012 hash = hash ^ (hash >> 11); 1015 hash = hash ^ (hash >> 11);
1013 return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); 1016 return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
1014 } 1017 }
1015 1018
1016 static int hash2(a, b) => finish(combine(combine(0, a), b)); 1019 static int hash2(a, b) => finish(combine(combine(0, a), b));
1017 1020
1018 static int hash4(a, b, c, d) => 1021 static int hash4(a, b, c, d) =>
1019 finish(combine(combine(combine(combine(0, a), b), c), d)); 1022 finish(combine(combine(combine(combine(0, a), b), c), d));
1020 } 1023 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/generated_protocol.dart ('k') | pkg/analysis_server/lib/src/search/element_references.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698