pytwine.processors.AnnotatedCodeChunk¶
- class pytwine.processors.AnnotatedCodeChunk(*args, **kwargs)[source]¶
Bases:
pytwine.core.CodeChunk
just used for casting, so that mypy won’t complain about attributes we add.
- __init__()¶
Methods
__init__
()count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
Attributes
Alias for field number 0
Alias for field number 1
Alias for field number 2
Alias for field number 3
- chunkType: str¶
Alias for field number 0
- contents: str¶
Alias for field number 1
- count(value, /)¶
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)¶
Return first index of value.
Raises ValueError if the value is not present.
- number: int¶
Alias for field number 2
- startLineNum: int¶
Alias for field number 3