mirror of
https://github.com/PashaBibko/LX.git
synced 2026-04-04 18:09:03 +00:00
Changed how scopes work
Also added logging and GenIR functions for VariableDeclaration
This commit is contained in:
@@ -40,4 +40,10 @@ namespace LX::AST
|
||||
m_Val->Log(log, depth + 1);
|
||||
}
|
||||
}
|
||||
|
||||
void VariableDeclaration::Log(std::ofstream* log, unsigned depth)
|
||||
{
|
||||
(*log) << std::string(depth, '\t');
|
||||
(*log) << "Variable declaration: " << m_Name << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user