mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fixed null token crash while typing 'Program.this'
This commit is contained in:
parent
b12b49aec3
commit
f43da38dbb
1 changed files with 10 additions and 8 deletions
|
@ -8327,7 +8327,8 @@ BfObjectCreateExpression* BfReducer::CreateObjectCreateExpression(BfAstNode* all
|
|||
|
||||
if (objectCreateExpr->mCtorExplicit != NULL)
|
||||
{
|
||||
nextToken = BfNodeDynCast<BfTokenNode>(mVisitorPos.GetNext());
|
||||
if (nextToken = BfNodeDynCast<BfTokenNode>(mVisitorPos.GetNext()))
|
||||
{
|
||||
if ((nextToken->mToken != NULL) && (nextToken->mToken == BfToken_LChevron))
|
||||
{
|
||||
mVisitorPos.MoveNext();
|
||||
|
@ -8338,6 +8339,7 @@ BfObjectCreateExpression* BfReducer::CreateObjectCreateExpression(BfAstNode* all
|
|||
objectCreateExpr->mSrcEnd = objectCreateExpr->mCtorExplicit->mSrcEnd;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Note- if there WERE an LBracket here then we'd have an 'isArray' case. We pass this in here for
|
||||
// error display purposes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue