mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 10:02:41 +00:00
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:
1 parent
e7b3d395b3
commit
04ae5a0531
26 files changed
+510
-66
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user