return token.NoPos
}
-// A FieldList represents a list of Fields, enclosed by parentheses or braces.
+// A FieldList represents a list of Fields, enclosed by parentheses,
+// curly braces, or square brackets.
type FieldList struct {
- Opening token.Pos // position of opening parenthesis/brace, if any
+ Opening token.Pos // position of opening parenthesis/brace/bracket, if any
List []*Field // field list; or nil
- Closing token.Pos // position of closing parenthesis/brace, if any
+ Closing token.Pos // position of closing parenthesis/brace/bracket, if any
}
func (f *FieldList) Pos() token.Pos {