| OLD | NEW |
| (Empty) | |
| 1 /* |
| 2 * Copyright (c) 2015, the Dart project authors. |
| 3 * |
| 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 |
| 6 * |
| 7 * http://www.eclipse.org/legal/epl-v10.html |
| 8 * |
| 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 |
| 11 * or implied. See the License for the specific language governing permissions a
nd limitations under |
| 12 * the License. |
| 13 */ |
| 14 package com.google.dart.server; |
| 15 |
| 16 import com.google.dart.server.generated.types.RequestError; |
| 17 |
| 18 /** |
| 19 * The interface {@code GetLibraryDependenciesConsumer} defines the behavior of
objects that consume |
| 20 * library dependency responses. |
| 21 * |
| 22 * @coverage dart.server |
| 23 */ |
| 24 public interface GetLibraryDependenciesConsumer extends Consumer { |
| 25 |
| 26 /** |
| 27 * A list of computed dependent library paths. |
| 28 * |
| 29 * @param libraries an array of computed library paths |
| 30 */ |
| 31 public void computedDependencies(String[] libraries); |
| 32 |
| 33 /** |
| 34 * If a result cannot be passed back, some {@link RequestError} is passed back
instead. |
| 35 * |
| 36 * @param requestError the reason why a result was not passed back |
| 37 */ |
| 38 public void onError(RequestError requestError); |
| 39 } |
| OLD | NEW |