@@ -173,7 +173,7 @@ module Node {
173173 override Location getLocation ( ) { none ( ) }
174174 }
175175
176- /** A data- flow node used to model flow summaries. */
176+ /** A data flow node used to model flow summaries. */
177177 class FlowSummaryNode extends Node , TFlowSummaryNode {
178178 FlowSummaryImpl:: Private:: SummaryNode getSummaryNode ( ) { this = TFlowSummaryNode ( result ) }
179179
@@ -375,10 +375,6 @@ module Node {
375375 /** Gets the node before the state update. */
376376 abstract Node getPreUpdateNode ( ) ;
377377
378- override CfgScope getCfgScope ( ) { result = this .getPreUpdateNode ( ) .getCfgScope ( ) }
379-
380- override Location getLocation ( ) { result = this .getPreUpdateNode ( ) .getLocation ( ) }
381-
382378 override string toString ( ) { result = "[post] " + this .getPreUpdateNode ( ) .toString ( ) }
383379 }
384380
@@ -388,6 +384,10 @@ module Node {
388384 ExprPostUpdateNode ( ) { this = TExprPostUpdateNode ( n ) }
389385
390386 override Node getPreUpdateNode ( ) { result = TExprNode ( n ) }
387+
388+ override CfgScope getCfgScope ( ) { result = n .getScope ( ) }
389+
390+ override Location getLocation ( ) { result = n .getLocation ( ) }
391391 }
392392
393393 final class SummaryPostUpdateNode extends FlowSummaryNode , PostUpdateNode {
@@ -399,10 +399,6 @@ module Node {
399399
400400 override Node getPreUpdateNode ( ) { result = pre }
401401
402- override CfgScope getCfgScope ( ) { result = PostUpdateNode .super .getCfgScope ( ) }
403-
404- override EmptyLocation getLocation ( ) { result = PostUpdateNode .super .getLocation ( ) }
405-
406402 final override string toString ( ) { result = PostUpdateNode .super .toString ( ) }
407403 }
408404
@@ -689,13 +685,6 @@ private module Aliases {
689685 class ContentSetAlias = ContentSet ;
690686}
691687
692- pragma [ nomagic]
693- Resolvable getCallResolvable ( CallExprBase call ) {
694- result = call .( MethodCallExpr )
695- or
696- result = call .( CallExpr ) .getFunction ( ) .( PathExpr ) .getPath ( )
697- }
698-
699688module RustDataFlow implements InputSig< Location > {
700689 private import Aliases
701690
0 commit comments