mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed error refNode for "Expected 'get' or 'set'"
This commit is contained in:
parent
ca2301bfd3
commit
632c8a4cc5
1 changed files with 4 additions and 2 deletions
|
@ -6504,7 +6504,10 @@ void BfReducer::ReadPropertyBlock(BfPropertyDeclaration* propertyDeclaration, Bf
|
|||
}
|
||||
else
|
||||
{
|
||||
Fail("Expected 'set' or 'get'", identifierNode);
|
||||
auto refNode = child;
|
||||
if (refNode == NULL)
|
||||
refNode = block->mCloseBrace;
|
||||
Fail("Expected 'get' or 'set'", refNode);
|
||||
}
|
||||
|
||||
BfAstNode* bodyAfterNode = accessorIdentifier;
|
||||
|
@ -6582,7 +6585,6 @@ void BfReducer::ReadPropertyBlock(BfPropertyDeclaration* propertyDeclaration, Bf
|
|||
AddErrorNode(child);
|
||||
mVisitorPos.MoveNext();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue