Lines Matching refs:self
31 def __init__(self, slicc, expr_ast):
32 super(ReturnStatementAST, self).__init__(slicc)
34 self.expr_ast = expr_ast
36 def __repr__(self):
37 return "[ReturnStatementAST: %r]" % self.expr_ast
39 def generate(self, code, return_type):
40 actual_type, ecode = self.expr_ast.inline(True)
45 self.error("Invalid 'return' statement")
49 self.expr_ast.error("Return type miss-match, expected return " +
53 def findResources(self, resources):
54 self.expr_ast.findResources(resources)