slither.slithir.operations.nop

 1from typing import List
 2
 3
 4from slither.core.variables.variable import Variable
 5from slither.slithir.operations import Operation
 6
 7
 8class Nop(Operation):
 9    @property
10    def read(self) -> List[Variable]:
11        return []
12
13    @property
14    def used(self):
15        return []
16
17    def __str__(self):
18        return "NOP"
 9class Nop(Operation):
10    @property
11    def read(self) -> List[Variable]:
12        return []
13
14    @property
15    def used(self):
16        return []
17
18    def __str__(self):
19        return "NOP"

Helper class that provides a standard way to create an ABC using inheritance.

10    @property
11    def read(self) -> List[Variable]:
12        return []

Return the list of variables READ

used
14    @property
15    def used(self):
16        return []

By default used is all the variables read