Currently there is no way to get the source positions of a method parameter list. Please review attached patch.
Created attachment 108653 [details]
JL01: Please annotate the method with the "nullness" annotations. In this particular case, it should probably be something like:
public @CheckForNull int findMethodParameterSpan(@NonNull MethodTree method)
(The existing methods predate the annotations, IIRC, and so are not annotated (yet), but newly added methods should always include these annotations, IMO.)
Created attachment 108656 [details]
Patch with annotations, see JL01
I updated the patch to include the annotations @CheckForNull and @NonNull to the method declaration.
Author: Ralph Benjamin Ruijs <firstname.lastname@example.org>
Date: 2011-06-08 10:37
Issue #199080 - New API method in TreeUtilities to find method parameter list span.
Integrated into 'main-golden'
User: Ralph Benjamin Ruijs <email@example.com>
Log: Issue #199080 - New API method in TreeUtilities to find method parameter list span.