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

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

Issue 628783002: Change integration test send...() methods to return structured objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/protocol.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 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/spec/generate_files".
8 8
9 part of protocol; 9 part of protocol;
10 /** 10 /**
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 throw jsonDecoder.missingKey(jsonPath, "version"); 56 throw jsonDecoder.missingKey(jsonPath, "version");
57 } 57 }
58 return new ServerGetVersionResult(version); 58 return new ServerGetVersionResult(version);
59 } else { 59 } else {
60 throw jsonDecoder.mismatch(jsonPath, "server.getVersion result"); 60 throw jsonDecoder.mismatch(jsonPath, "server.getVersion result");
61 } 61 }
62 } 62 }
63 63
64 factory ServerGetVersionResult.fromResponse(Response response) { 64 factory ServerGetVersionResult.fromResponse(Response response) {
65 return new ServerGetVersionResult.fromJson( 65 return new ServerGetVersionResult.fromJson(
66 new ResponseDecoder(response), "result", response._result); 66 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
67 } 67 }
68 68
69 Map<String, dynamic> toJson() { 69 Map<String, dynamic> toJson() {
70 Map<String, dynamic> result = {}; 70 Map<String, dynamic> result = {};
71 result["version"] = version; 71 result["version"] = version;
72 return result; 72 return result;
73 } 73 }
74 74
75 Response toResponse(String id) { 75 Response toResponse(String id) {
76 return new Response(id, result: toJson()); 76 return new Response(id, result: toJson());
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 throw jsonDecoder.missingKey(jsonPath, "errors"); 503 throw jsonDecoder.missingKey(jsonPath, "errors");
504 } 504 }
505 return new AnalysisGetErrorsResult(errors); 505 return new AnalysisGetErrorsResult(errors);
506 } else { 506 } else {
507 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors result"); 507 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors result");
508 } 508 }
509 } 509 }
510 510
511 factory AnalysisGetErrorsResult.fromResponse(Response response) { 511 factory AnalysisGetErrorsResult.fromResponse(Response response) {
512 return new AnalysisGetErrorsResult.fromJson( 512 return new AnalysisGetErrorsResult.fromJson(
513 new ResponseDecoder(response), "result", response._result); 513 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
514 } 514 }
515 515
516 Map<String, dynamic> toJson() { 516 Map<String, dynamic> toJson() {
517 Map<String, dynamic> result = {}; 517 Map<String, dynamic> result = {};
518 result["errors"] = errors.map((AnalysisError value) => value.toJson()).toLis t(); 518 result["errors"] = errors.map((AnalysisError value) => value.toJson()).toLis t();
519 return result; 519 return result;
520 } 520 }
521 521
522 Response toResponse(String id) { 522 Response toResponse(String id) {
523 return new Response(id, result: toJson()); 523 return new Response(id, result: toJson());
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 throw jsonDecoder.missingKey(jsonPath, "hovers"); 654 throw jsonDecoder.missingKey(jsonPath, "hovers");
655 } 655 }
656 return new AnalysisGetHoverResult(hovers); 656 return new AnalysisGetHoverResult(hovers);
657 } else { 657 } else {
658 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover result"); 658 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover result");
659 } 659 }
660 } 660 }
661 661
662 factory AnalysisGetHoverResult.fromResponse(Response response) { 662 factory AnalysisGetHoverResult.fromResponse(Response response) {
663 return new AnalysisGetHoverResult.fromJson( 663 return new AnalysisGetHoverResult.fromJson(
664 new ResponseDecoder(response), "result", response._result); 664 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
665 } 665 }
666 666
667 Map<String, dynamic> toJson() { 667 Map<String, dynamic> toJson() {
668 Map<String, dynamic> result = {}; 668 Map<String, dynamic> result = {};
669 result["hovers"] = hovers.map((HoverInformation value) => value.toJson()).to List(); 669 result["hovers"] = hovers.map((HoverInformation value) => value.toJson()).to List();
670 return result; 670 return result;
671 } 671 }
672 672
673 Response toResponse(String id) { 673 Response toResponse(String id) {
674 return new Response(id, result: toJson()); 674 return new Response(id, result: toJson());
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 throw jsonDecoder.missingKey(jsonPath, "id"); 1938 throw jsonDecoder.missingKey(jsonPath, "id");
1939 } 1939 }
1940 return new CompletionGetSuggestionsResult(id); 1940 return new CompletionGetSuggestionsResult(id);
1941 } else { 1941 } else {
1942 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions result"); 1942 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions result");
1943 } 1943 }
1944 } 1944 }
1945 1945
1946 factory CompletionGetSuggestionsResult.fromResponse(Response response) { 1946 factory CompletionGetSuggestionsResult.fromResponse(Response response) {
1947 return new CompletionGetSuggestionsResult.fromJson( 1947 return new CompletionGetSuggestionsResult.fromJson(
1948 new ResponseDecoder(response), "result", response._result); 1948 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
1949 } 1949 }
1950 1950
1951 Map<String, dynamic> toJson() { 1951 Map<String, dynamic> toJson() {
1952 Map<String, dynamic> result = {}; 1952 Map<String, dynamic> result = {};
1953 result["id"] = id; 1953 result["id"] = id;
1954 return result; 1954 return result;
1955 } 1955 }
1956 1956
1957 Response toResponse(String id) { 1957 Response toResponse(String id) {
1958 return new Response(id, result: toJson()); 1958 return new Response(id, result: toJson());
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[ "element"]); 2252 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[ "element"]);
2253 } 2253 }
2254 return new SearchFindElementReferencesResult(id: id, element: element); 2254 return new SearchFindElementReferencesResult(id: id, element: element);
2255 } else { 2255 } else {
2256 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences result" ); 2256 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences result" );
2257 } 2257 }
2258 } 2258 }
2259 2259
2260 factory SearchFindElementReferencesResult.fromResponse(Response response) { 2260 factory SearchFindElementReferencesResult.fromResponse(Response response) {
2261 return new SearchFindElementReferencesResult.fromJson( 2261 return new SearchFindElementReferencesResult.fromJson(
2262 new ResponseDecoder(response), "result", response._result); 2262 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
2263 } 2263 }
2264 2264
2265 Map<String, dynamic> toJson() { 2265 Map<String, dynamic> toJson() {
2266 Map<String, dynamic> result = {}; 2266 Map<String, dynamic> result = {};
2267 if (id != null) { 2267 if (id != null) {
2268 result["id"] = id; 2268 result["id"] = id;
2269 } 2269 }
2270 if (element != null) { 2270 if (element != null) {
2271 result["element"] = element.toJson(); 2271 result["element"] = element.toJson();
2272 } 2272 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
2391 throw jsonDecoder.missingKey(jsonPath, "id"); 2391 throw jsonDecoder.missingKey(jsonPath, "id");
2392 } 2392 }
2393 return new SearchFindMemberDeclarationsResult(id); 2393 return new SearchFindMemberDeclarationsResult(id);
2394 } else { 2394 } else {
2395 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations result "); 2395 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations result ");
2396 } 2396 }
2397 } 2397 }
2398 2398
2399 factory SearchFindMemberDeclarationsResult.fromResponse(Response response) { 2399 factory SearchFindMemberDeclarationsResult.fromResponse(Response response) {
2400 return new SearchFindMemberDeclarationsResult.fromJson( 2400 return new SearchFindMemberDeclarationsResult.fromJson(
2401 new ResponseDecoder(response), "result", response._result); 2401 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
2402 } 2402 }
2403 2403
2404 Map<String, dynamic> toJson() { 2404 Map<String, dynamic> toJson() {
2405 Map<String, dynamic> result = {}; 2405 Map<String, dynamic> result = {};
2406 result["id"] = id; 2406 result["id"] = id;
2407 return result; 2407 return result;
2408 } 2408 }
2409 2409
2410 Response toResponse(String id) { 2410 Response toResponse(String id) {
2411 return new Response(id, result: toJson()); 2411 return new Response(id, result: toJson());
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
2523 throw jsonDecoder.missingKey(jsonPath, "id"); 2523 throw jsonDecoder.missingKey(jsonPath, "id");
2524 } 2524 }
2525 return new SearchFindMemberReferencesResult(id); 2525 return new SearchFindMemberReferencesResult(id);
2526 } else { 2526 } else {
2527 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences result") ; 2527 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences result") ;
2528 } 2528 }
2529 } 2529 }
2530 2530
2531 factory SearchFindMemberReferencesResult.fromResponse(Response response) { 2531 factory SearchFindMemberReferencesResult.fromResponse(Response response) {
2532 return new SearchFindMemberReferencesResult.fromJson( 2532 return new SearchFindMemberReferencesResult.fromJson(
2533 new ResponseDecoder(response), "result", response._result); 2533 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
2534 } 2534 }
2535 2535
2536 Map<String, dynamic> toJson() { 2536 Map<String, dynamic> toJson() {
2537 Map<String, dynamic> result = {}; 2537 Map<String, dynamic> result = {};
2538 result["id"] = id; 2538 result["id"] = id;
2539 return result; 2539 return result;
2540 } 2540 }
2541 2541
2542 Response toResponse(String id) { 2542 Response toResponse(String id) {
2543 return new Response(id, result: toJson()); 2543 return new Response(id, result: toJson());
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2656 throw jsonDecoder.missingKey(jsonPath, "id"); 2656 throw jsonDecoder.missingKey(jsonPath, "id");
2657 } 2657 }
2658 return new SearchFindTopLevelDeclarationsResult(id); 2658 return new SearchFindTopLevelDeclarationsResult(id);
2659 } else { 2659 } else {
2660 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations resu lt"); 2660 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations resu lt");
2661 } 2661 }
2662 } 2662 }
2663 2663
2664 factory SearchFindTopLevelDeclarationsResult.fromResponse(Response response) { 2664 factory SearchFindTopLevelDeclarationsResult.fromResponse(Response response) {
2665 return new SearchFindTopLevelDeclarationsResult.fromJson( 2665 return new SearchFindTopLevelDeclarationsResult.fromJson(
2666 new ResponseDecoder(response), "result", response._result); 2666 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
2667 } 2667 }
2668 2668
2669 Map<String, dynamic> toJson() { 2669 Map<String, dynamic> toJson() {
2670 Map<String, dynamic> result = {}; 2670 Map<String, dynamic> result = {};
2671 result["id"] = id; 2671 result["id"] = id;
2672 return result; 2672 return result;
2673 } 2673 }
2674 2674
2675 Response toResponse(String id) { 2675 Response toResponse(String id) {
2676 return new Response(id, result: toJson()); 2676 return new Response(id, result: toJson());
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
2816 hierarchyItems = <TypeHierarchyItem>[]; 2816 hierarchyItems = <TypeHierarchyItem>[];
2817 } 2817 }
2818 return new SearchGetTypeHierarchyResult(hierarchyItems: hierarchyItems); 2818 return new SearchGetTypeHierarchyResult(hierarchyItems: hierarchyItems);
2819 } else { 2819 } else {
2820 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy result"); 2820 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy result");
2821 } 2821 }
2822 } 2822 }
2823 2823
2824 factory SearchGetTypeHierarchyResult.fromResponse(Response response) { 2824 factory SearchGetTypeHierarchyResult.fromResponse(Response response) {
2825 return new SearchGetTypeHierarchyResult.fromJson( 2825 return new SearchGetTypeHierarchyResult.fromJson(
2826 new ResponseDecoder(response), "result", response._result); 2826 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
2827 } 2827 }
2828 2828
2829 Map<String, dynamic> toJson() { 2829 Map<String, dynamic> toJson() {
2830 Map<String, dynamic> result = {}; 2830 Map<String, dynamic> result = {};
2831 if (hierarchyItems.isNotEmpty) { 2831 if (hierarchyItems.isNotEmpty) {
2832 result["hierarchyItems"] = hierarchyItems.map((TypeHierarchyItem value) => value.toJson()).toList(); 2832 result["hierarchyItems"] = hierarchyItems.map((TypeHierarchyItem value) => value.toJson()).toList();
2833 } 2833 }
2834 return result; 2834 return result;
2835 } 2835 }
2836 2836
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
3077 throw jsonDecoder.missingKey(jsonPath, "assists"); 3077 throw jsonDecoder.missingKey(jsonPath, "assists");
3078 } 3078 }
3079 return new EditGetAssistsResult(assists); 3079 return new EditGetAssistsResult(assists);
3080 } else { 3080 } else {
3081 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists result"); 3081 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists result");
3082 } 3082 }
3083 } 3083 }
3084 3084
3085 factory EditGetAssistsResult.fromResponse(Response response) { 3085 factory EditGetAssistsResult.fromResponse(Response response) {
3086 return new EditGetAssistsResult.fromJson( 3086 return new EditGetAssistsResult.fromJson(
3087 new ResponseDecoder(response), "result", response._result); 3087 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
3088 } 3088 }
3089 3089
3090 Map<String, dynamic> toJson() { 3090 Map<String, dynamic> toJson() {
3091 Map<String, dynamic> result = {}; 3091 Map<String, dynamic> result = {};
3092 result["assists"] = assists.map((SourceChange value) => value.toJson()).toLi st(); 3092 result["assists"] = assists.map((SourceChange value) => value.toJson()).toLi st();
3093 return result; 3093 return result;
3094 } 3094 }
3095 3095
3096 Response toResponse(String id) { 3096 Response toResponse(String id) {
3097 return new Response(id, result: toJson()); 3097 return new Response(id, result: toJson());
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
3239 throw jsonDecoder.missingKey(jsonPath, "kinds"); 3239 throw jsonDecoder.missingKey(jsonPath, "kinds");
3240 } 3240 }
3241 return new EditGetAvailableRefactoringsResult(kinds); 3241 return new EditGetAvailableRefactoringsResult(kinds);
3242 } else { 3242 } else {
3243 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings result "); 3243 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings result ");
3244 } 3244 }
3245 } 3245 }
3246 3246
3247 factory EditGetAvailableRefactoringsResult.fromResponse(Response response) { 3247 factory EditGetAvailableRefactoringsResult.fromResponse(Response response) {
3248 return new EditGetAvailableRefactoringsResult.fromJson( 3248 return new EditGetAvailableRefactoringsResult.fromJson(
3249 new ResponseDecoder(response), "result", response._result); 3249 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
3250 } 3250 }
3251 3251
3252 Map<String, dynamic> toJson() { 3252 Map<String, dynamic> toJson() {
3253 Map<String, dynamic> result = {}; 3253 Map<String, dynamic> result = {};
3254 result["kinds"] = kinds.map((RefactoringKind value) => value.toJson()).toLis t(); 3254 result["kinds"] = kinds.map((RefactoringKind value) => value.toJson()).toLis t();
3255 return result; 3255 return result;
3256 } 3256 }
3257 3257
3258 Response toResponse(String id) { 3258 Response toResponse(String id) {
3259 return new Response(id, result: toJson()); 3259 return new Response(id, result: toJson());
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
3386 throw jsonDecoder.missingKey(jsonPath, "fixes"); 3386 throw jsonDecoder.missingKey(jsonPath, "fixes");
3387 } 3387 }
3388 return new EditGetFixesResult(fixes); 3388 return new EditGetFixesResult(fixes);
3389 } else { 3389 } else {
3390 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes result"); 3390 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes result");
3391 } 3391 }
3392 } 3392 }
3393 3393
3394 factory EditGetFixesResult.fromResponse(Response response) { 3394 factory EditGetFixesResult.fromResponse(Response response) {
3395 return new EditGetFixesResult.fromJson( 3395 return new EditGetFixesResult.fromJson(
3396 new ResponseDecoder(response), "result", response._result); 3396 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
3397 } 3397 }
3398 3398
3399 Map<String, dynamic> toJson() { 3399 Map<String, dynamic> toJson() {
3400 Map<String, dynamic> result = {}; 3400 Map<String, dynamic> result = {};
3401 result["fixes"] = fixes.map((AnalysisErrorFixes value) => value.toJson()).to List(); 3401 result["fixes"] = fixes.map((AnalysisErrorFixes value) => value.toJson()).to List();
3402 return result; 3402 return result;
3403 } 3403 }
3404 3404
3405 Response toResponse(String id) { 3405 Response toResponse(String id) {
3406 return new Response(id, result: toJson()); 3406 return new Response(id, result: toJson());
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
3677 potentialEdits = <String>[]; 3677 potentialEdits = <String>[];
3678 } 3678 }
3679 return new EditGetRefactoringResult(initialProblems, optionsProblems, fina lProblems, feedback: feedback, change: change, potentialEdits: potentialEdits); 3679 return new EditGetRefactoringResult(initialProblems, optionsProblems, fina lProblems, feedback: feedback, change: change, potentialEdits: potentialEdits);
3680 } else { 3680 } else {
3681 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring result"); 3681 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring result");
3682 } 3682 }
3683 } 3683 }
3684 3684
3685 factory EditGetRefactoringResult.fromResponse(Response response) { 3685 factory EditGetRefactoringResult.fromResponse(Response response) {
3686 return new EditGetRefactoringResult.fromJson( 3686 return new EditGetRefactoringResult.fromJson(
3687 new ResponseDecoder(response), "result", response._result); 3687 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
3688 } 3688 }
3689 3689
3690 Map<String, dynamic> toJson() { 3690 Map<String, dynamic> toJson() {
3691 Map<String, dynamic> result = {}; 3691 Map<String, dynamic> result = {};
3692 result["initialProblems"] = initialProblems.map((RefactoringProblem value) = > value.toJson()).toList(); 3692 result["initialProblems"] = initialProblems.map((RefactoringProblem value) = > value.toJson()).toList();
3693 result["optionsProblems"] = optionsProblems.map((RefactoringProblem value) = > value.toJson()).toList(); 3693 result["optionsProblems"] = optionsProblems.map((RefactoringProblem value) = > value.toJson()).toList();
3694 result["finalProblems"] = finalProblems.map((RefactoringProblem value) => va lue.toJson()).toList(); 3694 result["finalProblems"] = finalProblems.map((RefactoringProblem value) => va lue.toJson()).toList();
3695 if (feedback != null) { 3695 if (feedback != null) {
3696 result["feedback"] = feedback.toJson(); 3696 result["feedback"] = feedback.toJson();
3697 } 3697 }
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
3831 throw jsonDecoder.missingKey(jsonPath, "edit"); 3831 throw jsonDecoder.missingKey(jsonPath, "edit");
3832 } 3832 }
3833 return new EditSortMembersResult(edit); 3833 return new EditSortMembersResult(edit);
3834 } else { 3834 } else {
3835 throw jsonDecoder.mismatch(jsonPath, "edit.sortMembers result"); 3835 throw jsonDecoder.mismatch(jsonPath, "edit.sortMembers result");
3836 } 3836 }
3837 } 3837 }
3838 3838
3839 factory EditSortMembersResult.fromResponse(Response response) { 3839 factory EditSortMembersResult.fromResponse(Response response) {
3840 return new EditSortMembersResult.fromJson( 3840 return new EditSortMembersResult.fromJson(
3841 new ResponseDecoder(response), "result", response._result); 3841 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
3842 } 3842 }
3843 3843
3844 Map<String, dynamic> toJson() { 3844 Map<String, dynamic> toJson() {
3845 Map<String, dynamic> result = {}; 3845 Map<String, dynamic> result = {};
3846 result["edit"] = edit.toJson(); 3846 result["edit"] = edit.toJson();
3847 return result; 3847 return result;
3848 } 3848 }
3849 3849
3850 Response toResponse(String id) { 3850 Response toResponse(String id) {
3851 return new Response(id, result: toJson()); 3851 return new Response(id, result: toJson());
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
3963 throw jsonDecoder.missingKey(jsonPath, "id"); 3963 throw jsonDecoder.missingKey(jsonPath, "id");
3964 } 3964 }
3965 return new ExecutionCreateContextResult(id); 3965 return new ExecutionCreateContextResult(id);
3966 } else { 3966 } else {
3967 throw jsonDecoder.mismatch(jsonPath, "execution.createContext result"); 3967 throw jsonDecoder.mismatch(jsonPath, "execution.createContext result");
3968 } 3968 }
3969 } 3969 }
3970 3970
3971 factory ExecutionCreateContextResult.fromResponse(Response response) { 3971 factory ExecutionCreateContextResult.fromResponse(Response response) {
3972 return new ExecutionCreateContextResult.fromJson( 3972 return new ExecutionCreateContextResult.fromJson(
3973 new ResponseDecoder(response), "result", response._result); 3973 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
3974 } 3974 }
3975 3975
3976 Map<String, dynamic> toJson() { 3976 Map<String, dynamic> toJson() {
3977 Map<String, dynamic> result = {}; 3977 Map<String, dynamic> result = {};
3978 result["id"] = id; 3978 result["id"] = id;
3979 return result; 3979 return result;
3980 } 3980 }
3981 3981
3982 Response toResponse(String id) { 3982 Response toResponse(String id) {
3983 return new Response(id, result: toJson()); 3983 return new Response(id, result: toJson());
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
4222 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); 4222 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]);
4223 } 4223 }
4224 return new ExecutionMapUriResult(file: file, uri: uri); 4224 return new ExecutionMapUriResult(file: file, uri: uri);
4225 } else { 4225 } else {
4226 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri result"); 4226 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri result");
4227 } 4227 }
4228 } 4228 }
4229 4229
4230 factory ExecutionMapUriResult.fromResponse(Response response) { 4230 factory ExecutionMapUriResult.fromResponse(Response response) {
4231 return new ExecutionMapUriResult.fromJson( 4231 return new ExecutionMapUriResult.fromJson(
4232 new ResponseDecoder(response), "result", response._result); 4232 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
4233 } 4233 }
4234 4234
4235 Map<String, dynamic> toJson() { 4235 Map<String, dynamic> toJson() {
4236 Map<String, dynamic> result = {}; 4236 Map<String, dynamic> result = {};
4237 if (file != null) { 4237 if (file != null) {
4238 result["file"] = file; 4238 result["file"] = file;
4239 } 4239 }
4240 if (uri != null) { 4240 if (uri != null) {
4241 result["uri"] = uri; 4241 result["uri"] = uri;
4242 } 4242 }
(...skipping 6125 matching lines...) Expand 10 before | Expand all | Expand 10 after
10368 return false; 10368 return false;
10369 } 10369 }
10370 10370
10371 @override 10371 @override
10372 int get hashCode { 10372 int get hashCode {
10373 int hash = 0; 10373 int hash = 0;
10374 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 10374 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
10375 return _JenkinsSmiHash.finish(hash); 10375 return _JenkinsSmiHash.finish(hash);
10376 } 10376 }
10377 } 10377 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698