Skip to content

feat: Aliasing #1258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jul 25, 2024
Merged

feat: Aliasing #1258

merged 16 commits into from
Jul 25, 2024

Conversation

volsa
Copy link
Member

@volsa volsa commented Jul 9, 2024

This PR introduces aliasing, where the AT keyword can be used on a reference declaration to create a REFERENCE TO pointer. Specifically foo AT bar : DINT internally resolves to foo : REFERENCE TO DINT := REF(bar).

@volsa volsa force-pushed the volsa/aliasing branch 3 times, most recently from 382a729 to 5110aa2 Compare July 12, 2024 07:08
volsa added 4 commits July 15, 2024 13:55
Will be replaced by an enum merging the is_auto_deref, is_reference_to and is_aliasing flags
Copy link

codecov bot commented Jul 17, 2024

Codecov Report

Attention: Patch coverage is 92.57642% with 17 lines in your changes missing coverage. Please review.

Project coverage is 91.19%. Comparing base (be78df6) to head (756ffd1).
Report is 43 commits behind head on master.

Files Patch % Lines
src/parser.rs 65.30% 17 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1258      +/-   ##
==========================================
+ Coverage   91.11%   91.19%   +0.08%     
==========================================
  Files         153      155       +2     
  Lines       44816    45791     +975     
==========================================
+ Hits        40833    41758     +925     
- Misses       3983     4033      +50     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@volsa volsa marked this pull request as ready for review July 17, 2024 10:57
@volsa volsa requested review from ghaith, mhasel and riederm July 17, 2024 10:58
@volsa volsa merged commit 446f073 into master Jul 25, 2024
19 checks passed
@volsa volsa deleted the volsa/aliasing branch July 25, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants