File#

class File[source]#

Contains everything in a file.

property directives: MutableSequence[Directive | BlockComment]#
property raw_directives: MutableSequence[Directive | BlockComment]#
property raw_directives_with_comments: MutableSequence[Directive | BlockComment]#
property raw_spacing_after: Sequence[RawTokenModel]#
property raw_spacing_before: Sequence[RawTokenModel]#
property spacing_after: str#
property spacing_before: str#
classmethod from_children(directives: Iterable[Directive | BlockComment]) Self[source]#
classmethod from_value(directives: Iterable[Directive]) Self[source]#
auto_claim_comments() None[source]#