You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/traversals/TraversalAstnodeBase.scala
+53Lines changed: 53 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,19 @@ final class TraversalAstnodeBase[NodeType <: nodes.AstNodeBase](val traversal: I
84
84
valtmp= node.columnNumber; tmp.isDefined && tmp.get == value
85
85
}
86
86
87
+
/** Traverse to nodes where the columnNumber equals the given `value`. If `value` is None, only nodes where
Copy file name to clipboardExpand all lines: domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/traversals/TraversalExpressionBase.scala
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,11 @@ final class TraversalExpressionBase[NodeType <: nodes.ExpressionBase](val traver
15
15
defargumentIndex(value: Int):Iterator[NodeType] =
16
16
traversal.filter { _.argumentIndex == value }
17
17
18
+
/** Traverse to nodes where the argumentIndex equals the given `value`, or no results if `value` is None
Copy file name to clipboardExpand all lines: domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/traversals/TraversalJumptargetBase.scala
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,11 @@ final class TraversalJumptargetBase[NodeType <: nodes.JumpTargetBase](val traver
15
15
defargumentIndex(value: Int):Iterator[NodeType] =
16
16
traversal.filter { _.argumentIndex == value }
17
17
18
+
/** Traverse to nodes where the argumentIndex equals the given `value`, or no results if `value` is None
Copy file name to clipboardExpand all lines: domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/traversals/TraversalMethodBase.scala
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,19 @@ final class TraversalMethodBase[NodeType <: nodes.MethodBase](val traversal: Ite
152
152
valtmp= node.columnNumberEnd; tmp.isDefined && tmp.get == value
153
153
}
154
154
155
+
/** Traverse to nodes where the columnNumberEnd equals the given `value`. If `value` is None, only nodes where
Copy file name to clipboardExpand all lines: domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/traversals/TraversalMethodparameterinBase.scala
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,11 @@ final class TraversalMethodparameterinBase[NodeType <: nodes.MethodParameterInBa
160
160
defindex(value: Int):Iterator[NodeType] =
161
161
traversal.filter { _.index == value }
162
162
163
+
/** Traverse to nodes where the index equals the given `value`, or no results if `value` is None
164
+
*/
165
+
defindex(value: Option[Int]):Iterator[NodeType] =
166
+
value match { caseSome(_val) => index(_val); caseNone=>Iterator.empty }
167
+
163
168
/** Traverse to nodes where the index equals at least one of the given `values`
Copy file name to clipboardExpand all lines: domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/traversals/TraversalMethodparameteroutBase.scala
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,11 @@ final class TraversalMethodparameteroutBase[NodeType <: nodes.MethodParameterOut
83
83
defindex(value: Int):Iterator[NodeType] =
84
84
traversal.filter { _.index == value }
85
85
86
+
/** Traverse to nodes where the index equals the given `value`, or no results if `value` is None
87
+
*/
88
+
defindex(value: Option[Int]):Iterator[NodeType] =
89
+
value match { caseSome(_val) => index(_val); caseNone=>Iterator.empty }
90
+
86
91
/** Traverse to nodes where the index equals at least one of the given `values`
Copy file name to clipboardExpand all lines: domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/traversals/TraversalPropertyArgumentIndex.scala
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,11 @@ final class TraversalPropertyArgumentIndex[NodeType <: nodes.StoredNode & nodes.
16
16
defargumentIndex(value: Int):Iterator[NodeType] =
17
17
traversal.filter { _.argumentIndex == value }
18
18
19
+
/** Traverse to nodes where the argumentIndex equals the given `value`, or no results if `value` is None
Copy file name to clipboardExpand all lines: domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/traversals/TraversalPropertyColumnNumber.scala
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,19 @@ final class TraversalPropertyColumnNumber[NodeType <: nodes.StoredNode & nodes.S
18
18
valtmp= node.columnNumber; tmp.isDefined && tmp.get == value
19
19
}
20
20
21
+
/** Traverse to nodes where the columnNumber equals the given `value`. If `value` is None, only nodes where
Copy file name to clipboardExpand all lines: domainClasses/src/main/generated/io/shiftleft/codepropertygraph/generated/traversals/TraversalPropertyColumnNumberEnd.scala
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,19 @@ final class TraversalPropertyColumnNumberEnd[
19
19
valtmp= node.columnNumberEnd; tmp.isDefined && tmp.get == value
20
20
}
21
21
22
+
/** Traverse to nodes where the columnNumberEnd equals the given `value`. If `value` is None, only nodes where
0 commit comments