Skip to content

Commit dfd0e4d

Browse files
Deprecate CLOSURE_ORIGINAL_NAME (#1823)
For: ShiftLeftSecurity/codescience#8347
1 parent 5cc07fe commit dfd0e4d

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/Properties.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ object Properties {
4242
*/
4343
val ClosureBindingId = flatgraph.OptionalPropertyKey[String](kind = 6, name = "CLOSURE_BINDING_ID")
4444

45-
/** The original name of the (potentially mangled) captured variable */
45+
/** Deprecated. Create an explict REF edge instead. Formerly the original name of the (potentially mangled) captured
46+
* variable
47+
*/
4648
val ClosureOriginalName = flatgraph.OptionalPropertyKey[String](kind = 7, name = "CLOSURE_ORIGINAL_NAME")
4749

4850
/** This field holds the code snippet that the node represents. */

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/PropertyNames.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class PropertyNames {
4444
/** Identifier which uniquely describes a CLOSURE_BINDING. This property is used to match captured LOCAL nodes with the corresponding CLOSURE_BINDING nodes */
4545
public static final String CLOSURE_BINDING_ID = "CLOSURE_BINDING_ID";
4646

47-
/** The original name of the (potentially mangled) captured variable */
47+
/** Deprecated. Create an explict REF edge instead. Formerly the original name of the (potentially mangled) captured variable */
4848
public static final String CLOSURE_ORIGINAL_NAME = "CLOSURE_ORIGINAL_NAME";
4949

5050
/** This field holds the code snippet that the node represents. */

domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/nodes/ClosureBinding.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ object ClosureBinding {
3434
*/
3535
val ClosureBindingId = "CLOSURE_BINDING_ID"
3636

37-
/** The original name of the (potentially mangled) captured variable */
37+
/** Deprecated. Create an explict REF edge instead. Formerly the original name of the (potentially mangled) captured
38+
* variable
39+
*/
3840
val ClosureOriginalName = "CLOSURE_ORIGINAL_NAME"
3941

4042
/** For formal method input parameters, output parameters, and return parameters, this field holds the evaluation
@@ -52,7 +54,9 @@ object ClosureBinding {
5254
*/
5355
val ClosureBindingId = flatgraph.OptionalPropertyKey[String](kind = 6, name = "CLOSURE_BINDING_ID")
5456

55-
/** The original name of the (potentially mangled) captured variable */
57+
/** Deprecated. Create an explict REF edge instead. Formerly the original name of the (potentially mangled) captured
58+
* variable
59+
*/
5660
val ClosureOriginalName = flatgraph.OptionalPropertyKey[String](kind = 7, name = "CLOSURE_ORIGINAL_NAME")
5761

5862
/** For formal method input parameters, output parameters, and return parameters, this field holds the evaluation

schema/src/main/scala/io/shiftleft/codepropertygraph/schema/Hidden.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ object Hidden extends SchemaBase {
7171
.addProperty(
7272
name = "CLOSURE_ORIGINAL_NAME",
7373
valueType = ValueType.String,
74-
comment = "The original name of the (potentially mangled) captured variable"
74+
comment =
75+
"Deprecated. Create an explict REF edge instead. Formerly the original name of the (potentially mangled) captured variable"
7576
)
7677
.protoId(ProtoIds.ClosureOriginalName)
7778

0 commit comments

Comments
 (0)