File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ function SetModuleContent {
46
46
foreach ($file in $SourceFile ) {
47
47
if ($SourceName = Resolve-Path $file - Relative - ErrorAction SilentlyContinue) {
48
48
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.
51
51
$SetContent.Process (" #Region '$SourceName ' -1`n " )
52
52
Get-Content $SourceName - OutVariable source | ForEach-Object { $SetContent.Process ($_ ) }
53
53
$SetContent.Process (" #EndRegion '$SourceName ' $ ( $Source.Count + 1 ) " )
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ function ConvertFrom-SourceLineNumber {
47
47
SourceFile = $_.Matches [0 ].Groups[" SourceFile" ].Value.Trim(" '" )
48
48
StartLineNumber = $_.LineNumber
49
49
# 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.
52
52
Offset = $_.Matches [0 ].Groups[" LineNumber" ].Value
53
53
}
54
54
})
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ function ConvertTo-SourceLineNumber {
60
60
SourceFile = $_.Matches [0 ].Groups[" SourceFile" ].Value.Trim(" '" )
61
61
StartLineNumber = $_.LineNumber
62
62
# 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.
65
65
Offset = $_.Matches [0 ].Groups[" LineNumber" ].Value
66
66
}
67
67
})
You can’t perform that action at this time.
0 commit comments