Closed michprev closed 1 year ago
This issue has been marked as stale due to inactivity for the last 90 days. It will be automatically closed in 7 days.
Hi everyone! This issue has been automatically closed due to inactivity. If you think this issue is still relevant in the latest Solidity version and you have something to contribute, feel free to reopen. However, unless the issue is a concrete proposal that can be implemented, we recommend starting a language discussion on the forum instead.
Description
Byte location (src) of the
FunctionTypeName
AST node is incorrect when combined with theVariableDeclaration
parent node.Environment
Steps to Reproduce
Please consider the following example (taken from https://docs.soliditylang.org/en/v0.8.15/assembly.html#access-to-external-variables-functions-and-libraries):
And the relevant part of the generated AST (return parameters of the
combineToFunctionPointer
function):Current behavior:
src
of theFunctionTypeName
node (AST ID 9) is250:23:0
.Expected behavior:
src
of theFunctionTypeName
node (AST ID 9) should be250:19:0
.