mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 10:01:06 +01:00
Initial batch of AST matchers. (#953)
Also fixes an issue where llvm casts wouldn't work on AstNode.
This commit is contained in:
@@ -93,6 +93,9 @@ enum class Operator {
|
||||
Ptr,
|
||||
};
|
||||
|
||||
// Returns the lexical representation of `op`, such as "+" for `Add`.
|
||||
auto ToString(Operator op) -> std::string_view;
|
||||
|
||||
class IdentifierExpression : public Expression {
|
||||
public:
|
||||
explicit IdentifierExpression(SourceLocation source_loc, std::string name)
|
||||
|
||||
Reference in New Issue
Block a user