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

Side by Side Diff: pkg/analysis_server/test/analysis_abstract.dart

Issue 402493002: Remove 'errorCode' field from AnalysisError in the analysis server API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 test.domain.analysis.abstract; 5 library test.domain.analysis.abstract;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/analysis_server.dart'; 9 import 'package:analysis_server/src/analysis_server.dart';
10 import 'package:analysis_server/src/constants.dart'; 10 import 'package:analysis_server/src/constants.dart';
(...skipping 18 matching lines...) Expand all
29 c >= '0'.codeUnitAt(0) && c <= '9'.codeUnitAt(0))) { 29 c >= '0'.codeUnitAt(0) && c <= '9'.codeUnitAt(0))) {
30 break; 30 break;
31 } 31 }
32 length++; 32 length++;
33 } 33 }
34 return length; 34 return length;
35 } 35 }
36 36
37 37
38 38
39 AnalysisError _jsonToAnalysisError(Map<String, Object> json) {
40 return new AnalysisError(
41 json['file'],
42 json['errorCode'],
43 json['offset'],
44 json['length'],
45 json['message'],
46 json['correction']);
47 }
48
49
50 /** 39 /**
51 * An abstract base for all 'analysis' domain tests. 40 * An abstract base for all 'analysis' domain tests.
52 */ 41 */
53 class AbstractAnalysisTest { 42 class AbstractAnalysisTest {
54 MockServerChannel serverChannel; 43 MockServerChannel serverChannel;
55 MemoryResourceProvider resourceProvider; 44 MemoryResourceProvider resourceProvider;
56 MockPackageMapProvider packageMapProvider; 45 MockPackageMapProvider packageMapProvider;
57 AnalysisServer server; 46 AnalysisServer server;
58 RequestHandler handler; 47 RequestHandler handler;
59 48
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 final String correction; 271 final String correction;
283 AnalysisError(this.file, this.errorCode, this.offset, this.length, 272 AnalysisError(this.file, this.errorCode, this.offset, this.length,
284 this.message, this.correction); 273 this.message, this.correction);
285 274
286 @override 275 @override
287 String toString() { 276 String toString() {
288 return 'NotificationError(file=$file; errorCode=$errorCode; ' 277 return 'NotificationError(file=$file; errorCode=$errorCode; '
289 'offset=$offset; length=$length; message=$message)'; 278 'offset=$offset; length=$length; message=$message)';
290 } 279 }
291 } 280 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/operation/operation_analysis.dart ('k') | pkg/analysis_server/test/domain_analysis_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698