Compare commits

...

2 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire 5f81ac41db Pipelines
- Fixed Ubuntu APT issue
2024-04-24 14:34:41 +02:00
Tristan B. Velloza Kildaire ed346116a8 Parser
- Parent the addr eand assignment `Expression`s of a `PointerDereferenceAssignment`
2024-04-24 14:28:45 +02:00
2 changed files with 19 additions and 0 deletions

View File

@ -71,6 +71,10 @@ jobs:
# mv doveralls_linux_travis doveralls
# chmod +x doveralls
dub fetch doveralls
# Thank you Indian fella, you receive 1 satoshi (https://github.com/orgs/community/discussions/120966#discussioncomment-9211925)
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt update
sudo apt install libcurl4-openssl-dev

View File

@ -2029,6 +2029,21 @@ public final class Parser
parentToContainer(container, [varAssExp]);
}
/**
* If we have a `PointerDereferenceAssignment`
* then we must parent its left-hand and right-hand
* side expressions (the expression the address
* is derived from) and (the expression being
* assigned)
*/
else if(cast(PointerDereferenceAssignment)statement)
{
PointerDereferenceAssignment ptrDerefAss = cast(PointerDereferenceAssignment)statement;
Expression addrExp = ptrDerefAss.getPointerExpression();
Expression assExp = ptrDerefAss.getExpression();
parentToContainer(container, [addrExp, assExp]);
}
/**
* If we have a `FunctionCall`
* expression