mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 18:40:29 +00:00
Rename Name -> IdentifierName given that we have several other kinds of parse nodes that represent names. (#3453)
Factor out common checking handling for the different kinds of unqualified names
This commit is contained in:
1 parent
bf8697113a
commit
fe6f7b4330
201 files changed
+712
-725
No files matched your search
@@ -66,7 +66,8 @@ TEST_F(TreeTest, PrintPostorderAsYAML) {
|
||||
Yaml::Mapping(ElementsAre(Pair("kind", "FileStart"), Pair("text", ""))),
|
||||
Yaml::Mapping(
|
||||
ElementsAre(Pair("kind", "FunctionIntroducer"), Pair("text", "fn"))),
|
||||
Yaml::Mapping(ElementsAre(Pair("kind", "Name"), Pair("text", "F"))),
|
||||
Yaml::Mapping(
|
||||
ElementsAre(Pair("kind", "IdentifierName"), Pair("text", "F"))),
|
||||
Yaml::Mapping(
|
||||
ElementsAre(Pair("kind", "ParamListStart"), Pair("text", "("))),
|
||||
Yaml::Mapping(ElementsAre(Pair("kind", "ParamList"), Pair("text", ")"),
|
||||
@@ -97,7 +98,8 @@ TEST_F(TreeTest, PrintPreorderAsYAML) {
|
||||
Yaml::Mapping(ElementsAre(Pair("node_index", "1"),
|
||||
Pair("kind", "FunctionIntroducer"),
|
||||
Pair("text", "fn"))),
|
||||
Yaml::Mapping(ElementsAre(Pair("node_index", "2"), Pair("kind", "Name"),
|
||||
Yaml::Mapping(ElementsAre(Pair("node_index", "2"),
|
||||
Pair("kind", "IdentifierName"),
|
||||
Pair("text", "F"))),
|
||||
Yaml::Mapping(ElementsAre(
|
||||
Pair("node_index", "4"), Pair("kind", "ParamList"), Pair("text", ")"),
|
||||
|
||||
Reference in new issue
Block a user