API reference
python:astx:astx.literals.LiteralString
class LiteralString
LiteralString(value: str, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/string.py:19
Declared as: python:astx:astx.literals.string.LiteralString
LiteralString data type class.
Attributes
-
type_ — Type: String
-
loc — Type: SourceLocation
-
value — Type: str
Methods
-
__init__ — Initialize LiteralString.
-
__str__ — Return a string representation of the object.
-
get_struct — Return the AST structure of the object.