@@ -191,13 +191,15 @@ module Node {
191191 result = this .getSummaryNode ( ) .getSummarizedCallable ( )
192192 }
193193
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 ( )
197197 }
198198
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+ }
201203
202204 /** Holds is this node is a source node of kind `kind`. */
203205 predicate isSource ( string kind ) {
@@ -210,9 +212,9 @@ module Node {
210212 }
211213
212214 override CfgScope getCfgScope ( ) {
213- result = this .getSummaryNode ( ) .getSourceNode ( ) .getEnclosingCfgScope ( )
215+ result = this .getSummaryNode ( ) .getSourceElement ( ) .getEnclosingCfgScope ( )
214216 or
215- result = this .getSummaryNode ( ) .getSinkNode ( ) .getEnclosingCfgScope ( )
217+ result = this .getSummaryNode ( ) .getSinkElement ( ) .getEnclosingCfgScope ( )
216218 }
217219
218220 override DataFlowCallable getEnclosingCallable ( ) {
@@ -225,9 +227,9 @@ module Node {
225227 exists ( this .getSummarizedCallable ( ) ) and
226228 result instanceof EmptyLocation
227229 or
228- result = this .getSourceNode ( ) .getLocation ( )
230+ result = this .getSourceElement ( ) .getLocation ( )
229231 or
230- result = this .getSinkNode ( ) .getLocation ( )
232+ result = this .getSinkElement ( ) .getLocation ( )
231233 }
232234
233235 override string toString ( ) { result = this .getSummaryNode ( ) .toString ( ) }
0 commit comments