mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Merge branch 'master' of https://github.com/beefytech/Beef into FuzzyAutoComplete
This commit is contained in:
parent
c2c7431620
commit
b70745ef1e
48 changed files with 2975 additions and 918 deletions
|
@ -5912,12 +5912,9 @@ BfAstNode* BfReducer::ReadTypeMember(BfTokenNode* tokenNode, bool declStarted, i
|
|||
ReplaceNode(tokenNode, operatorDecl);
|
||||
operatorDecl->mOperatorToken = tokenNode;
|
||||
|
||||
auto nextIdentifier = ExpectIdentifierAfter(operatorDecl, "type");
|
||||
if (nextIdentifier == NULL)
|
||||
return operatorDecl;
|
||||
mVisitorPos.mReadPos--; // Backtrack, that's part of our type
|
||||
|
||||
auto typeRef = CreateTypeRefAfter(operatorDecl);
|
||||
if (typeRef == NULL)
|
||||
return operatorDecl;
|
||||
MEMBER_SET_CHECKED(operatorDecl, mReturnType, typeRef);
|
||||
operatorDecl->mIsConvOperator = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue