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

+2
View File
@@ -428,6 +428,8 @@ const MaxTypeExprDepth = 63
// "foo". ID0 is the "pkg" or zero, ID1 is the "foo". Such a type can be
// refined as "foo[LHS..MHS]". LHS and MHS are Expr's, possibly nil. For
// example, the LHS for "u32[..4095]" is nil.
//
// TODO: function / method types.
type TypeExpr Node
func (n *TypeExpr) Node() *Node { return (*Node)(n) }