Allow member func attrs after postblit
This commit is contained in:
parent
3ddac7885f
commit
db71af8ddb
|
@ -1996,6 +1996,7 @@ public:
|
||||||
mixin (visitIfNotNull!(functionBody));
|
mixin (visitIfNotNull!(functionBody));
|
||||||
}
|
}
|
||||||
/** */ FunctionBody functionBody;
|
/** */ FunctionBody functionBody;
|
||||||
|
/** */ MemberFunctionAttribute[] memberFunctionAttributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|
|
@ -4134,7 +4134,7 @@ q{(int a, ...)
|
||||||
* Parses a Postblit
|
* Parses a Postblit
|
||||||
*
|
*
|
||||||
* $(GRAMMAR $(RULEDEF postblit):
|
* $(GRAMMAR $(RULEDEF postblit):
|
||||||
* $(LITERAL 'this') $(LITERAL '$(LPAREN)') $(LITERAL 'this') $(LITERAL '$(RPAREN)') ($(RULE functionBody) | $(LITERAL ';'))
|
* $(LITERAL 'this') $(LITERAL '$(LPAREN)') $(LITERAL 'this') $(LITERAL '$(RPAREN)') $(RULE memberFunctionAttribute)* ($(RULE functionBody) | $(LITERAL ';'))
|
||||||
* ;)
|
* ;)
|
||||||
*/
|
*/
|
||||||
Postblit parsePostblit()
|
Postblit parsePostblit()
|
||||||
|
@ -4144,6 +4144,8 @@ q{(int a, ...)
|
||||||
expect(tok!"(");
|
expect(tok!"(");
|
||||||
expect(tok!"this");
|
expect(tok!"this");
|
||||||
expect(tok!")");
|
expect(tok!")");
|
||||||
|
while (currentIsMemberFunctionAttribute())
|
||||||
|
node.memberFunctionAttributes ~= parseMemberFunctionAttribute();
|
||||||
if (currentIs(tok!";"))
|
if (currentIs(tok!";"))
|
||||||
advance();
|
advance();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue