Add a set_limit method

This commit is contained in:
Nigel Tao committed 2018-04-28 13:56:37 +10:00
1 parent 6e22d68442
commit 04776e9dcf
14 files changed
+191 -11

No files matched your search

+1
View File
@@ -852,6 +852,7 @@ func (g *gen) writeReadUXX(b *buffer, n *a.Expr, name string, size uint32, endia
func isInSrc(tm *t.Map, n *a.Expr, methodName t.ID, nArgs int) bool {
callSuspendible := methodName != t.IDSinceMark &&
methodName != t.IDMark &&
methodName != t.IDSetLimit &&
methodName != t.IDLimit
if n.Operator() != t.IDOpenParen || n.CallSuspendible() != callSuspendible || len(n.Args()) != nArgs {
return false