Generate a C placeholder for "in.src.read_u8?()".

This commit is contained in:
Nigel Tao committed 2017-06-03 12:25:31 +10:00
1 parent 0646f4472c
commit 1758637f89
7 files changed
+65 -8

No files matched your search

+4 -1
View File
@@ -444,7 +444,10 @@ func (q *checker) bcheckExprOther(n *a.Expr, depth uint32) (*big.Int, *big.Int,
// No-op.
case t.KeyOpenParen:
// TODO.
// TODO: delete this hack that only matches "in.src.read_u8?()".
if isInSrcReadU8(q.idMap, n.LHS().Expr()) && len(n.Args()) == 0 {
break
}
return nil, nil, fmt.Errorf("check: unrecognized token.Key (0x%X) for bcheckExprOther", n.ID0().Key())
case t.KeyOpenBracket: