DocumentVersion

class DocumentVersion
Members defined in DocumentVersion (5 members)

sema

RW

The sema version of the document. This is separate from source since sema may be recomputed after one of the dependencies has changed. May also be reset to 0 on source changes. Most similar to patch version in semantic versioning scheme.

source

RW

The version of the source TextDocument the document was built from. Always 0 if there is no actual source associated. Takes priority over sema.

__init__

__int__

__str__

Attributes

property sema: int

The sema version of the document. This is separate from source since sema may be recomputed after one of the dependencies has changed. May also be reset to 0 on source changes. Most similar to patch version in semantic versioning scheme.

property source: int

The version of the source TextDocument the document was built from. Always 0 if there is no actual source associated. Takes priority over sema.

Methods

__init__(source: int = 0, sema: int = 0) None
__int__() int
__str__() str
Used in