File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
test/library-tests/dataflow Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -116,12 +116,12 @@ module API {
116
116
/**
117
117
* Gets a data-flow node corresponding the value flowing into this API component.
118
118
*/
119
- DataFlow:: Node getARhs ( ) { Impl:: def ( this , result ) }
119
+ DataFlow:: Node asSink ( ) { Impl:: def ( this , result ) }
120
120
121
121
/**
122
122
* Gets a data-flow node that may interprocedurally flow to the value escaping into this API component.
123
123
*/
124
- DataFlow:: Node getAValueReachingRhs ( ) { result = Impl:: trackDefNode ( this .getARhs ( ) ) }
124
+ DataFlow:: Node getAValueReachingRhs ( ) { result = Impl:: trackDefNode ( this .asSink ( ) ) }
125
125
126
126
/**
127
127
* Gets a call to a method on the receiver represented by this API component.
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class ApiUseTest extends InlineExpectationsTest {
29
29
n = a .getAValueReachableFromSource ( )
30
30
or
31
31
tag = "def" and
32
- n = a .getARhs ( )
32
+ n = a .asSink ( )
33
33
or
34
34
tag = "call" and
35
35
n = a .( API:: MethodAccessNode ) .getCallNode ( )
Original file line number Diff line number Diff line change @@ -132,15 +132,15 @@ class CustomValueSink extends DefaultValueFlowConf {
132
132
override predicate isSink ( DataFlow:: Node sink ) {
133
133
super .isSink ( sink )
134
134
or
135
- sink = ModelOutput:: getASinkNode ( "test-sink" ) .getARhs ( )
135
+ sink = ModelOutput:: getASinkNode ( "test-sink" ) .asSink ( )
136
136
}
137
137
}
138
138
139
139
class CustomTaintSink extends DefaultTaintFlowConf {
140
140
override predicate isSink ( DataFlow:: Node sink ) {
141
141
super .isSink ( sink )
142
142
or
143
- sink = ModelOutput:: getASinkNode ( "test-sink" ) .getARhs ( )
143
+ sink = ModelOutput:: getASinkNode ( "test-sink" ) .asSink ( )
144
144
}
145
145
}
146
146
You can’t perform that action at this time.
0 commit comments