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:
josh11b
2023-11-10 10:43:25 +00:00
committed by GitHub
parent 11ca083855
commit 5020fdb3be
229 changed files with 565 additions and 601 deletions
+2 -2
View File
@@ -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);
}