Skip to content

Commit

Permalink
Fix logic of parsing function parameter with no arguments.
Browse files Browse the repository at this point in the history
Currently a function parameter with no arguments is not parsed correctly. Given `$.objects.keys().size()`, after encountering keys (a function with no arguments) the position should move from $.objects.keys`(`).size() to $.objects.keys()`.`size(). But in current implementation read position moves from $.objects.keys`(`).size() to $.objects.keys(`)`.size()

This pull request will fix this issue.
  • Loading branch information
q2w committed Jan 21, 2024
1 parent 0ed52b4 commit e1480db
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -235,7 +235,7 @@ else if (path.charAt(i) == OPEN_PARENTHESIS)
String functionName = path.subSequence(startPosition, endPosition).toString();
functionParameters = parseFunctionParameters(functionName);
} else {
path.setPosition(readPosition + 1);
path.setPosition(readPosition + 2);
}
}
else {
Expand Down

0 comments on commit e1480db

Please sign in to comment.