@@ -191,13 +191,15 @@ module Node {
191
191
result = this .getSummaryNode ( ) .getSummarizedCallable ( )
192
192
}
193
193
194
- /** Gets the source node that this node belongs to, if any */
195
- FlowSummaryImpl:: Public:: SourceNode getSourceNode ( ) {
196
- result = this .getSummaryNode ( ) .getSourceNode ( )
194
+ /** Gets the AST source node that this node belongs to, if any */
195
+ FlowSummaryImpl:: Public:: SourceElement getSourceElement ( ) {
196
+ result = this .getSummaryNode ( ) .getSourceElement ( )
197
197
}
198
198
199
- /** Gets the sink node that this node belongs to, if any */
200
- FlowSummaryImpl:: Public:: SinkNode getSinkNode ( ) { result = this .getSummaryNode ( ) .getSinkNode ( ) }
199
+ /** Gets the AST sink node that this node belongs to, if any */
200
+ FlowSummaryImpl:: Public:: SinkElement getSinkElement ( ) {
201
+ result = this .getSummaryNode ( ) .getSinkElement ( )
202
+ }
201
203
202
204
/** Holds is this node is a source node of kind `kind`. */
203
205
predicate isSource ( string kind ) {
@@ -210,9 +212,9 @@ module Node {
210
212
}
211
213
212
214
override CfgScope getCfgScope ( ) {
213
- result = this .getSummaryNode ( ) .getSourceNode ( ) .getEnclosingCfgScope ( )
215
+ result = this .getSummaryNode ( ) .getSourceElement ( ) .getEnclosingCfgScope ( )
214
216
or
215
- result = this .getSummaryNode ( ) .getSinkNode ( ) .getEnclosingCfgScope ( )
217
+ result = this .getSummaryNode ( ) .getSinkElement ( ) .getEnclosingCfgScope ( )
216
218
}
217
219
218
220
override DataFlowCallable getEnclosingCallable ( ) {
@@ -225,9 +227,9 @@ module Node {
225
227
exists ( this .getSummarizedCallable ( ) ) and
226
228
result instanceof EmptyLocation
227
229
or
228
- result = this .getSourceNode ( ) .getLocation ( )
230
+ result = this .getSourceElement ( ) .getLocation ( )
229
231
or
230
- result = this .getSinkNode ( ) .getLocation ( )
232
+ result = this .getSinkElement ( ) .getLocation ( )
231
233
}
232
234
233
235
override string toString ( ) { result = this .getSummaryNode ( ) .toString ( ) }
0 commit comments