Skip to content

sui_v1.26.0_1716256257_ci

@awelc awelc tagged this 20 May 23:54
## Description 

This PR refines IDE support for macros. In particular:
- we get symbols for the macro function signature but not for its body

![image](https://github.com/MystenLabs/sui/assets/1724397/866d3c88-f59a-41be-bf47-a242b4c3fb62)

- we get symbols for macro invocation even though they disappear after
inlining (module name, macro function name, type params):

![image](https://github.com/MystenLabs/sui/assets/1724397/b4893bad-41df-4da6-9b6a-ccba2beb6e49)

![image](https://github.com/MystenLabs/sui/assets/1724397/2bfe71cf-8736-4c32-9bcc-843c1de2c95d)

![image](https://github.com/MystenLabs/sui/assets/1724397/ca896a29-11ad-4df8-956c-9bec4b83ed80)

- we get lambdas in macro invocations symbolicated properly even if they
are nested:

![image](https://github.com/MystenLabs/sui/assets/1724397/66bc4ed6-325e-4c1b-a137-1d1d8b116e16)

- we get first macro argument symbolicated correctly when using dot-call
syntax:

![image](https://github.com/MystenLabs/sui/assets/1724397/700c7a53-5f8e-4109-8892-dcc05b3dabd0)
- we get the name of the macro function even if it's aliased in dot-call
syntax:

![image](https://github.com/MystenLabs/sui/assets/1724397/209a7eb3-97ba-42d3-ab22-be0545542433)


## Test plan 

Additional tests have been added

---------

Co-authored-by: Rijnard van Tonder <rvantonder@gmail.com>
Assets 2
Loading