mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
IsTypeReference arg fix
This commit is contained in:
parent
78c0462d87
commit
eefe25ef18
1 changed files with 2 additions and 2 deletions
|
@ -1723,7 +1723,7 @@ BfExpression* BfReducer::CreateExpression(BfAstNode* node, CreateExprFlags creat
|
|||
int endNodeIdx = -1;
|
||||
if ((IsTypeReference(exprLeft, BfToken_LBracket, -1, &endNodeIdx, NULL)))
|
||||
{
|
||||
if (IsTypeReference(exprLeft, BfToken_LBrace, NULL, NULL))
|
||||
if (IsTypeReference(exprLeft, BfToken_LBrace, -1, NULL, NULL))
|
||||
{
|
||||
BfSizedArrayCreateExpression* arrayCreateExpr = mAlloc->Alloc<BfSizedArrayCreateExpression>();
|
||||
auto typeRef = CreateTypeRef(exprLeft);
|
||||
|
@ -1752,7 +1752,7 @@ BfExpression* BfReducer::CreateExpression(BfAstNode* node, CreateExprFlags creat
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (IsTypeReference(exprLeft, BfToken_LParen, NULL, NULL))
|
||||
else if (IsTypeReference(exprLeft, BfToken_LParen, -1, NULL, NULL))
|
||||
{
|
||||
if (auto tokenNode = BfNodeDynCast<BfTokenNode>(mVisitorPos.Get(endNodeIdx - 1)))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue