Introduce JetParameter#hasValOrVarNode() and use it instead of getValOrVarNode()

This commit is contained in:
Pavel V. Talanov
2014-04-07 17:48:49 +04:00
parent 26452c845c
commit 9aa5681d80
22 changed files with 29 additions and 21 deletions
@@ -123,7 +123,7 @@ public abstract class DataClassMethodGenerator {
private List<PropertyDescriptor> getDataProperties() {
List<PropertyDescriptor> result = Lists.newArrayList();
for (JetParameter parameter : getPrimaryConstructorParameters()) {
if (parameter.getValOrVarNode() != null) {
if (parameter.hasValOrVarNode()) {
result.add(bindingContext.get(BindingContext.PRIMARY_CONSTRUCTOR_PARAMETER, parameter));
}
}