Skip to content

Commit f312bf1

Browse files
committed
refine Op to UnaryOp and BinaryOp
1 parent 37c0e96 commit f312bf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/decaf/frontend/tree/TreeTmpl.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ trait TreeTmpl {
370370
* @param op unary operator
371371
* @param operand operand
372372
*/
373-
case class Unary(op: Op, operand: Expr)(implicit val annot: ExprAnnot) extends Expr
373+
case class Unary(op: UnaryOp, operand: Expr)(implicit val annot: ExprAnnot) extends Expr
374374

375375
/**
376376
* Binary expression.
@@ -379,7 +379,7 @@ trait TreeTmpl {
379379
* @param lhs left operand
380380
* @param rhs right operand
381381
*/
382-
case class Binary(op: Op, lhs: Expr, rhs: Expr)(implicit val annot: ExprAnnot) extends Expr
382+
case class Binary(op: BinaryOp, lhs: Expr, rhs: Expr)(implicit val annot: ExprAnnot) extends Expr
383383

384384
/**
385385
* IO expression for reading an integer from stdin: {{{ ReadInteger() }}}

0 commit comments

Comments
 (0)