Lines Matching refs:self
20 def __init__(self, fileName): argument
21 self.fileName = fileName
22 self.passes = []
24 def addPass(self, new_pass): argument
25 self.passes.append(new_pass)
27 def findPass(self, name): argument
28 for entry in self.passes:
33 def __eq__(self, other): argument
34 return isinstance(other, self.__class__) \
35 and self.passes == other.passes
40 def __init__(self, parent, name, body, startLineNo): argument
41 self.parent = parent
42 self.name = name
43 self.body = body
44 self.startLineNo = startLineNo
46 if not self.name:
47 Logger.fail("C1visualizer pass does not have a name", self.fileName, self.startLineNo)
48 if not self.body:
49 Logger.fail("C1visualizer pass does not have a body", self.fileName, self.startLineNo)
51 self.parent.addPass(self)
54 def fileName(self): argument
55 return self.parent.fileName
57 def __eq__(self, other): argument
58 return isinstance(other, self.__class__) \
59 and self.name == other.name \
60 and self.body == other.body