- Do the alias expansion first, then everything else
This commit is contained in:
Tristan B. Velloza Kildaire 2024-05-08 17:48:17 +02:00
parent 657fe07b90
commit 9a9dc6d82e
1 changed files with 3 additions and 3 deletions

View File

@ -57,12 +57,12 @@ public class MetaProcessor
{
DEBUG("MetaProcessor: Examining AST node '"~curStmt.toString()~"'...");
// Perform alias expression replacement
doAliasExpression(container, curStmt);
// Perform replacement of all type alises to concrete types, such as `size_t`
doTypeAlias(container, curStmt);
// Perform alias expression replacement (TODO: Should this be here?)
doAliasExpression(container, curStmt);
/**
* Search for any `sizeof(<ident_type>)` expressions
* and replace them with a `NumberLiteral`