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

Unified Diff: pkg/analysis_server/lib/src/computer/computer_navigation.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/computer/computer_navigation.dart
diff --git a/pkg/analysis_server/lib/src/computer/computer_navigation.dart b/pkg/analysis_server/lib/src/computer/computer_navigation.dart
index a05894c7b15aa525f16e2ab4cb420cccc17a6fe4..2236ee4d5cf0cb912c4e3e92d405f450e14f24cd 100644
--- a/pkg/analysis_server/lib/src/computer/computer_navigation.dart
+++ b/pkg/analysis_server/lib/src/computer/computer_navigation.dart
@@ -11,7 +11,6 @@ import 'package:analyzer/src/generated/ast.dart';
import 'package:analyzer/src/generated/element.dart';
import 'package:analyzer/src/generated/scanner.dart';
-
/**
* A computer for navigation regions in a Dart [CompilationUnit].
*/
@@ -54,8 +53,8 @@ class DartUnitNavigationComputer {
return;
}
int targetIndex = _addTarget(element);
- regions.add(
- new protocol.NavigationRegion(offset, length, <int>[targetIndex]));
+ regions
+ .add(new protocol.NavigationRegion(offset, length, <int>[targetIndex]));
}
void _addRegion_nodeStart_nodeEnd(AstNode a, AstNode b, Element element) {
@@ -95,7 +94,6 @@ class DartUnitNavigationComputer {
}
}
-
class _DartUnitNavigationComputerVisitor extends RecursiveAstVisitor {
final DartUnitNavigationComputer computer;
@@ -141,9 +139,7 @@ class _DartUnitNavigationComputerVisitor extends RecursiveAstVisitor {
}
if (firstNode != null && lastNode != null) {
computer._addRegion_nodeStart_nodeEnd(
- firstNode,
- lastNode,
- node.element);
+ firstNode, lastNode, node.element);
}
}
super.visitConstructorDeclaration(node);
@@ -190,18 +186,14 @@ class _DartUnitNavigationComputerVisitor extends RecursiveAstVisitor {
@override
visitPartDirective(PartDirective node) {
computer._addRegion_tokenStart_nodeEnd(
- node.keyword,
- node.uri,
- node.element);
+ node.keyword, node.uri, node.element);
super.visitPartDirective(node);
}
@override
visitPartOfDirective(PartOfDirective node) {
computer._addRegion_tokenStart_nodeEnd(
- node.keyword,
- node.libraryName,
- node.element);
+ node.keyword, node.libraryName, node.element);
super.visitPartOfDirective(node);
}

Powered by Google App Engine
This is Rietveld 408576698