Skip to content

Commit

Permalink
fix: Allow LDC to support method types in addition to array and objec…
Browse files Browse the repository at this point in the history
…t types
  • Loading branch information
Col-E committed Aug 22, 2021
1 parent 293f3aa commit 30b9b8c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -37,7 +37,7 @@ public LdcInsnAST visit(int lineNo, String line) throws ASTParseException {
HandleParser parser = new HandleParser();
parser.setOffset(ti + space + 1);
ast = parser.visit(lineNo, content.substring(content.indexOf('[') + 1, content.lastIndexOf(']')));
} else if(content.contains("[") || content.contains(";")) {
} else if(content.startsWith("(") || content.contains("[") || content.contains(";")) {
// Type
DescParser parser = new DescParser();
parser.setOffset(ti + space + 1);
Expand Down

0 comments on commit 30b9b8c

Please sign in to comment.