- changed title to Generate utility method to check if a List child is non-empty
Generate utility method to check if a List child is non-empty
Issue #130
resolved
It would be useful if JastAdd generated a utility method for each list child to check if the list contains at least one item. Example:
A ::= B*;
New utility method code:
public boolean A.hasB() {
return getNumB() > 0;
}
And add
public boolean List.isEmpty() { ... }
Comments (6)
-
reporter -
- changed milestone to JastAthon2013
-
assigned issue to
- edited description
-
- marked as minor
-
The has-method has been added in f7e7f00. The List.isEmpty method is not yet added.
-
Closing this issue. Moving the isEmpty issue to #139.
-
- changed status to resolved
Yes, closing it...
- Log in to comment