projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8cc99c
)
'type inference' for special temp nodes
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 5 Dec 2009 23:09:54 +0000
(
00:09
+0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 5 Dec 2009 23:09:54 +0000
(
00:09
+0100)
Cython/Compiler/UtilNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/UtilNodes.py
b/Cython/Compiler/UtilNodes.py
index 81a50300c6f8190b502b33a59cb4d58ed36a2337..8e6029dde20f9ffec1c2a049189792e9e50342a4 100644
(file)
--- a/
Cython/Compiler/UtilNodes.py
+++ b/
Cython/Compiler/UtilNodes.py
@@
-127,6
+127,9
@@
class ResultRefNode(AtomicExprNode):
def analyse_types(self, env):
self.type = self.expression.type
+ def infer_type(self, env):
+ return self.expression.infer_type(env)
+
def result(self):
return self.result_code
@@
-192,6
+195,9
@@
class EvalWithTempExprNode(ExprNodes.ExprNode, LetNodeMixin):
self.pos = subexpression.pos
self.subexpression = subexpression
+ def infer_type(self, env):
+ return self.subexpression.infer_type(env)
+
def result(self):
return self.subexpression.result()