File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ function SetModuleContent {
4646 foreach ($file in $SourceFile ) {
4747 if ($SourceName = Resolve-Path $file - Relative - ErrorAction SilentlyContinue) {
4848 Write-Verbose " Adding $SourceName "
49- # Setting offset to -1 because of the new line we're adding,
50- # this is needed for the code coverage calculation.
49+ # Setting offset to -1 because of the new line we're adding.
50+ # This is needed for the code coverage calculation.
5151 $SetContent.Process (" #Region '$SourceName ' -1`n " )
5252 Get-Content $SourceName - OutVariable source | ForEach-Object { $SetContent.Process ($_ ) }
5353 $SetContent.Process (" #EndRegion '$SourceName ' $ ( $Source.Count + 1 ) " )
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ function ConvertFrom-SourceLineNumber {
4747 SourceFile = $_.Matches [0 ].Groups[" SourceFile" ].Value.Trim(" '" )
4848 StartLineNumber = $_.LineNumber
4949 # This offset is subtracted when calculating the line number
50- # because of the new line we're adding prior to each script file
51- # in the built module.
50+ # because of the new line we're adding prior to the content
51+ # of each script file in the built module.
5252 Offset = $_.Matches [0 ].Groups[" LineNumber" ].Value
5353 }
5454 })
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ function ConvertTo-SourceLineNumber {
6060 SourceFile = $_.Matches [0 ].Groups[" SourceFile" ].Value.Trim(" '" )
6161 StartLineNumber = $_.LineNumber
6262 # This offset is added when calculating the line number
63- # because of the new line we're adding prior to each script file
64- # in the built module.
63+ # because of the new line we're adding prior to the content
64+ # of each script file in the built module.
6565 Offset = $_.Matches [0 ].Groups[" LineNumber" ].Value
6666 }
6767 })
You can’t perform that action at this time.
0 commit comments