Skip to content
Snippets Groups Projects
Commit bed4f57b authored by Johannes Mey's avatar Johannes Mey
Browse files

fix child count of Opt

parent 6ec7efd5
Branches
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ aspect JastAddAPIExtension {
if (child instanceof JastAddList) {
result += child.numChildren();
} else if (child instanceof Opt) {
if (getChild(0).numChildren() != 0) {
if (child.numChildren() != 0) {
result += 1;
}
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment