| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015, the Dart project authors. | 2 * Copyright (c) 2015, 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.RequestError; | 16 import com.google.dart.server.generated.types.RequestError; |
| 17 | 17 |
| 18 import java.util.List; |
| 19 import java.util.Map; |
| 20 |
| 18 /** | 21 /** |
| 19 * The interface {@code GetLibraryDependenciesConsumer} defines the behavior of
objects that consume | 22 * The interface {@code GetLibraryDependenciesConsumer} defines the behavior of
objects that consume |
| 20 * library dependency responses. | 23 * library dependency responses. |
| 21 * | 24 * |
| 22 * @coverage dart.server | 25 * @coverage dart.server |
| 23 */ | 26 */ |
| 24 public interface GetLibraryDependenciesConsumer extends Consumer { | 27 public interface GetLibraryDependenciesConsumer extends Consumer { |
| 25 | 28 |
| 26 /** | 29 /** |
| 27 * A list of computed dependent library paths. | 30 * A list of computed dependent library paths. |
| 28 * | 31 * |
| 29 * @param libraries an array of computed library paths | 32 * @param libraries an array of computed library paths |
| 33 * @param packageMap a map of context source roots to maps of package names to
lists of associated |
| 34 * source directories |
| 30 */ | 35 */ |
| 31 public void computedDependencies(String[] libraries); | 36 public void computedDependencies(String[] libraries, |
| 37 Map<String, Map<String, List<String>>> packageMap); |
| 32 | 38 |
| 33 /** | 39 /** |
| 34 * If a result cannot be passed back, some {@link RequestError} is passed back
instead. | 40 * If a result cannot be passed back, some {@link RequestError} is passed back
instead. |
| 35 * | 41 * |
| 36 * @param requestError the reason why a result was not passed back | 42 * @param requestError the reason why a result was not passed back |
| 37 */ | 43 */ |
| 38 public void onError(RequestError requestError); | 44 public void onError(RequestError requestError); |
| 39 } | 45 } |
| OLD | NEW |