mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 15:18:11 +00:00
This reverts commit bf6bb800c4.
This commit is contained in:
1 parent
8b3bb7c5e9
commit
f5300a84e5
55 files changed
+7431
-293
No files matched your search
@@ -21,8 +21,9 @@ void StructDeclaration::Print() const {
|
||||
void ChoiceDeclaration::Print() const {
|
||||
std::cout << "choice " << name << " {" << std::endl;
|
||||
for (auto& alternative : alternatives) {
|
||||
std::cout << "alt " << alternative.first << " " << *alternative.second
|
||||
<< ";" << std::endl;
|
||||
std::cout << "alt " << alternative.first << " ";
|
||||
PrintExp(alternative.second);
|
||||
std::cout << ";" << std::endl;
|
||||
}
|
||||
std::cout << "}" << std::endl;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user