Clean up some redundant name qualifiers. (#3681)

This commit is contained in:
Jon Ross-Perkins
2024-02-02 04:25:50 +00:00
committed by GitHub
parent 3a489fd7b4
commit 7e06b703bf
2 changed files with 21 additions and 25 deletions
+4 -4
View File
@@ -6,7 +6,7 @@
namespace Carbon::Parse {
static auto ExpectAsOrTypeExpression(Carbon::Parse::Context& context) -> void {
static auto ExpectAsOrTypeExpression(Context& context) -> void {
if (context.PositionIs(Lex::TokenKind::As)) {
// as <expression> ...
context.AddLeafNode(NodeKind::DefaultSelfImplAs, context.Consume());
@@ -18,7 +18,7 @@ static auto ExpectAsOrTypeExpression(Carbon::Parse::Context& context) -> void {
}
}
auto HandleImplAfterIntroducer(Carbon::Parse::Context& context) -> void {
auto HandleImplAfterIntroducer(Context& context) -> void {
auto state = context.PopState();
state.state = State::DeclOrDefinitionAsImpl;
context.PushState(state);
@@ -48,7 +48,7 @@ auto HandleImplAfterIntroducer(Carbon::Parse::Context& context) -> void {
}
}
auto HandleImplAfterForall(Carbon::Parse::Context& context) -> void {
auto HandleImplAfterForall(Context& context) -> void {
auto state = context.PopState();
if (state.has_error) {
context.ReturnErrorOnState();
@@ -61,7 +61,7 @@ auto HandleImplAfterForall(Carbon::Parse::Context& context) -> void {
ExpectAsOrTypeExpression(context);
}
auto HandleImplBeforeAs(Carbon::Parse::Context& context) -> void {
auto HandleImplBeforeAs(Context& context) -> void {
auto state = context.PopState();
if (auto as = context.ConsumeIf(Lex::TokenKind::As)) {
context.AddNode(NodeKind::TypeImplAs, *as, state.subtree_start,