blark.util.Identifier
- class blark.util.Identifier(parts: List[str], decl_impl: Literal['declaration', 'implementation'] | None = None)[source]
Bases:
object
A blark convention for giving portions of code unique names.
Examples of valid identifiers include:
FB_Name/declaration
FB_Name/implementation
FB_Name.Action/declaration
FB_Name.Action/implementation
FB_Name.Property.get/implementation
FB_Name.Property.set/implementation
- Attributes:
- partslist of str
Parts of the name, split by the “.” character.
- decl_impl“declaration” or “implementation”
The final “/portion”, indicating whether the code section is describing the declaration portion or the implementation portion.
Methods
__init__
(parts[, decl_impl])from_string
(value)Attributes