mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +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:
@@ -52,13 +52,13 @@ auto HandleVarFinishAsSemicolon(Context& context) -> void {
|
||||
end_token = context.Consume();
|
||||
} else {
|
||||
// TODO: Disambiguate between statement and member declaration.
|
||||
context.EmitExpectedDeclarationSemi(Lex::TokenKind::Var);
|
||||
context.EmitExpectedDeclSemi(Lex::TokenKind::Var);
|
||||
state.has_error = true;
|
||||
if (auto semi_token = context.SkipPastLikelyEnd(state.token)) {
|
||||
end_token = *semi_token;
|
||||
}
|
||||
}
|
||||
context.AddNode(NodeKind::VariableDeclaration, end_token, state.subtree_start,
|
||||
context.AddNode(NodeKind::VariableDecl, end_token, state.subtree_start,
|
||||
state.has_error);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user