| 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.SearchResult; |
| 17 |
| 16 /** | 18 /** |
| 17 * The interface {@code SearchReferencesConsumer} defines the behavior of object
s that consume | 19 * The interface {@code SearchReferencesConsumer} defines the behavior of object
s that consume |
| 18 * {@link SearchResult}s. | 20 * {@link SearchResult}s. |
| 19 * | 21 * |
| 20 * @coverage dart.server | 22 * @coverage dart.server |
| 21 */ | 23 */ |
| 22 public interface SearchResultsConsumer extends Consumer { | 24 public interface SearchResultsConsumer extends Consumer { |
| 23 /** | 25 /** |
| 24 * {@link SearchResult}s have been computed. | 26 * {@link SearchResult}s have been computed. |
| 25 * | 27 * |
| 26 * @param contextId the identifier of the context to search within | 28 * @param contextId the identifier of the context to search within |
| 27 * @param searchResults an array of {@link SearchResult}s computed so far | 29 * @param searchResults an array of {@link SearchResult}s computed so far |
| 28 * @param isLastResult is {@code true} if this is the last set of results | 30 * @param isLastResult is {@code true} if this is the last set of results |
| 29 */ | 31 */ |
| 30 public void computed(SearchResult[] searchResults, boolean isLastResult); | 32 public void computed(SearchResult[] searchResults, boolean isLastResult); |
| 31 } | 33 } |
| OLD | NEW |