mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 07:30:11 +01:00
Support parsing and testing unimplemented expressions (#957)
Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
Jon Meow
parent
be0c1e9da6
commit
dc5e62fc7a
@@ -184,6 +184,17 @@ void Expression::Print(llvm::raw_ostream& out) const {
|
||||
out << "print";
|
||||
}
|
||||
out << ")";
|
||||
break;
|
||||
case ExpressionKind::UnimplementedExpression: {
|
||||
const auto& unimplemented = cast<UnimplementedExpression>(*this);
|
||||
out << "UnimplementedExpression<" << unimplemented.label() << ">(";
|
||||
llvm::ListSeparator sep;
|
||||
for (Nonnull<const AstNode*> child : unimplemented.children()) {
|
||||
out << sep << *child;
|
||||
}
|
||||
out << ")";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user