aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/field.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/xgbgen/field.go')
-rw-r--r--nexgb/xgbgen/field.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/nexgb/xgbgen/field.go b/nexgb/xgbgen/field.go
index d6957b7..243cfb0 100644
--- a/nexgb/xgbgen/field.go
+++ b/nexgb/xgbgen/field.go
@@ -105,6 +105,7 @@ type SingleField struct {
srcName string
xmlName string
Type Type
+ Comment string
}
func (f *SingleField) Initialize(p *Protocol) {
@@ -255,10 +256,12 @@ func (f *ExprField) Initialize(p *Protocol) {
// integers. The mask specifies which kinds of values are in the list.
// (i.e., See ConfigureWindow, CreateWindow, ChangeWindowAttributes, etc.)
type ValueField struct {
- Parent interface{}
- MaskType Type
- MaskName string
- ListName string
+ Parent interface{}
+ MaskType Type
+ MaskName string
+ ListName string
+ MaskComment string
+ ListComment string
}
func (f *ValueField) SrcName() string {
@@ -324,6 +327,7 @@ type SwitchField struct {
MaskName string
Expr Expression
Bitcases []*Bitcase
+ Comment string
}
func (f *SwitchField) SrcName() string {