Skip to content

Commit

Permalink
Add the unspecificUnaryOperator method again for Go
Browse files Browse the repository at this point in the history
  • Loading branch information
KuechA committed Nov 6, 2024
1 parent 58f373a commit 49dcc8d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -551,13 +551,17 @@ open class EvaluationOrderGraphPass(ctx: TranslationContext) : TranslationUnitPa
attachToEOG(node)
}

protected fun handleUnaryOperator(node: UnaryOperator) {
handleUnspecificUnaryOperator(node)
}

/**
* This function handles all regular unary operators that do not receive any special handling
* (such as [handleThrowOperator]). This gives language frontends a chance to override this
* function using [ReplacePass], handle specific operators on their own and delegate the rest to
* this function.
*/
protected fun handleUnaryOperator(node: UnaryOperator) {
protected open fun handleUnspecificUnaryOperator(node: UnaryOperator) {
val input = node.input
handleEOG(input)

Expand Down

0 comments on commit 49dcc8d

Please sign in to comment.