mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
String interpolation
This commit is contained in:
parent
22cc81862b
commit
281f19e04c
15 changed files with 379 additions and 59 deletions
|
@ -393,6 +393,20 @@ void BfSourceClassifier::Visit(BfLiteralExpression* literalExpr)
|
|||
SetElementType(literalExpr, BfSourceElementType_Literal);
|
||||
}
|
||||
|
||||
void BfSourceClassifier::Visit(BfStringInterpolationExpression* stringInterpolationExpression)
|
||||
{
|
||||
HandleLeafNode(stringInterpolationExpression);
|
||||
|
||||
Visit(stringInterpolationExpression->ToBase());
|
||||
SetElementType(stringInterpolationExpression, BfSourceElementType_Literal);
|
||||
|
||||
VisitChild(stringInterpolationExpression->mAllocNode);
|
||||
for (auto& expr : stringInterpolationExpression->mExpressions)
|
||||
{
|
||||
VisitChild(expr);
|
||||
}
|
||||
}
|
||||
|
||||
void BfSourceClassifier::Visit(BfTokenNode* tokenNode)
|
||||
{
|
||||
HandleLeafNode(tokenNode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue