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

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

Issue 530033002: Use a more precise type for "object" in analysis server API. (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
11 elementFromEngine; 11 elementFromEngine;
12 import 'package:analysis_server/src/search/search_result.dart' show 12 import 'package:analysis_server/src/search/search_result.dart' show
13 searchResultFromMatch; 13 searchResultFromMatch;
14 import 'package:analysis_server/src/services/correction/fix.dart' show Fix; 14 import 'package:analysis_server/src/services/correction/fix.dart' show Fix;
15 import 'package:analysis_server/src/services/json.dart';
15 import 'package:analysis_server/src/services/search/search_engine.dart' as 16 import 'package:analysis_server/src/services/search/search_engine.dart' as
16 engine; 17 engine;
17 import 'package:analyzer/src/generated/ast.dart' as engine; 18 import 'package:analyzer/src/generated/ast.dart' as engine;
18 import 'package:analyzer/src/generated/element.dart' as engine; 19 import 'package:analyzer/src/generated/element.dart' as engine;
19 import 'package:analyzer/src/generated/engine.dart' as engine; 20 import 'package:analyzer/src/generated/engine.dart' as engine;
20 import 'package:analyzer/src/generated/error.dart' as engine; 21 import 'package:analyzer/src/generated/error.dart' as engine;
21 import 'package:analyzer/src/generated/source.dart' as engine; 22 import 'package:analyzer/src/generated/source.dart' as engine;
22 23
23 part 'generated_protocol.dart'; 24 part 'generated_protocol.dart';
24 25
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); 1053 hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
1053 hash = hash ^ (hash >> 11); 1054 hash = hash ^ (hash >> 11);
1054 return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); 1055 return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
1055 } 1056 }
1056 1057
1057 static int hash2(a, b) => finish(combine(combine(0, a), b)); 1058 static int hash2(a, b) => finish(combine(combine(0, a), b));
1058 1059
1059 static int hash4(a, b, c, d) => 1060 static int hash4(a, b, c, d) =>
1060 finish(combine(combine(combine(combine(0, a), b), c), d)); 1061 finish(combine(combine(combine(combine(0, a), b), c), d));
1061 } 1062 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/generated_protocol.dart ('k') | pkg/analysis_server/lib/src/services/json.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698