|
|
@@ -24,7 +24,6 @@ class Action {
|
|
|
ExpressionAction,
|
|
|
PatternAction,
|
|
|
StatementAction,
|
|
|
- ValAction,
|
|
|
};
|
|
|
|
|
|
Action(const Value&) = delete;
|
|
|
@@ -131,20 +130,6 @@ class StatementAction : public Action {
|
|
|
const Statement* stmt;
|
|
|
};
|
|
|
|
|
|
-class ValAction : public Action {
|
|
|
- public:
|
|
|
- explicit ValAction(const Value* val) : Action(Kind::ValAction), val(val) {}
|
|
|
-
|
|
|
- static auto classof(const Action* action) -> bool {
|
|
|
- return action->Tag() == Kind::ValAction;
|
|
|
- }
|
|
|
-
|
|
|
- auto Val() const -> const Value* { return val; }
|
|
|
-
|
|
|
- private:
|
|
|
- const Value* val;
|
|
|
-};
|
|
|
-
|
|
|
} // namespace Carbon
|
|
|
|
|
|
#endif // EXECUTABLE_SEMANTICS_INTERPRETER_ACTION_H_
|