Parse "struct foo(x u32)".

Also remove an obsolete TODO comment.
This commit is contained in:
Nigel Tao committed 2017-05-05 13:51:09 +10:00
1 parent 94cb8b25cb
commit 65d6608434
4 files changed
+45 -7

No files matched your search

+8 -1
View File
@@ -106,8 +106,14 @@ const (
// - FlagsSuspendible is "ID1" vs "ID1?"
KFunc
// KStruct is "struct ID1(List0)":
// - ID1: name
// - List0: <KParam> fields
// - FlagsSuspendible is "ID1" vs "ID1?"
KStruct
// KFile is a file of source code:
// - List0: <KFunc> top-level declarations
// - List0: <KFunc|KStruct> top-level declarations
KFile
)
@@ -131,6 +137,7 @@ var kindStrings = [...]string{
KInvalid: "KInvalid",
KParam: "KParam",
KReturn: "KReturn",
KStruct: "KStruct",
KType: "KType",
}