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

Side by Side Diff: pkg/analysis_server/lib/src/services/correction/assist.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.correction.assist; 5 library services.correction.assist;
6 6
7 import 'package:analysis_server/edit/assist/assist_core.dart'; 7 import 'package:analysis_server/edit/assist/assist_core.dart';
8 import 'package:analysis_server/src/plugin/server_plugin.dart'; 8 import 'package:analysis_server/src/plugin/server_plugin.dart';
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/java_engine.dart'; 10 import 'package:analyzer/src/generated/java_engine.dart';
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const AssistKind('INVERT_IF_STATEMENT', 30, "Invert 'if' statement"); 75 const AssistKind('INVERT_IF_STATEMENT', 30, "Invert 'if' statement");
76 static const JOIN_IF_WITH_INNER = const AssistKind('JOIN_IF_WITH_INNER', 30, 76 static const JOIN_IF_WITH_INNER = const AssistKind('JOIN_IF_WITH_INNER', 30,
77 "Join 'if' statement with inner 'if' statement"); 77 "Join 'if' statement with inner 'if' statement");
78 static const JOIN_IF_WITH_OUTER = const AssistKind('JOIN_IF_WITH_OUTER', 30, 78 static const JOIN_IF_WITH_OUTER = const AssistKind('JOIN_IF_WITH_OUTER', 30,
79 "Join 'if' statement with outer 'if' statement"); 79 "Join 'if' statement with outer 'if' statement");
80 static const JOIN_VARIABLE_DECLARATION = const AssistKind( 80 static const JOIN_VARIABLE_DECLARATION = const AssistKind(
81 'JOIN_VARIABLE_DECLARATION', 30, "Join variable declaration"); 81 'JOIN_VARIABLE_DECLARATION', 30, "Join variable declaration");
82 static const REMOVE_TYPE_ANNOTATION = 82 static const REMOVE_TYPE_ANNOTATION =
83 const AssistKind('REMOVE_TYPE_ANNOTATION', 29, "Remove type annotation"); 83 const AssistKind('REMOVE_TYPE_ANNOTATION', 29, "Remove type annotation");
84 static const REPLACE_CONDITIONAL_WITH_IF_ELSE = const AssistKind( 84 static const REPLACE_CONDITIONAL_WITH_IF_ELSE = const AssistKind(
85 'REPLACE_CONDITIONAL_WITH_IF_ELSE', 30, 85 'REPLACE_CONDITIONAL_WITH_IF_ELSE',
86 30,
86 "Replace conditional with 'if-else'"); 87 "Replace conditional with 'if-else'");
87 static const REPLACE_IF_ELSE_WITH_CONDITIONAL = const AssistKind( 88 static const REPLACE_IF_ELSE_WITH_CONDITIONAL = const AssistKind(
88 'REPLACE_IF_ELSE_WITH_CONDITIONAL', 30, 89 'REPLACE_IF_ELSE_WITH_CONDITIONAL',
90 30,
89 "Replace 'if-else' with conditional ('c ? x : y')"); 91 "Replace 'if-else' with conditional ('c ? x : y')");
90 static const SPLIT_AND_CONDITION = 92 static const SPLIT_AND_CONDITION =
91 const AssistKind('SPLIT_AND_CONDITION', 30, "Split && condition"); 93 const AssistKind('SPLIT_AND_CONDITION', 30, "Split && condition");
92 static const SPLIT_VARIABLE_DECLARATION = const AssistKind( 94 static const SPLIT_VARIABLE_DECLARATION = const AssistKind(
93 'SPLIT_VARIABLE_DECLARATION', 30, "Split variable declaration"); 95 'SPLIT_VARIABLE_DECLARATION', 30, "Split variable declaration");
94 static const SURROUND_WITH_BLOCK = 96 static const SURROUND_WITH_BLOCK =
95 const AssistKind('SURROUND_WITH_BLOCK', 30, "Surround with block"); 97 const AssistKind('SURROUND_WITH_BLOCK', 30, "Surround with block");
96 static const SURROUND_WITH_DO_WHILE = const AssistKind( 98 static const SURROUND_WITH_DO_WHILE = const AssistKind(
97 'SURROUND_WITH_DO_WHILE', 30, "Surround with 'do-while'"); 99 'SURROUND_WITH_DO_WHILE', 30, "Surround with 'do-while'");
98 static const SURROUND_WITH_FOR = 100 static const SURROUND_WITH_FOR =
99 const AssistKind('SURROUND_WITH_FOR', 30, "Surround with 'for'"); 101 const AssistKind('SURROUND_WITH_FOR', 30, "Surround with 'for'");
100 static const SURROUND_WITH_FOR_IN = 102 static const SURROUND_WITH_FOR_IN =
101 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); 103 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'");
102 static const SURROUND_WITH_IF = 104 static const SURROUND_WITH_IF =
103 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); 105 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'");
104 static const SURROUND_WITH_TRY_CATCH = const AssistKind( 106 static const SURROUND_WITH_TRY_CATCH = const AssistKind(
105 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); 107 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'");
106 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( 108 static const SURROUND_WITH_TRY_FINALLY = const AssistKind(
107 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); 109 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'");
108 static const SURROUND_WITH_WHILE = 110 static const SURROUND_WITH_WHILE =
109 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); 111 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'");
110 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698