| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |