Skip to content

Commit 6837c62

Browse files
committed
Added the source code lines in to the .py CodeUnits
1 parent f2b21bd commit 6837c62

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cls/TestCoverage/Data/CodeUnit.cls

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,12 @@ ClassMethod GetCurrentByName(pInternalName As %String, pSourceNamespace As %Stri
133133

134134

135135
If (tType = "PY") {
136-
#; set tPointer = 0
137-
#; While $ListNext(pDocumentText, tPointer, tCurLine) {
138-
#; do pCodeUnit.Lines.Insert(tCurLine)
139-
#; }
136+
set tPointer = 0
137+
While $ListNext(pDocumentText, tPointer, tCurLine) {
138+
do pCodeUnit.Lines.Insert(tCurLine)
139+
}
140+
141+
do pCodeUnit.Lines.Insert("")
140142

141143
Set ClassName = $Piece(tName,".", *)
142144
Set tMethodInfo = ##class(TestCoverage.Utils).GetPythonMethodMapping(pDocumentText, ClassName)

0 commit comments

Comments
 (0)