Parse auto type (#3704)

Handles `auto` in `parse` phase.
This commit is contained in:
czapiga
2024-02-14 17:47:37 +00:00
committed by GitHub
parent 0a0f66857d
commit 4873160acc
7 changed files with 132 additions and 0 deletions
+5
View File
@@ -133,6 +133,11 @@ auto HandleExprInPostfix(Context& context) -> void {
context.PushState(state);
break;
}
case Lex::TokenKind::Auto: {
context.AddLeafNode(NodeKind::AutoTypeLiteral, context.Consume());
context.PushState(state);
break;
}
case Lex::TokenKind::OpenCurlyBrace: {
context.PushState(state);
context.PushState(State::BraceExpr);