Kind: Function
Source: atloria-monorepo/libs/parser-core/src/parsers/backend/python-control-flow.ts
Read the guards and the failure handling out of a slice of Python source.
startLine/endLine are 1-based and inclusive, and default to the whole file — a parser passes
the span of the class or the handler it is describing, and everything reported is inside it.
Signature
tsfunction extractPythonControlFlow(source: string, startLine: number, endLine: number): ControlFlow
Parameters
| Name | Type |
|---|---|
source | string |
startLine | number |
endLine | number |
Returns: ControlFlow
Was this page helpful?