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

Side by Side Diff: pkg/analysis_server/lib/src/edit/edit_domain.dart

Issue 541823004: Decode RefactoringFeedback automatically. (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
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/lib/src/generated_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 library edit.domain; 5 library edit.domain;
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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 void _reset() { 325 void _reset() {
326 refactoring = null; 326 refactoring = null;
327 feedback = null; 327 feedback = null;
328 initStatus = new RefactoringStatus(); 328 initStatus = new RefactoringStatus();
329 optionsStatus = new RefactoringStatus(); 329 optionsStatus = new RefactoringStatus();
330 finalStatus = new RefactoringStatus(); 330 finalStatus = new RefactoringStatus();
331 } 331 }
332 332
333 void _sendResultResponse() { 333 void _sendResultResponse() {
334 if (feedback != null) { 334 if (feedback != null) {
335 result.feedback = feedback.toJson(); 335 result.feedback = feedback;
336 } 336 }
337 // set problems 337 // set problems
338 { 338 {
339 RefactoringStatus status = new RefactoringStatus(); 339 RefactoringStatus status = new RefactoringStatus();
340 status.addStatus(initStatus); 340 status.addStatus(initStatus);
341 status.addStatus(optionsStatus); 341 status.addStatus(optionsStatus);
342 status.addStatus(finalStatus); 342 status.addStatus(finalStatus);
343 result.problems = status.problems; 343 result.problems = status.problems;
344 } 344 }
345 // send the response 345 // send the response
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 } 378 }
379 if (refactoring is RenameRefactoring) { 379 if (refactoring is RenameRefactoring) {
380 RenameRefactoring renameRefactoring = refactoring; 380 RenameRefactoring renameRefactoring = refactoring;
381 RenameOptions renameOptions = params.options; 381 RenameOptions renameOptions = params.options;
382 renameRefactoring.newName = renameOptions.newName; 382 renameRefactoring.newName = renameOptions.newName;
383 return renameRefactoring.checkNewName(); 383 return renameRefactoring.checkNewName();
384 } 384 }
385 return new RefactoringStatus(); 385 return new RefactoringStatus();
386 } 386 }
387 } 387 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/lib/src/generated_protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698