From 49dcc8dba76cb04dcd8779aa09ab8dba09cf72eb Mon Sep 17 00:00:00 2001 From: Alexander Kuechler Date: Wed, 6 Nov 2024 10:11:08 +0100 Subject: [PATCH] Add the unspecificUnaryOperator method again for Go --- .../fraunhofer/aisec/cpg/passes/EvaluationOrderGraphPass.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/passes/EvaluationOrderGraphPass.kt b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/passes/EvaluationOrderGraphPass.kt index 522763bf97..f1a5da1377 100644 --- a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/passes/EvaluationOrderGraphPass.kt +++ b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/passes/EvaluationOrderGraphPass.kt @@ -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)