(code: string)
| 1501 | }; |
| 1502 | |
| 1503 | function postProcessPythonSessionEventCode(code: string): string { |
| 1504 | for (const [from, to] of Object.entries(PY_SESSION_EVENT_TYPE_RENAMES).sort( |
| 1505 | ([left], [right]) => right.length - left.length |
| 1506 | )) { |
| 1507 | code = code.replace(new RegExp(`\\b${from}\\b`, "g"), to); |
| 1508 | } |
| 1509 | return unwrapRedundantPythonLambdas(code); |
| 1510 | } |
| 1511 | |
| 1512 | function pyPrimitiveResolvedType(annotation: string, fromFn: string, toFn = fromFn): PyResolvedType { |
| 1513 | return { |
no test coverage detected
searching dependent graphs…