mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 17:11:04 +01:00
Use abbreviation "decl" instead of "declaration" (#3382)
Part of switching to the [abbreviations we've decided to use](https://docs.google.com/document/d/1RRYMm42osyqhI2LyjrjockYCutQ5dOf8Abu50kTrkX0/edit?resourcekey=0-kHyqOESbOHmzZphUbtLrTw#heading=h.pph7i5m5un7q). I will rename files in a follow-up PR.
This commit is contained in:
@@ -48,13 +48,13 @@ auto HandleLetFinish(Context& context) -> void {
|
||||
if (context.PositionIs(Lex::TokenKind::Semi)) {
|
||||
end_token = context.Consume();
|
||||
} else {
|
||||
context.EmitExpectedDeclarationSemi(Lex::TokenKind::Let);
|
||||
context.EmitExpectedDeclSemi(Lex::TokenKind::Let);
|
||||
state.has_error = true;
|
||||
if (auto semi_token = context.SkipPastLikelyEnd(state.token)) {
|
||||
end_token = *semi_token;
|
||||
}
|
||||
}
|
||||
context.AddNode(NodeKind::LetDeclaration, end_token, state.subtree_start,
|
||||
context.AddNode(NodeKind::LetDecl, end_token, state.subtree_start,
|
||||
state.has_error);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user