Subexpr -> SubExpr (#3383)

This commit is contained in:
josh11b authored and GitHub committed 2023-11-10 20:48:46 +00:00
1 parent 4aa6a6894d
commit b953fbf314
2 files changed
+6 -6

No files matched your search

+5 -5
View File
@@ -6,11 +6,11 @@
namespace Carbon::Parse {
static auto DiagnoseStatementOperatorAsSubexpr(Context& context) -> void {
CARBON_DIAGNOSTIC(StatementOperatorAsSubexpr, Error,
static auto DiagnoseStatementOperatorAsSubExpr(Context& context) -> void {
CARBON_DIAGNOSTIC(StatementOperatorAsSubExpr, Error,
"Operator `{0}` can only be used as a complete statement.",
Lex::TokenKind);
context.emitter().Emit(*context.position(), StatementOperatorAsSubexpr,
context.emitter().Emit(*context.position(), StatementOperatorAsSubExpr,
context.PositionKind());
}
@@ -37,7 +37,7 @@ auto HandleExpr(Context& context) -> void {
context.PositionKind());
} else {
// This operator wouldn't be allowed even if parenthesized.
DiagnoseStatementOperatorAsSubexpr(context);
DiagnoseStatementOperatorAsSubExpr(context);
}
} else {
// Check that this operator follows the proper whitespace rules.
@@ -210,7 +210,7 @@ auto HandleExprLoop(Context& context) -> void {
context.emitter().Emit(*context.position(), OperatorRequiresParentheses);
} else {
// This operator wouldn't be allowed even if parenthesized.
DiagnoseStatementOperatorAsSubexpr(context);
DiagnoseStatementOperatorAsSubExpr(context);
}
state.has_error = true;
} else {