File tree Expand file tree Collapse file tree
javascript/ql/src/semmle/javascript/dataflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -886,13 +886,12 @@ abstract class AdditionalSink extends DataFlow::Node {
886886 * Additional flow step to model flow from import specifiers into the SSA variable
887887 * corresponding to the imported variable.
888888 */
889- private class FlowStepThroughImport extends AdditionalFlowStep , DataFlow:: ValueNode {
890- override ImportSpecifier astNode ;
891-
889+ private class FlowStepThroughImport extends SharedFlowStep {
892890 override predicate step ( DataFlow:: Node pred , DataFlow:: Node succ ) {
893- Stages:: FlowSteps:: ref ( ) and
894- pred = this and
895- succ = DataFlow:: ssaDefinitionNode ( SSA:: definition ( astNode ) )
891+ exists ( ImportSpecifier specifier |
892+ pred = DataFlow:: valueNode ( specifier ) and
893+ succ = DataFlow:: ssaDefinitionNode ( SSA:: definition ( specifier ) )
894+ )
896895 }
897896}
898897
You can’t perform that action at this time.
0 commit comments