operators
¶
Classes:
-
AssignmentExpr– -
AugAssign– -
CompareOp– -
Starred– -
VariableAssignment– -
WalrusOp–
AssignmentExpr
¶
AssignmentExpr(
targets: Iterable[Expr] | ASTNodes[Expr],
value: Expr,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: Expr
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/operators.py
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/operators.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
AugAssign
¶
AugAssign(
target: Identifier,
op_code: OpCodeAugAssign,
value: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
)
Bases: DataType
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/operators.py
268 269 270 271 272 273 274 275 276 277 278 279 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/operators.py
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
CompareOp
¶
CompareOp(
left: DataType,
ops: Iterable[
Literal["==", "!=", "<", ">", "<=", ">="]
],
comparators: Iterable[DataType],
loc: SourceLocation = NO_SOURCE_LOCATION,
)
Bases: DataType
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/operators.py
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/operators.py
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
Starred
¶
Starred(
value: Expr,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: Expr
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/operators.py
404 405 406 407 408 409 410 411 412 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/operators.py
422 423 424 425 426 427 428 429 430 431 432 433 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
VariableAssignment
¶
VariableAssignment(
name: str,
value: Expr,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: StatementType
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/operators.py
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/operators.py
216 217 218 219 220 221 222 223 224 225 226 227 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
WalrusOp
¶
WalrusOp(
lhs: Variable,
rhs: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
)
Bases: DataType
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/operators.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/operators.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |