API reference
python:astx:astx.literals.LiteralUTF8Char
class LiteralUTF8Char
LiteralUTF8Char(value: str, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/string.py:115
Declared as: python:astx:astx.literals.string.LiteralUTF8Char
Literal class for UTF-8 characters.
Attributes
-
loc — Source coordinates attached to this node.; Type: SourceLocation
-
type_ — Type associated with this expression.; Type: UTF8Char
-
value — Stored value.; Type: str
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
name — Type: str
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize the UTF-8 character literal.
-
__str__ — Return a string representation of the object.
-
get_struct — Return the structure of the object in a simplified.