Add a decoder.decode_lsd skeleton.

This commit is contained in:
Nigel Tao committed 2017-06-18 09:45:09 +10:00
1 parent 2543999c61
commit 8d1bf15d70
5 files changed
+35 -7

No files matched your search

+1 -1
View File
@@ -600,7 +600,7 @@ 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) ||
isThisDecodeHeader(q.tm, n) {
isThisMethod(q.tm, n, "decode_header") || isThisMethod(q.tm, n, "decode_lsd") {
for _, o := range n.Args() {
// TODO: check that the arg range at the caller and the