| OLD | NEW |
| 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 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; | 9 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; |
| 10 import 'package:analysis_server/src/plugin/server_plugin.dart'; | 10 import 'package:analysis_server/src/plugin/server_plugin.dart'; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 30, | 84 30, |
| 85 "Convert into line documentation comment"); | 85 "Convert into line documentation comment"); |
| 86 static const CONVERT_INTO_BLOCK_BODY = const AssistKind( | 86 static const CONVERT_INTO_BLOCK_BODY = const AssistKind( |
| 87 'CONVERT_INTO_BLOCK_BODY', 30, "Convert into block body"); | 87 'CONVERT_INTO_BLOCK_BODY', 30, "Convert into block body"); |
| 88 static const CONVERT_INTO_EXPRESSION_BODY = const AssistKind( | 88 static const CONVERT_INTO_EXPRESSION_BODY = const AssistKind( |
| 89 'CONVERT_INTO_EXPRESSION_BODY', 30, "Convert into expression body"); | 89 'CONVERT_INTO_EXPRESSION_BODY', 30, "Convert into expression body"); |
| 90 static const CONVERT_INTO_FOR_INDEX = const AssistKind( | 90 static const CONVERT_INTO_FOR_INDEX = const AssistKind( |
| 91 'CONVERT_INTO_FOR_INDEX', 30, "Convert into for-index loop"); | 91 'CONVERT_INTO_FOR_INDEX', 30, "Convert into for-index loop"); |
| 92 static const CONVERT_INTO_FINAL_FIELD = const AssistKind( | 92 static const CONVERT_INTO_FINAL_FIELD = const AssistKind( |
| 93 'CONVERT_INTO_FINAL_FIELD', 30, "Convert into final field"); | 93 'CONVERT_INTO_FINAL_FIELD', 30, "Convert into final field"); |
| 94 static const CONVERT_INTO_GETTER = |
| 95 const AssistKind('CONVERT_INTO_GETTER', 30, "Convert into getter"); |
| 94 static const CONVERT_INTO_IS_NOT = | 96 static const CONVERT_INTO_IS_NOT = |
| 95 const AssistKind('CONVERT_INTO_IS_NOT', 30, "Convert into is!"); | 97 const AssistKind('CONVERT_INTO_IS_NOT', 30, "Convert into is!"); |
| 96 static const CONVERT_INTO_IS_NOT_EMPTY = const AssistKind( | 98 static const CONVERT_INTO_IS_NOT_EMPTY = const AssistKind( |
| 97 'CONVERT_INTO_IS_NOT_EMPTY', 30, "Convert into 'isNotEmpty'"); | 99 'CONVERT_INTO_IS_NOT_EMPTY', 30, "Convert into 'isNotEmpty'"); |
| 98 static const CONVERT_TO_FIELD_PARAMETER = const AssistKind( | 100 static const CONVERT_TO_FIELD_PARAMETER = const AssistKind( |
| 99 'CONVERT_TO_FIELD_PARAMETER', 30, "Convert to field formal parameter"); | 101 'CONVERT_TO_FIELD_PARAMETER', 30, "Convert to field formal parameter"); |
| 100 static const CONVERT_TO_NORMAL_PARAMETER = const AssistKind( | 102 static const CONVERT_TO_NORMAL_PARAMETER = const AssistKind( |
| 101 'CONVERT_TO_NORMAL_PARAMETER', 30, "Convert to normal parameter"); | 103 'CONVERT_TO_NORMAL_PARAMETER', 30, "Convert to normal parameter"); |
| 102 static const ENCAPSULATE_FIELD = | 104 static const ENCAPSULATE_FIELD = |
| 103 const AssistKind('ENCAPSULATE_FIELD', 30, "Encapsulate field"); | 105 const AssistKind('ENCAPSULATE_FIELD', 30, "Encapsulate field"); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); | 143 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); |
| 142 static const SURROUND_WITH_IF = | 144 static const SURROUND_WITH_IF = |
| 143 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); | 145 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); |
| 144 static const SURROUND_WITH_TRY_CATCH = const AssistKind( | 146 static const SURROUND_WITH_TRY_CATCH = const AssistKind( |
| 145 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); | 147 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); |
| 146 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( | 148 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( |
| 147 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); | 149 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); |
| 148 static const SURROUND_WITH_WHILE = | 150 static const SURROUND_WITH_WHILE = |
| 149 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); | 151 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); |
| 150 } | 152 } |
| OLD | NEW |