Literal.type
Returns the type of the literal.
Query Example
from glider import *
def query():
functions = (
Functions()
.with_name("mul")
.exec(1)
)
instructions = functions[0].instructions().exec()
for instruction in instructions:
for component in instruction.get_components():
if isinstance(component, Literal):
print(component.type)
print(component.expression)
return [instructions[0]]
Example Output

Last updated