mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +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
@@ -15,7 +15,7 @@ auto HandleVariableIntroducer(Context& context, Parse::Node parse_node)
|
||||
return true;
|
||||
}
|
||||
|
||||
auto HandleReturnedSpecifier(Context& context, Parse::Node parse_node) -> bool {
|
||||
auto HandleReturnedModifier(Context& context, Parse::Node parse_node) -> bool {
|
||||
// No action, just a bracketing node.
|
||||
context.node_stack().Push(parse_node);
|
||||
return true;
|
||||
@@ -54,7 +54,7 @@ auto HandleVariableDecl(Context& context, Parse::Node parse_node) -> bool {
|
||||
|
||||
// Pop the `returned` specifier if present.
|
||||
context.node_stack()
|
||||
.PopAndDiscardSoloParseNodeIf<Parse::NodeKind::ReturnedSpecifier>();
|
||||
.PopAndDiscardSoloParseNodeIf<Parse::NodeKind::ReturnedModifier>();
|
||||
|
||||
// If there was an initializer, assign it to the storage.
|
||||
if (has_init) {
|
||||
|
||||
Reference in New Issue
Block a user