@@ -125,18 +125,19 @@ ClassMethod GetCurrentByName(pInternalName As %String, pSourceNamespace As %Stri
125
125
Set pCodeUnit .Type = tType
126
126
Set pCodeUnit .Hash = tHash
127
127
128
- Set tBitString = " "
129
- For tLine =1 :1 :$Get (tCodeArray ,0 ) {
130
- Set $Bit (tBitString ,tLine ) = $Get (tExecutableFlags (tLine ),0 )
131
- }
132
- Set pCodeUnit .ExecutableLines = tBitString
128
+
133
129
134
130
If (tType = " CLS" ) {
135
131
Set pCodeUnit .Generated = ($$$comClassKeyGet(tName ,$$$cCLASSgeneratedby) '= " " )
136
132
}
137
133
138
134
139
135
If (tType = " PY" ) {
136
+ #; set tPointer = 0
137
+ #; While $ListNext(pDocumentText, tPointer, tCurLine) {
138
+ #; do pCodeUnit.Lines.Insert(tCurLine)
139
+ #; }
140
+
140
141
Set ClassName = $Piece (tName ," ." , *)
141
142
Set tMethodInfo = ##class (TestCoverage.Utils ).GetPythonMethodMapping (pDocumentText , ClassName )
142
143
Set tLineToMethodInfo = tMethodInfo ." __getitem__" (0 )
@@ -152,6 +153,7 @@ ClassMethod GetCurrentByName(pInternalName As %String, pSourceNamespace As %Stri
152
153
Set tStartLine = tStartEnd ." __getitem__" (0 )
153
154
Set tEndLine = tStartEnd ." __getitem__" (1 )
154
155
Do pCodeUnit .MethodMap .SetAt (tStartLine ,tMethod )
156
+ Set tExecutableFlags (tStartLine ) = 0
155
157
Do pCodeUnit .MethodEndMap .SetAt (tEndLine , tMethod )
156
158
157
159
Set tMethodMask = " "
@@ -209,7 +211,13 @@ ClassMethod GetCurrentByName(pInternalName As %String, pSourceNamespace As %Stri
209
211
}
210
212
}
211
213
212
-
214
+ Set tBitString = " "
215
+ For tLine =1 :1 :$Get (tCodeArray ,0 ) {
216
+ Set $Bit (tBitString ,tLine ) = $Get (tExecutableFlags (tLine ),0 )
217
+ }
218
+ Set pCodeUnit .ExecutableLines = tBitString
219
+
220
+
213
221
Set tSC = pCodeUnit .%Save ()
214
222
If $$$ISERR(tSC ) && $System .Status .Equals (tSC ,$$$ERRORCODE($$$IDKeyNotUnique)) {
215
223
// Some other process beat us to it.
0 commit comments