mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 21:10:29 +00:00
Private unions (#492)
* changed union of Statement to be private * changed the union in Expression to be private * changed union in Value to be private * changed AST constructors to be static methods * updates to syntax unit tests
This commit is contained in:
1 parent
1933cfeeeb
commit
8924f5620b
11 files changed
+1105
-780
No files matched your search
@@ -16,7 +16,8 @@ const Expression* ParenContents::AsExpression(int line_number) const {
|
||||
}
|
||||
|
||||
const Expression* ParenContents::AsTuple(int line_number) const {
|
||||
return MakeTuple(line_number, new std::vector<FieldInitializer>(fields_));
|
||||
return Expression::MakeTuple(line_number,
|
||||
new std::vector<FieldInitializer>(fields_));
|
||||
}
|
||||
|
||||
} // namespace Carbon
|
||||
Reference in new issue
Block a user