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

Side by Side Diff: pkg/analysis_server/lib/src/services/refactoring/refactoring.dart

Issue 1310263003: Reformat code to minimize churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
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 services.refactoring; 5 library services.refactoring;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/protocol.dart' 9 import 'package:analysis_server/src/protocol.dart'
10 show RefactoringMethodParameter, SourceChange; 10 show RefactoringMethodParameter, SourceChange;
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 String get methodName; 271 String get methodName;
272 } 272 }
273 273
274 /** 274 /**
275 * [Refactoring] to move/rename a file. 275 * [Refactoring] to move/rename a file.
276 */ 276 */
277 abstract class MoveFileRefactoring implements Refactoring { 277 abstract class MoveFileRefactoring implements Refactoring {
278 /** 278 /**
279 * Returns a new [MoveFileRefactoring] instance. 279 * Returns a new [MoveFileRefactoring] instance.
280 */ 280 */
281 factory MoveFileRefactoring(ResourceProvider resourceProvider, 281 factory MoveFileRefactoring(
282 SearchEngine searchEngine, AnalysisContext context, Source source, 282 ResourceProvider resourceProvider,
283 SearchEngine searchEngine,
284 AnalysisContext context,
285 Source source,
283 String oldFile) { 286 String oldFile) {
284 return new MoveFileRefactoringImpl( 287 return new MoveFileRefactoringImpl(
285 resourceProvider, searchEngine, context, source, oldFile); 288 resourceProvider, searchEngine, context, source, oldFile);
286 } 289 }
287 290
288 /** 291 /**
289 * The new file path to which the given file is being moved. 292 * The new file path to which the given file is being moved.
290 */ 293 */
291 void set newFile(String newName); 294 void set newFile(String newName);
292 } 295 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 * Validates that the [newName] is a valid identifier and is appropriate for 403 * Validates that the [newName] is a valid identifier and is appropriate for
401 * the type of the [Element] being renamed. 404 * the type of the [Element] being renamed.
402 * 405 *
403 * It does not perform all the checks (such as checking for conflicts with any 406 * It does not perform all the checks (such as checking for conflicts with any
404 * existing names in any of the scopes containing the current name), as many 407 * existing names in any of the scopes containing the current name), as many
405 * of these checkes require search engine. Use [checkFinalConditions] for this 408 * of these checkes require search engine. Use [checkFinalConditions] for this
406 * level of checking. 409 * level of checking.
407 */ 410 */
408 RefactoringStatus checkNewName(); 411 RefactoringStatus checkNewName();
409 } 412 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698