Lines Matching refs:self
33 def __init__(self, slicc, queue_name, type_ast, pairs, statements, method):
34 super(PeekStatementAST, self).__init__(slicc, pairs)
36 self.queue_name = queue_name
37 self.type_ast = type_ast
38 self.statements = statements
39 self.method = method
41 def __repr__(self):
43 (self.method, self.queue_name, self.type_ast, self.statements)
45 def generate(self, code, return_type):
46 self.symtab.pushFrame()
48 msg_type = self.type_ast.type
51 var = Var(self.symtab, "in_msg", self.location, msg_type, "(*in_msg_ptr)",
52 self.pairs)
53 self.symtab.newSymbol(var)
56 self.queue_name.assertType("InPort")
60 qcode = self.queue_name.var.code
65 in_msg_ptr = dynamic_cast<const $mtid *>(($qcode).${{self.method}}());
74 if "block_on" in self.pairs:
75 address_field = self.pairs['block_on']
85 if "wake_up" in self.pairs:
86 address_field = self.pairs['wake_up']
94 self.statements.generate(code, return_type)
95 self.symtab.popFrame()
98 def findResources(self, resources):
99 self.statements.findResources(resources)