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 7c43f99e72..247894d56c 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 @@ -672,7 +672,7 @@ open class EvaluationOrderGraphPass(ctx: TranslationContext) : TranslationUnitPa attachToEOG(node) } - // TODO: Documentation missing + /** See [Specification](https://fraunhofer-aisec.github.io/cpg/CPG/specs/eog/#typeexpression) */ protected fun handleTypeExpression(node: TypeExpression) { attachToEOG(node) } diff --git a/docs/docs/CPG/specs/eog.md b/docs/docs/CPG/specs/eog.md index 84f341767b..a4c85071f4 100644 --- a/docs/docs/CPG/specs/eog.md +++ b/docs/docs/CPG/specs/eog.md @@ -881,6 +881,19 @@ flowchart LR ``` +## TypeExpression +The expression itself is connected to the outer EOG. + +Interesting fields: / + +Scheme: +```mermaid +flowchart LR + classDef outer fill:#fff,stroke:#ddd,stroke-dasharray:5 5; + prev:::outer --EOG--> parent["TypeExpression"] + parent --EOG--> next:::outer +``` +