mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
commit
3d8d6429ef
@ -25,13 +25,13 @@ a semantically equivalent transformation as long as it is performed after the
|
|||||||
disambiguation stage. The reason is that moving a definition upwards cannot decrease
|
disambiguation stage. The reason is that moving a definition upwards cannot decrease
|
||||||
its visibility and it is impossible to reference variables defined in a different function.
|
its visibility and it is impossible to reference variables defined in a different function.
|
||||||
|
|
||||||
The benefit of this stage is that function definitions can be lookup up more easily.
|
The benefit of this stage is that function definitions can be looked up more easily.
|
||||||
|
|
||||||
## Function Grouper
|
## Function Grouper
|
||||||
|
|
||||||
The function grouper has to be applied after the disambiguator and the function hoister.
|
The function grouper has to be applied after the disambiguator and the function hoister.
|
||||||
Its effect is that all topmost elements that are not function definitions are moved
|
Its effect is that all topmost elements that are not function definitions are moved
|
||||||
into a single block which is the first satement of the root block.
|
into a single block which is the first statement of the root block.
|
||||||
|
|
||||||
After this step, a program has the following normal form:
|
After this step, a program has the following normal form:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user