Skip to content

Commit

Permalink
Add TypedExprHelper.wrapParenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeRanDev committed Nov 29, 2024
1 parent e78e385 commit 8696657
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/reflaxe/helpers/TypedExprHelper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class TypedExprHelper {
}
}

public static function wrapParenthesis(expr: TypedExpr): TypedExpr {
return { expr: TParenthesis(expr), pos: expr.pos, t: expr.t };
}

public static function unwrapBlock(expr: TypedExpr): Array<TypedExpr> {
return switch(expr.expr) {
case TBlock(exprList): exprList;
Expand Down

0 comments on commit 8696657

Please sign in to comment.