File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
powershell/ql/lib/semmle/code/powershell Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ class PipelineByPropertyNameParameter extends Parameter instanceof PipelineByPro
6565 * Gets the iterator variable that is used to iterate over the elements in the pipeline.
6666 */
6767 PipelineByPropertyNameIteratorVariable getIteratorVariable ( ) { result .getParameter ( ) = this }
68+
69+ ProcessBlock getProcessBlock ( ) { result = this .getIteratorVariable ( ) .getProcessBlock ( ) }
6870}
6971
7072/**
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ newtype VarKind =
2626 PipelineIteratorKind ( ) or
2727 PipelineByPropertyNameIteratorKind ( string name ) {
2828 exists ( Raw:: ProcessBlock pb |
29- name = pb .getScriptBlock ( ) .getParamBlock ( ) .getAPipelineByPropertyNameParameter ( ) .getLowerCaseName ( )
29+ name =
30+ pb .getScriptBlock ( ) .getParamBlock ( ) .getAPipelineByPropertyNameParameter ( ) .getLowerCaseName ( )
3031 )
3132 }
3233
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ private module DataFlowIntegrationInput implements Impl::DataFlowIntegrationInpu
278278 * guard to `branch`.
279279 */
280280 predicate controlsBranchEdge ( SsaInput:: BasicBlock bb1 , SsaInput:: BasicBlock bb2 , boolean branch ) {
281- hasBranchEdge ( bb1 , bb2 , branch )
281+ this . hasBranchEdge ( bb1 , bb2 , branch )
282282 }
283283 /**
284284 * Holds if the evaluation of this guard to `branch` corresponds to the edge
You can’t perform that action at this time.
0 commit comments