Add 'pattern' and 'maxResults' to getElementDeclarations() request.

R=brianwilkerson@google.com

Change-Id: I2094fa106cbdd7bc4eff9015d94b34517b3d50a5
Reviewed-on: https://dart-review.googlesource.com/42180
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Konstantin Shcheglov
2018-02-26 18:46:27 +00:00
committed by commit-bot@chromium.org
parent f2f7ad2fdd
commit c3330ba080
6 changed files with 140 additions and 9 deletions
@@ -733,8 +733,13 @@ public interface AnalysisServer {
* {@code search.getElementDeclarations}
*
* Return top-level and class member declarations.
*
* @param pattern The regular expression used to match the names of declarations. If this field is
* missing, return all declarations.
* @param maxResults The maximum number of declarations to return. If this field is missing, return
* all matching declarations.
*/
public void search_getElementDeclarations(GetElementDeclarationsConsumer consumer);
public void search_getElementDeclarations(String pattern, int maxResults, GetElementDeclarationsConsumer consumer);
/**
* {@code search.getTypeHierarchy}