Support for functions with a self parameter. (#3338)

So far, such functions can only be defined; calls are not supported yet.
This commit is contained in:
Richard Smith
2023-10-26 21:01:46 +00:00
committed by GitHub
parent e7b3d395b3
commit 04ae5a0531
26 changed files with 510 additions and 66 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ auto HandleExpressionInPostfix(Context& context) -> void {
break;
}
case Lex::TokenKind::SelfValueIdentifier: {
context.AddLeafNode(NodeKind::SelfValueName, context.Consume());
context.AddLeafNode(NodeKind::SelfValueNameExpression, context.Consume());
context.PushState(state);
break;
}