You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// tMethodInfo is a python tuple of (line to method info, method map info)
148
+
SettLineToMethodInfo = tMethodInfo."__getitem__"(0) // a python builtins list where the item at index i is the name of the method that line i is a part of
149
+
SettMethodMapInfo = tMethodInfo."__getitem__"(1) // a python builtins dict with key = method name, value = the line number of its definition
147
150
fori=1:1:$listlength(pDocumentText) {
148
151
SettMethod = tLineToMethodInfo."__getitem__"(i)
149
152
DopCodeUnit.LineToMethodMap.SetAt(tMethod,i)
@@ -157,12 +160,6 @@ ClassMethod GetCurrentByName(pInternalName As %String, pSourceNamespace As %Stri
#; Set tSnapshotQueue = $System.WorkMgr.Initialize(,.tSC)
138
-
#; $$$ThrowOnError(tSC)
139
-
#; Set tPointer = 0
140
-
#; While $ListNext(pPyRelevantRoutines,tPointer,tPyRoutine) {
141
-
#; Set tSC = tSnapshotQueue.Queue("##class(TestCoverage.Data.CodeUnit).GetCurrentByName",tPyRoutine_".PY")
142
-
#; $$$ThrowOnError(tSC)
143
-
#; }
144
-
145
-
#; Set tSC = tSnapshotQueue.WaitForComplete()
146
-
#; $$$ThrowOnError(tSC)
147
-
148
-
// update the executable lines for the .cls files that have python -- TODO: make the UpdatePyExecutableLines method not rely on knowing the .cls and .py CodeUnits beforehand
149
-
#; Set tSnapshotQueue = $System.WorkMgr.Initialize(,.tSC)
150
-
#; $$$ThrowOnError(tSC)
151
-
#; Set tPointer = 0
152
-
#; While $ListNext(pPyRelevantRoutines,tPointer,tClass) {
153
-
#; Set tSC = tSnapshotQueue.Queue("##class(TestCoverage.Data.CodeUnit).UpdatePyExecutableLines",tClass)
0 commit comments