blark.transform.ExtendedSourceCode

class blark.transform.ExtendedSourceCode(items: List[DataTypeDeclaration | Function | FunctionBlock | Action | Method | Program | Property | GlobalVariableDeclarations | StatementList], filename: Path | None = None, raw_source: str | None = None, line_map: Dict[int, int] | None = None, meta: Meta | None = None)[source]

Bases: SourceCode

Top-level source code item - extended to include the possibility of standalone implementation details (i.e., statement lists).

See also

SourceCodeItem
StatementList

Methods

__init__(items[, filename, raw_source, ...])

Attributes

filename

line_map

meta

raw_source

items

items: List[DataTypeDeclaration | Function | FunctionBlock | Action | Method | Program | Property | GlobalVariableDeclarations | StatementList]
__init__(items: List[DataTypeDeclaration | Function | FunctionBlock | Action | Method | Program | Property | GlobalVariableDeclarations | StatementList], filename: Path | None = None, raw_source: str | None = None, line_map: Dict[int, int] | None = None, meta: Meta | None = None) None