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

Unified Diff: pkg/analysis_server/lib/src/services/refactoring/rename.dart

Issue 969113002: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/services/refactoring/rename.dart
diff --git a/pkg/analysis_server/lib/src/services/refactoring/rename.dart b/pkg/analysis_server/lib/src/services/refactoring/rename.dart
index 1da2200c169e7a9a58b2780bfafe8a0e8d8d589b..012b7a1b595ec37714c80dad38d899951f2f4ac5 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/rename.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/rename.dart
@@ -16,7 +16,6 @@ import 'package:analyzer/src/generated/element.dart';
import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/source.dart';
-
/**
* Returns `true` if two given [Element]s are [LocalElement]s and have
* intersecting with visibility ranges.
@@ -36,12 +35,11 @@ bool haveIntersectingRanges(LocalElement localElement, Element element) {
localRange2.intersects(localRange);
}
-
/**
* Checks if [element] is defined in the library containing [source].
*/
-bool isDefinedInLibrary(Element element, AnalysisContext context, Source source)
- {
+bool isDefinedInLibrary(
+ Element element, AnalysisContext context, Source source) {
// should be the same AnalysisContext
if (!isInContext(element, context)) {
return false;
@@ -52,7 +50,6 @@ bool isDefinedInLibrary(Element element, AnalysisContext context, Source source)
return librarySourcesOfSource.contains(librarySourceOfElement);
}
-
/**
* Checks if the given [Element] is in the given [AnalysisContext].
*/
@@ -60,7 +57,6 @@ bool isInContext(Element element, AnalysisContext context) {
return element.context == context;
}
-
/**
* Checks if the given unqualified [SearchMatch] intersects with visibility
* range of [localElement].
@@ -77,12 +73,11 @@ bool isReferenceInLocalRange(LocalElement localElement, SearchMatch reference) {
referenceRange.intersects(localRange);
}
-
/**
* Checks if [element] is visible in the library containing [source].
*/
-bool isVisibleInLibrary(Element element, AnalysisContext context, Source source)
- {
+bool isVisibleInLibrary(
+ Element element, AnalysisContext context, Source source) {
// should be the same AnalysisContext
if (!isInContext(element, context)) {
return false;
@@ -95,13 +90,11 @@ bool isVisibleInLibrary(Element element, AnalysisContext context, Source source)
return isDefinedInLibrary(element, context, source);
}
-
-
/**
* An abstract implementation of [RenameRefactoring].
*/
-abstract class RenameRefactoringImpl extends RefactoringImpl implements
- RenameRefactoring {
+abstract class RenameRefactoringImpl extends RefactoringImpl
+ implements RenameRefactoring {
final SearchEngine searchEngine;
final Element element;
final AnalysisContext context;

Powered by Google App Engine
This is Rietveld 408576698