| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014, the Dart project authors. | 2 * Copyright (c) 2014, 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 package com.google.dart.server; | 14 package com.google.dart.server; |
| 15 | 15 |
| 16 import com.google.dart.server.generated.types.AnalysisError; | 16 import com.google.dart.server.generated.types.AnalysisError; |
| 17 import com.google.dart.server.generated.types.ErrorFixes; | 17 import com.google.dart.server.generated.types.AnalysisErrorFixes; |
| 18 | 18 |
| 19 import java.util.List; | 19 import java.util.List; |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * The interface {@code FixesConsumer} defines the behavior of objects that cons
ume fixes for | 22 * The interface {@code FixesConsumer} defines the behavior of objects that cons
ume fixes for |
| 23 * errors. | 23 * errors. |
| 24 * | 24 * |
| 25 * @coverage dart.server | 25 * @coverage dart.server |
| 26 */ | 26 */ |
| 27 public interface GetFixesConsumer extends Consumer { | 27 public interface GetFixesConsumer extends Consumer { |
| 28 /** | 28 /** |
| 29 * A set fixes has been computed. Note that not every {@link AnalysisError} ca
n be fixed, so not | 29 * A set fixes has been computed. Note that not every {@link AnalysisError} ca
n be fixed, so not |
| 30 * for all of the any fixes will be returned. | 30 * for all of the any fixes will be returned. |
| 31 * | 31 * |
| 32 * @param errorFixesArray a list of computed error fixes | 32 * @param errorFixesArray a list of computed error fixes |
| 33 */ | 33 */ |
| 34 public void computedFixes(List<ErrorFixes> errorFixesArray); | 34 public void computedFixes(List<AnalysisErrorFixes> errorFixesArray); |
| 35 } | 35 } |
| OLD | NEW |