(ImmutableList.Builder<Parameter> params, Parameter param)
| 1191 | } |
| 1192 | |
| 1193 | private void bindParam(ImmutableList.Builder<Parameter> params, Parameter param) { |
| 1194 | if (!bind( |
| 1195 | param.getIdentifier(), |
| 1196 | /* isLoad= */ false, |
| 1197 | // We set hasType to false, even if there is a param annotation. This is to avoid |
| 1198 | // complaining that an erroneous duplicated parameter has a type annotation, when we should |
| 1199 | // really just be complaining about the fact the param was duplicated at all. |
| 1200 | /* hasType= */ false, |
| 1201 | /* docComments= */ null)) { |
| 1202 | errorf(param, "duplicate parameter: %s", param.getName()); |
| 1203 | } |
| 1204 | params.add(param); |
| 1205 | } |
| 1206 | |
| 1207 | /** |
| 1208 | * Process a binding use of a name by adding a binding to the current block if not already bound, |
no test coverage detected