@@ -207,7 +207,7 @@ def run(self, edit): |
207 | 207 | reendResults = {} |
208 | 208 | endResults = {} |
209 | 209 |
|
210 | | - # Find resume and reend statements and store the line numbers in a dict along with the results |
| 210 | + # Find resume, reend and end statements and store the line numbers in a dict along with the results |
211 | 211 | for lineNo, line in results.items(): |
212 | 212 | match = re.search(r'(resume|reend|end)\s.*?((?:\w+\.?)+((?:\s(?:\w+\.?)+)?))', line) |
213 | 213 | if match: |
@@ -259,18 +259,18 @@ def run(self, edit): |
259 | 259 | # Rename eligible call methods to call constructors |
260 | 260 | sessionSpecificString = re.sub(r'(?m)(?m)call\smethod\s+(\w+)(\s.*\1.OnExecute)', r'call constructor \1\2', sessionSpecificString) |
261 | 261 |
|
262 | | - # # Rename to call function those start-ext calls that do not have getters, setters or constructors appended |
| 262 | + # Rename to call function those start-ext calls that do not have getters, setters or constructors appended |
263 | 263 | sessionSpecificString = re.sub(r'(?m)start-ext\s(\w+)\s(\w+\.\w+\.\w+)$', r'call function \1 \2', sessionSpecificString) |
264 | 264 |
|
265 | | - # # Replace any remaining start-ext with calls based on the last word in the line |
266 | | - # # e.g. start-ext isSaveWarning PT_NAV2.NavOptions.OnExecute getter |
267 | | - # # becomes call getter isSaveWarning PT_NAV2.NavOptions.OnExecute |
| 265 | + # Replace any remaining start-ext with calls based on the last word in the line |
| 266 | + # e.g. start-ext isSaveWarning PT_NAV2.NavOptions.OnExecute getter |
| 267 | + # becomes call getter isSaveWarning PT_NAV2.NavOptions.OnExecute |
268 | 268 | sessionSpecificString = re.sub('start-ext\s(\w+)\s(.*)\s(constructor|method|getter|setter)', r'call \3 \1 \2', sessionSpecificString) |
269 | 269 |
|
270 | 270 | # Finally rename CI functions |
271 | 271 | sessionSpecificString = re.sub(r'(?m)start-ext\s(\w+)\s(\w+\.\w+)$', r'call function \1 \2', sessionSpecificString) |
272 | 272 |
|
273 | | - # # Replace any colons with dots |
| 273 | + # Replace any colons with dots |
274 | 274 | sessionSpecificString = re.sub(':', r'.', sessionSpecificString) |
275 | 275 |
|
276 | 276 | # We now have the complete callstack for the session |
|