mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 21:21: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:
@@ -70,8 +70,8 @@ TEST_F(TreeTest, PrintPostorderAsYAML) {
|
||||
ElementsAre(Pair("kind", "ParameterListStart"), Pair("text", "("))),
|
||||
Yaml::Mapping(ElementsAre(Pair("kind", "ParameterList"),
|
||||
Pair("text", ")"), Pair("subtree_size", "2"))),
|
||||
Yaml::Mapping(ElementsAre(Pair("kind", "FunctionDeclaration"),
|
||||
Pair("text", ";"), Pair("subtree_size", "5"))),
|
||||
Yaml::Mapping(ElementsAre(Pair("kind", "FunctionDecl"), Pair("text", ";"),
|
||||
Pair("subtree_size", "5"))),
|
||||
Yaml::Mapping(ElementsAre(Pair("kind", "FileEnd"), Pair("text", "")))));
|
||||
|
||||
auto root = Yaml::Sequence(ElementsAre(Yaml::Mapping(
|
||||
@@ -107,8 +107,8 @@ TEST_F(TreeTest, PrintPreorderAsYAML) {
|
||||
Yaml::Mapping(ElementsAre(Pair("node_index", "0"),
|
||||
Pair("kind", "FileStart"), Pair("text", ""))),
|
||||
Yaml::Mapping(ElementsAre(Pair("node_index", "5"),
|
||||
Pair("kind", "FunctionDeclaration"),
|
||||
Pair("text", ";"), Pair("subtree_size", "5"),
|
||||
Pair("kind", "FunctionDecl"), Pair("text", ";"),
|
||||
Pair("subtree_size", "5"),
|
||||
Pair("children", function_decl))),
|
||||
Yaml::Mapping(ElementsAre(Pair("node_index", "6"),
|
||||
Pair("kind", "FileEnd"), Pair("text", "")))));
|
||||
|
||||
Reference in New Issue
Block a user