| 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 '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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 static const CONVERT_INTO_BLOCK_BODY = const AssistKind( | 50 static const CONVERT_INTO_BLOCK_BODY = const AssistKind( |
| 51 'CONVERT_INTO_BLOCK_BODY', 30, "Convert into block body"); | 51 'CONVERT_INTO_BLOCK_BODY', 30, "Convert into block body"); |
| 52 static const CONVERT_INTO_EXPRESSION_BODY = const AssistKind( | 52 static const CONVERT_INTO_EXPRESSION_BODY = const AssistKind( |
| 53 'CONVERT_INTO_EXPRESSION_BODY', 30, "Convert into expression body"); | 53 'CONVERT_INTO_EXPRESSION_BODY', 30, "Convert into expression body"); |
| 54 static const CONVERT_INTO_FOR_INDEX = const AssistKind( | 54 static const CONVERT_INTO_FOR_INDEX = const AssistKind( |
| 55 'CONVERT_INTO_FOR_INDEX', 30, "Convert into for-index loop"); | 55 'CONVERT_INTO_FOR_INDEX', 30, "Convert into for-index loop"); |
| 56 static const CONVERT_INTO_IS_NOT = | 56 static const CONVERT_INTO_IS_NOT = |
| 57 const AssistKind('CONVERT_INTO_IS_NOT', 30, "Convert into is!"); | 57 const AssistKind('CONVERT_INTO_IS_NOT', 30, "Convert into is!"); |
| 58 static const CONVERT_INTO_IS_NOT_EMPTY = const AssistKind( | 58 static const CONVERT_INTO_IS_NOT_EMPTY = const AssistKind( |
| 59 'CONVERT_INTO_IS_NOT_EMPTY', 30, "Convert into 'isNotEmpty'"); | 59 'CONVERT_INTO_IS_NOT_EMPTY', 30, "Convert into 'isNotEmpty'"); |
| 60 static const CONVERT_TO_NORMAL_PARAMETER = const AssistKind( |
| 61 'CONVERT_TO_NORMAL_PARAMETER', 30, "Convert to normal parameter"); |
| 60 static const ENCAPSULATE_FIELD = | 62 static const ENCAPSULATE_FIELD = |
| 61 const AssistKind('ENCAPSULATE_FIELD', 30, "Encapsulate field"); | 63 const AssistKind('ENCAPSULATE_FIELD', 30, "Encapsulate field"); |
| 62 static const EXCHANGE_OPERANDS = | 64 static const EXCHANGE_OPERANDS = |
| 63 const AssistKind('EXCHANGE_OPERANDS', 30, "Exchange operands"); | 65 const AssistKind('EXCHANGE_OPERANDS', 30, "Exchange operands"); |
| 64 static const EXTRACT_CLASS = | 66 static const EXTRACT_CLASS = |
| 65 const AssistKind('EXTRACT_CLASS', 30, "Extract class into file '{0}'"); | 67 const AssistKind('EXTRACT_CLASS', 30, "Extract class into file '{0}'"); |
| 66 static const IMPORT_ADD_SHOW = | 68 static const IMPORT_ADD_SHOW = |
| 67 const AssistKind('IMPORT_ADD_SHOW', 30, "Add explicit 'show' combinator"); | 69 const AssistKind('IMPORT_ADD_SHOW', 30, "Add explicit 'show' combinator"); |
| 68 static const INTRODUCE_LOCAL_CAST_TYPE = const AssistKind( | 70 static const INTRODUCE_LOCAL_CAST_TYPE = const AssistKind( |
| 69 'INTRODUCE_LOCAL_CAST_TYPE', 30, "Introduce new local with tested type"); | 71 'INTRODUCE_LOCAL_CAST_TYPE', 30, "Introduce new local with tested type"); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 97 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); | 99 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); |
| 98 static const SURROUND_WITH_IF = | 100 static const SURROUND_WITH_IF = |
| 99 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); | 101 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); |
| 100 static const SURROUND_WITH_TRY_CATCH = const AssistKind( | 102 static const SURROUND_WITH_TRY_CATCH = const AssistKind( |
| 101 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); | 103 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); |
| 102 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( | 104 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( |
| 103 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); | 105 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); |
| 104 static const SURROUND_WITH_WHILE = | 106 static const SURROUND_WITH_WHILE = |
| 105 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); | 107 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); |
| 106 } | 108 } |
| OLD | NEW |