Generate C code for "self.foo?()".

This commit is contained in:
Nigel Tao committed 2017-06-16 15:38:40 +10:00
1 parent e6f5fd7f53
commit cd526ccafe
5 files changed
+113 -55

No files matched your search

+3 -1
View File
@@ -599,7 +599,9 @@ func (q *checker) bcheckExprOther(n *a.Expr, depth uint32) (*big.Int, *big.Int,
case t.KeyOpenParen:
// TODO: delete this hack that only matches "in.src.read_u8?()" etc.
if isInSrcReadU8(q.tm, n) || isInDst(q.tm, n, t.KeyWrite) || isInDst(q.tm, n, t.KeyWriteU8) {
if isInSrcReadU8(q.tm, n) || isInDst(q.tm, n, t.KeyWrite) || isInDst(q.tm, n, t.KeyWriteU8) ||
isThisDecodeHeader(q.tm, n) {
for _, o := range n.Args() {
// TODO: check that the arg range at the caller and the
// signature are compatible.