mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-26 22:02:30 +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
@@ -45,6 +45,9 @@ class AstNode {
|
||||
auto operator=(AstNode&&) -> AstNode& = delete;
|
||||
virtual ~AstNode() = 0;
|
||||
|
||||
virtual void Print(llvm::raw_ostream& out) const = 0;
|
||||
LLVM_DUMP_METHOD void Dump() const { Print(llvm::errs()); }
|
||||
|
||||
// Returns an enumerator specifying the concrete type of this node.
|
||||
//
|
||||
// Abstract subclasses of AstNode will provide their own `kind()` method
|
||||
|
||||
Reference in New Issue
Block a user