robot.parsing.model.blocks
¶
File
¶
File(
sections: Sequence[Section] = (),
source: Path | None = None,
languages: Sequence[str] = (),
)
Bases: Container
Source code in src/robot/parsing/model/blocks.py
save
¶
Save model to the given output or to the original source file.
The output can be a path to a file or an already opened file
object. If output is not given, the original source file will
be overwritten.
Source code in src/robot/parsing/model/blocks.py
If
¶
If(
header: Statement,
body: Body = (),
orelse: If | None = None,
end: End | None = None,
errors: Errors = (),
)
Bases: NestedBlock
Represents IF structures in the model.
Used with IF, Inline IF, ELSE IF and ELSE nodes. The :attr:type attribute
specifies the type.