Add a Checker.Funcs method.

This commit is contained in:
Nigel Tao committed 2017-05-06 18:09:37 +10:00
1 parent 1d07846295
commit 98352c2f07
3 files changed
+128 -11

No files matched your search

+4
View File
@@ -70,6 +70,10 @@ func (x ID) IsAssign() bool { return Flags(x)&FlagsAssign != 0 }
func (x ID) IsImplicitSemicolon() bool { return Flags(x)&FlagsImplicitSemicolon != 0 }
func (x ID) IsNumType() bool { return Flags(x)&FlagsNumType != 0 }
// QID is a qualified ID, such as "foo.bar". QID[0] is "foo"'s ID and QID[1] is
// "bar"'s. QID[0] may be 0 for a plain "bar".
type QID [2]ID
// Token combines an ID and the line number it was seen.
type Token struct {
ID ID