mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 15:51:04 +01:00
Unify DeclaredName and DesignatedName as just Identifier (#2939)
This is just a simplification: I think these different forms are getting in the way more than they're helping, particularly as I was looking into namespace functionality. The handling in semantics can be identical, providing a more uniform behavior.
This commit is contained in:
@@ -57,7 +57,7 @@ TEST_F(ParseTreeTest, PrintPostorderAsYAML) {
|
||||
|
||||
auto file = Yaml::SequenceValue{
|
||||
Yaml::MappingValue{{"kind", "FunctionIntroducer"}, {"text", "fn"}},
|
||||
Yaml::MappingValue{{"kind", "DeclaredName"}, {"text", "F"}},
|
||||
Yaml::MappingValue{{"kind", "Identifier"}, {"text", "F"}},
|
||||
Yaml::MappingValue{{"kind", "ParameterListStart"}, {"text", "("}},
|
||||
Yaml::MappingValue{
|
||||
{"kind", "ParameterList"}, {"text", ")"}, {"subtree_size", "2"}},
|
||||
@@ -86,7 +86,7 @@ TEST_F(ParseTreeTest, PrintPreorderAsYAML) {
|
||||
Yaml::MappingValue{
|
||||
{"node_index", "0"}, {"kind", "FunctionIntroducer"}, {"text", "fn"}},
|
||||
Yaml::MappingValue{
|
||||
{"node_index", "1"}, {"kind", "DeclaredName"}, {"text", "F"}},
|
||||
{"node_index", "1"}, {"kind", "Identifier"}, {"text", "F"}},
|
||||
Yaml::MappingValue{{"node_index", "3"},
|
||||
{"kind", "ParameterList"},
|
||||
{"text", ")"},
|
||||
|
||||
Reference in New Issue
Block a user