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 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; | 5 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; |
6 import 'package:analyzer/src/dart/analysis/driver.dart'; | 6 import 'package:analyzer/src/dart/analysis/driver.dart'; |
7 import 'package:analyzer/src/generated/source.dart'; | 7 import 'package:analyzer/src/generated/source.dart'; |
8 import 'package:analyzer_plugin/utilities/assist/assist.dart'; | 8 import 'package:analyzer_plugin/utilities/assist/assist.dart'; |
9 | 9 |
10 /** | 10 /** |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_FINAL_FIELD = const AssistKind( | 56 static const CONVERT_INTO_FINAL_FIELD = const AssistKind( |
57 'CONVERT_INTO_FINAL_FIELD', 30, "Convert into final field"); | 57 'CONVERT_INTO_FINAL_FIELD', 30, "Convert into final field"); |
58 static const CONVERT_INTO_GETTER = | 58 static const CONVERT_INTO_GETTER = |
59 const AssistKind('CONVERT_INTO_GETTER', 30, "Convert into getter"); | 59 const AssistKind('CONVERT_INTO_GETTER', 30, "Convert into getter"); |
60 static const CONVERT_INTO_IS_NOT = | 60 static const CONVERT_INTO_IS_NOT = |
61 const AssistKind('CONVERT_INTO_IS_NOT', 30, "Convert into is!"); | 61 const AssistKind('CONVERT_INTO_IS_NOT', 30, "Convert into is!"); |
62 static const CONVERT_INTO_IS_NOT_EMPTY = const AssistKind( | 62 static const CONVERT_INTO_IS_NOT_EMPTY = const AssistKind( |
63 'CONVERT_INTO_IS_NOT_EMPTY', 30, "Convert into 'isNotEmpty'"); | 63 'CONVERT_INTO_IS_NOT_EMPTY', 30, "Convert into 'isNotEmpty'"); |
| 64 static const CONVERT_PART_OF_TO_URI = |
| 65 const AssistKind('CONVERT_PART_OF_TO_URI', 30, "Convert to use a URI"); |
64 static const CONVERT_TO_FIELD_PARAMETER = const AssistKind( | 66 static const CONVERT_TO_FIELD_PARAMETER = const AssistKind( |
65 'CONVERT_TO_FIELD_PARAMETER', 30, "Convert to field formal parameter"); | 67 'CONVERT_TO_FIELD_PARAMETER', 30, "Convert to field formal parameter"); |
66 static const CONVERT_TO_NORMAL_PARAMETER = const AssistKind( | 68 static const CONVERT_TO_NORMAL_PARAMETER = const AssistKind( |
67 'CONVERT_TO_NORMAL_PARAMETER', 30, "Convert to normal parameter"); | 69 'CONVERT_TO_NORMAL_PARAMETER', 30, "Convert to normal parameter"); |
68 static const ENCAPSULATE_FIELD = | 70 static const ENCAPSULATE_FIELD = |
69 const AssistKind('ENCAPSULATE_FIELD', 30, "Encapsulate field"); | 71 const AssistKind('ENCAPSULATE_FIELD', 30, "Encapsulate field"); |
70 static const EXCHANGE_OPERANDS = | 72 static const EXCHANGE_OPERANDS = |
71 const AssistKind('EXCHANGE_OPERANDS', 30, "Exchange operands"); | 73 const AssistKind('EXCHANGE_OPERANDS', 30, "Exchange operands"); |
72 static const EXTRACT_CLASS = | 74 static const EXTRACT_CLASS = |
73 const AssistKind('EXTRACT_CLASS', 30, "Extract class into file '{0}'"); | 75 const AssistKind('EXTRACT_CLASS', 30, "Extract class into file '{0}'"); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); | 117 const AssistKind('SURROUND_WITH_FOR_IN', 30, "Surround with 'for-in'"); |
116 static const SURROUND_WITH_IF = | 118 static const SURROUND_WITH_IF = |
117 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); | 119 const AssistKind('SURROUND_WITH_IF', 30, "Surround with 'if'"); |
118 static const SURROUND_WITH_TRY_CATCH = const AssistKind( | 120 static const SURROUND_WITH_TRY_CATCH = const AssistKind( |
119 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); | 121 'SURROUND_WITH_TRY_CATCH', 30, "Surround with 'try-catch'"); |
120 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( | 122 static const SURROUND_WITH_TRY_FINALLY = const AssistKind( |
121 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); | 123 'SURROUND_WITH_TRY_FINALLY', 30, "Surround with 'try-finally'"); |
122 static const SURROUND_WITH_WHILE = | 124 static const SURROUND_WITH_WHILE = |
123 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); | 125 const AssistKind('SURROUND_WITH_WHILE', 30, "Surround with 'while'"); |
124 } | 126 } |
OLD | NEW |