mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 07:21:14 +00: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:
1 parent
11ca083855
commit
5020fdb3be
229 files changed
+565
-601
No files matched your search
@@ -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