From e03b23999d69fd780502786c447d676f262100b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Leutha=CC=88user?= <1417198+max-leuthaeuser@users.noreply.github.com> Date: Mon, 30 Jun 2025 14:54:02 +0200 Subject: [PATCH] Deprecate CLOSURE_ORIGINAL_NAME For: https://github.com/ShiftLeftSecurity/codescience/issues/8347 --- .../codepropertygraph/generated/Properties.scala | 4 +++- .../codepropertygraph/generated/PropertyNames.java | 2 +- .../generated/nodes/ClosureBinding.scala | 8 ++++++-- .../io/shiftleft/codepropertygraph/schema/Hidden.scala | 3 ++- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/Properties.scala b/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/Properties.scala index 02d831046..59289eb2e 100644 --- a/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/Properties.scala +++ b/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/Properties.scala @@ -42,7 +42,9 @@ object Properties { */ val ClosureBindingId = flatgraph.OptionalPropertyKey[String](kind = 6, name = "CLOSURE_BINDING_ID") - /** The original name of the (potentially mangled) captured variable */ + /** Deprecated. Create an explict REF edge instead. Formerly the original name of the (potentially mangled) captured + * variable + */ val ClosureOriginalName = flatgraph.OptionalPropertyKey[String](kind = 7, name = "CLOSURE_ORIGINAL_NAME") /** This field holds the code snippet that the node represents. */ diff --git a/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/PropertyNames.java b/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/PropertyNames.java index 1a529f651..7fe2f9760 100644 --- a/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/PropertyNames.java +++ b/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/PropertyNames.java @@ -44,7 +44,7 @@ public class PropertyNames { /** Identifier which uniquely describes a CLOSURE_BINDING. This property is used to match captured LOCAL nodes with the corresponding CLOSURE_BINDING nodes */ public static final String CLOSURE_BINDING_ID = "CLOSURE_BINDING_ID"; -/** The original name of the (potentially mangled) captured variable */ +/** Deprecated. Create an explict REF edge instead. Formerly the original name of the (potentially mangled) captured variable */ public static final String CLOSURE_ORIGINAL_NAME = "CLOSURE_ORIGINAL_NAME"; /** This field holds the code snippet that the node represents. */ diff --git a/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/nodes/ClosureBinding.scala b/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/nodes/ClosureBinding.scala index 89e0d5983..c392290f5 100644 --- a/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/nodes/ClosureBinding.scala +++ b/domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/nodes/ClosureBinding.scala @@ -34,7 +34,9 @@ object ClosureBinding { */ val ClosureBindingId = "CLOSURE_BINDING_ID" - /** The original name of the (potentially mangled) captured variable */ + /** Deprecated. Create an explict REF edge instead. Formerly the original name of the (potentially mangled) captured + * variable + */ val ClosureOriginalName = "CLOSURE_ORIGINAL_NAME" /** For formal method input parameters, output parameters, and return parameters, this field holds the evaluation @@ -52,7 +54,9 @@ object ClosureBinding { */ val ClosureBindingId = flatgraph.OptionalPropertyKey[String](kind = 6, name = "CLOSURE_BINDING_ID") - /** The original name of the (potentially mangled) captured variable */ + /** Deprecated. Create an explict REF edge instead. Formerly the original name of the (potentially mangled) captured + * variable + */ val ClosureOriginalName = flatgraph.OptionalPropertyKey[String](kind = 7, name = "CLOSURE_ORIGINAL_NAME") /** For formal method input parameters, output parameters, and return parameters, this field holds the evaluation diff --git a/schema/src/main/scala/io/shiftleft/codepropertygraph/schema/Hidden.scala b/schema/src/main/scala/io/shiftleft/codepropertygraph/schema/Hidden.scala index db1719543..4e0a3cf18 100644 --- a/schema/src/main/scala/io/shiftleft/codepropertygraph/schema/Hidden.scala +++ b/schema/src/main/scala/io/shiftleft/codepropertygraph/schema/Hidden.scala @@ -71,7 +71,8 @@ object Hidden extends SchemaBase { .addProperty( name = "CLOSURE_ORIGINAL_NAME", valueType = ValueType.String, - comment = "The original name of the (potentially mangled) captured variable" + comment = + "Deprecated. Create an explict REF edge instead. Formerly the original name of the (potentially mangled) captured variable" ) .protoId(ProtoIds.ClosureOriginalName)