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

Unified Diff: pkg/analysis_server/lib/src/services/completion/optype.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/completion/optype.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/optype.dart b/pkg/analysis_server/lib/src/services/completion/optype.dart
index efaa8fd6a3cb1a79d7daf347ee6f03707f0aa297..ba7892cd0c4d3a1498da018665cab02e74dc9eba 100644
--- a/pkg/analysis_server/lib/src/services/completion/optype.dart
+++ b/pkg/analysis_server/lib/src/services/completion/optype.dart
@@ -53,8 +53,8 @@ class OpType {
*/
factory OpType.forCompletion(CompletionTarget target, int offset) {
OpType optype = new OpType._();
- target.containingNode.accept(
- new _OpTypeAstVisitor(optype, target.entity, offset));
+ target.containingNode
+ .accept(new _OpTypeAstVisitor(optype, target.entity, offset));
return optype;
}
@@ -63,20 +63,17 @@ class OpType {
/**
* Indicate whether only type names should be suggested
*/
- bool get includeOnlyTypeNameSuggestions =>
- includeTypeNameSuggestions &&
- !includeReturnValueSuggestions &&
- !includeVoidReturnSuggestions &&
- !includeInvocationSuggestions;
+ bool get includeOnlyTypeNameSuggestions => includeTypeNameSuggestions &&
+ !includeReturnValueSuggestions &&
+ !includeVoidReturnSuggestions &&
+ !includeInvocationSuggestions;
/**
* Indicate whether top level elements should be suggested
*/
- bool get includeTopLevelSuggestions =>
- includeReturnValueSuggestions ||
- includeTypeNameSuggestions ||
- includeVoidReturnSuggestions;
-
+ bool get includeTopLevelSuggestions => includeReturnValueSuggestions ||
+ includeTypeNameSuggestions ||
+ includeVoidReturnSuggestions;
}
class _OpTypeAstVisitor extends GeneralizingAstVisitor {
@@ -179,8 +176,7 @@ class _OpTypeAstVisitor extends GeneralizingAstVisitor {
}
@override
- void visitClassMember(ClassMember node) {
- }
+ void visitClassMember(ClassMember node) {}
@override
void visitCommentReference(CommentReference node) {
@@ -384,8 +380,7 @@ class _OpTypeAstVisitor extends GeneralizingAstVisitor {
}
@override
- void visitMethodDeclaration(MethodDeclaration node) {
- }
+ void visitMethodDeclaration(MethodDeclaration node) {}
@override
void visitMethodInvocation(MethodInvocation node) {
@@ -513,8 +508,7 @@ class _OpTypeAstVisitor extends GeneralizingAstVisitor {
}
@override
- void visitVariableDeclarationStatement(VariableDeclarationStatement node) {
- }
+ void visitVariableDeclarationStatement(VariableDeclarationStatement node) {}
@override
void visitWhileStatement(WhileStatement node) {

Powered by Google App Engine
This is Rietveld 408576698