Closed mhasel closed 2 months ago
Attention: Patch coverage is 89.86928%
with 124 lines
in your changes missing coverage. Please review.
Project coverage is 91.37%. Comparing base (
be78df6
) to head (7645b17
). Report is 53 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Adds a lowering stage in the pipeline to rusty. A new AstVisitorMut trait is introduced, which basically copies the existing AstVisitor trait line for line, but with mutable borrows of visited items instead to allow for in-place manipulation/replacements.
Init functions are now lowered into the AST after the annotation-step. A new AST is created and a new index and annotations are created based on the updated AST.
Adds support for stack-local initializers in POUs (functions, VAR_TEMP)
Out of scope of this PR:
ARRAY[..] OF STRUCT/POU
)fb: foo := (s1 := REF(ps));
such that__init_foo
initializesfoo.s1
with the address ofps
instead of the default type initializer)I will create tracking issues for these features once this PR has been reviewed and approved.