Abbreviate "parameter" -> "param" (#3392)

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.

---------

Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
josh11b
2023-11-13 19:06:54 +00:00
committed by GitHub
co-authored by Jon Ross-Perkins
parent 522dcc44c5
commit c53b248800
142 changed files with 614 additions and 640 deletions
+8 -9
View File
@@ -68,9 +68,9 @@ TEST_F(TreeTest, PrintPostorderAsYAML) {
ElementsAre(Pair("kind", "FunctionIntroducer"), Pair("text", "fn"))),
Yaml::Mapping(ElementsAre(Pair("kind", "Name"), Pair("text", "F"))),
Yaml::Mapping(
ElementsAre(Pair("kind", "ParameterListStart"), Pair("text", "("))),
Yaml::Mapping(ElementsAre(Pair("kind", "ParameterList"),
Pair("text", ")"), Pair("subtree_size", "2"))),
ElementsAre(Pair("kind", "ParamListStart"), Pair("text", "("))),
Yaml::Mapping(ElementsAre(Pair("kind", "ParamList"), Pair("text", ")"),
Pair("subtree_size", "2"))),
Yaml::Mapping(ElementsAre(Pair("kind", "FunctionDecl"), Pair("text", ";"),
Pair("subtree_size", "5"))),
Yaml::Mapping(ElementsAre(Pair("kind", "FileEnd"), Pair("text", "")))));
@@ -89,8 +89,8 @@ TEST_F(TreeTest, PrintPreorderAsYAML) {
TestRawOstream print_stream;
tree.Print(print_stream, /*preorder=*/true);
auto parameter_list = Yaml::Sequence(ElementsAre(Yaml::Mapping(
ElementsAre(Pair("node_index", "3"), Pair("kind", "ParameterListStart"),
auto param_list = Yaml::Sequence(ElementsAre(Yaml::Mapping(
ElementsAre(Pair("node_index", "3"), Pair("kind", "ParamListStart"),
Pair("text", "(")))));
auto function_decl = Yaml::Sequence(ElementsAre(
@@ -99,10 +99,9 @@ TEST_F(TreeTest, PrintPreorderAsYAML) {
Pair("text", "fn"))),
Yaml::Mapping(ElementsAre(Pair("node_index", "2"), Pair("kind", "Name"),
Pair("text", "F"))),
Yaml::Mapping(ElementsAre(Pair("node_index", "4"),
Pair("kind", "ParameterList"),
Pair("text", ")"), Pair("subtree_size", "2"),
Pair("children", parameter_list)))));
Yaml::Mapping(ElementsAre(
Pair("node_index", "4"), Pair("kind", "ParamList"), Pair("text", ")"),
Pair("subtree_size", "2"), Pair("children", param_list)))));
auto file = Yaml::Sequence(ElementsAre(
Yaml::Mapping(ElementsAre(Pair("node_index", "0"),