Implement Expr.String.

This commit is contained in:
Nigel Tao committed 2017-05-12 13:22:27 +10:00
1 parent d92049b8fa
commit 1dd51ac30f
4 files changed
+156 -3

No files matched your search

+1
View File
@@ -162,6 +162,7 @@ func (n *Raw) SetFilenameLine(f string, l uint32) { n.filename, n.line = f, l }
type Expr Node
func (n *Expr) Node() *Node { return (*Node)(n) }
func (n *Expr) Suspendible() bool { return n.flags&FlagsSuspendible != 0 }
func (n *Expr) ConstValue() *big.Int { return n.constValue }
func (n *Expr) MType() *TypeExpr { return n.mType }
func (n *Expr) ID0() t.ID { return n.id0 }