Skip to content

Commit cdd68b3

Browse files
committed
PS: Improve the location of synthesized variables.
1 parent ebc7327 commit cdd68b3

File tree

1 file changed

+1
-1
lines changed
  • powershell/ql/lib/semmle/code/powershell/ast/internal

1 file changed

+1
-1
lines changed

powershell/ql/lib/semmle/code/powershell/ast/internal/Variable.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module Private {
3838

3939
override string getNameImpl() { any(Synthesis s).variableSynthName(this, result) }
4040

41-
override Location getLocationImpl() { result = scope.getLocation() }
41+
override Location getLocationImpl() { result = any(Synthesis s).getLocation(this) }
4242

4343
override Scope::Range getDeclaringScopeImpl() { result = scope }
4444
}

0 commit comments

Comments
 (0)