mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Parsing and basic checking for abstract class and base class. (#3385)
For now, we require the same introducer to be used each time a class is declared, but see #3384. --------- Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
co-authored by
Jon Ross-Perkins
parent
49591d1360
commit
2715e2276e
@@ -19,7 +19,7 @@ static auto HandleVar(Context& context, State finish_state,
|
||||
|
||||
context.AddLeafNode(NodeKind::VariableIntroducer, context.Consume());
|
||||
if (returned_token.is_valid()) {
|
||||
context.AddLeafNode(NodeKind::ReturnedSpecifier, returned_token);
|
||||
context.AddLeafNode(NodeKind::ReturnedModifier, returned_token);
|
||||
}
|
||||
|
||||
context.PushState(State::PatternAsVariable);
|
||||
|
||||
Reference in New Issue
Block a user