Skip to content

Commit

Permalink
[DOM To Model] Fix LocalVariable type signature
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelistria committed Feb 16, 2024
1 parent f521f4a commit 1656b25
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -820,10 +820,10 @@ private LocalVariable toLocalVariable(SingleVariableDeclaration parameter) {
return new LocalVariable(this.elements.peek(),
parameter.getName().getIdentifier(),
parameter.getStartPosition(),
parameter.getStartPosition() + parameter.getLength(),
parameter.getStartPosition() + parameter.getLength() - 1,
parameter.getName().getStartPosition(),
parameter.getName().getStartPosition() + parameter.getName().getLength(),
parameter.getType().toString(),
parameter.getName().getStartPosition() + parameter.getName().getLength() - 1,
Util.getSignature(parameter.getType()),
null, // TODO
parameter.getFlags(),
parameter.getParent() instanceof MethodDeclaration);
Expand Down

0 comments on commit 1656b25

Please sign in to comment.