| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, the Dart project authors. | 2 * Copyright (c) 2013, the Dart project authors. |
| 3 * | 3 * |
| 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
| 5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
| 6 * | 6 * |
| 7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
| 8 * | 8 * |
| 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
| 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
| 11 * or implied. See the License for the specific language governing permissions a
nd limitations under | 11 * or implied. See the License for the specific language governing permissions a
nd limitations under |
| 12 * the License. | 12 * the License. |
| 13 */ | 13 */ |
| 14 | 14 |
| 15 package com.google.dart.engine.services.correction; | 15 package com.google.dart.engine.services.correction; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * Identifier of {@link CorrectionProposal}. | 18 * Identifier of {@link CorrectionProposal}. |
| 19 */ | 19 */ |
| 20 public enum CorrectionKind { | 20 public enum CorrectionKind { |
| 21 QA_ADD_JSON(30, "Add toJson() / fromJson()"), | |
| 22 QA_ADD_PART_DIRECTIVE(30, "Add 'part' directive"), | 21 QA_ADD_PART_DIRECTIVE(30, "Add 'part' directive"), |
| 23 QA_ADD_TYPE_ANNOTATION(30, "Add type annotation"), | 22 QA_ADD_TYPE_ANNOTATION(30, "Add type annotation"), |
| 24 QA_ASSIGN_TO_LOCAL_VARIABLE(30, "Assign value to new local variable"), | 23 QA_ASSIGN_TO_LOCAL_VARIABLE(30, "Assign value to new local variable"), |
| 25 QA_CONVERT_INTO_BLOCK_BODY(30, "Convert into block body"), | 24 QA_CONVERT_INTO_BLOCK_BODY(30, "Convert into block body"), |
| 26 QA_CONVERT_INTO_EXPRESSION_BODY(30, "Convert into expression body"), | 25 QA_CONVERT_INTO_EXPRESSION_BODY(30, "Convert into expression body"), |
| 27 QA_CONVERT_INTO_IS_NOT(30, "Convert into is!"), | 26 QA_CONVERT_INTO_IS_NOT(30, "Convert into is!"), |
| 28 QA_CONVERT_INTO_IS_NOT_EMPTY(30, "Convert into 'isNotEmpty'"), | 27 QA_CONVERT_INTO_IS_NOT_EMPTY(30, "Convert into 'isNotEmpty'"), |
| 29 QA_EXCHANGE_OPERANDS(30, "Exchange operands"), | 28 QA_EXCHANGE_OPERANDS(30, "Exchange operands"), |
| 30 QA_EXTRACT_CLASS(30, "Extract class into file '%s'"), | 29 QA_EXTRACT_CLASS(30, "Extract class into file '%s'"), |
| 31 QA_IMPORT_ADD_SHOW(30, "Add explicit 'show' combinator"), | 30 QA_IMPORT_ADD_SHOW(30, "Add explicit 'show' combinator"), |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 } | 98 } |
| 100 | 99 |
| 101 /** | 100 /** |
| 102 * @return the relevance of {@link CorrectionProposal} - greater value, higher
in the list of | 101 * @return the relevance of {@link CorrectionProposal} - greater value, higher
in the list of |
| 103 * proposals. | 102 * proposals. |
| 104 */ | 103 */ |
| 105 public int getRelevance() { | 104 public int getRelevance() { |
| 106 return relevance; | 105 return relevance; |
| 107 } | 106 } |
| 108 } | 107 } |
| OLD | NEW |