mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
change all expression and statement pointers to be const (#449)
* change all expression and statement pointers to be const * const in paren tests
This commit is contained in:
@@ -59,7 +59,7 @@ void PrintActList(Stack<Action*> ls, std::ostream& out) {
|
||||
}
|
||||
}
|
||||
|
||||
auto MakeExpAct(Expression* e) -> Action* {
|
||||
auto MakeExpAct(const Expression* e) -> Action* {
|
||||
auto* act = new Action();
|
||||
act->tag = ActionKind::ExpressionAction;
|
||||
act->u.exp = e;
|
||||
@@ -67,7 +67,7 @@ auto MakeExpAct(Expression* e) -> Action* {
|
||||
return act;
|
||||
}
|
||||
|
||||
auto MakeLvalAct(Expression* e) -> Action* {
|
||||
auto MakeLvalAct(const Expression* e) -> Action* {
|
||||
auto* act = new Action();
|
||||
act->tag = ActionKind::LValAction;
|
||||
act->u.exp = e;
|
||||
@@ -75,7 +75,7 @@ auto MakeLvalAct(Expression* e) -> Action* {
|
||||
return act;
|
||||
}
|
||||
|
||||
auto MakeStmtAct(Statement* s) -> Action* {
|
||||
auto MakeStmtAct(const Statement* s) -> Action* {
|
||||
auto* act = new Action();
|
||||
act->tag = ActionKind::StatementAction;
|
||||
act->u.stmt = s;
|
||||
|
||||
Reference in New Issue
Block a user