MCPcopy
hub / github.com/zeromicro/go-zero / ArrayDataType

Struct ArrayDataType

tools/goctl/pkg/parser/api/ast/typestatement.go:328–338  ·  view source on GitHub ↗

ArrayDataType is the array data type.

Source from the content-addressed store, hash-verified

326
327// ArrayDataType is the array data type.
328type ArrayDataType struct {
329 // LB is the left bracket token node.
330 LBrack *TokenNode
331 // Len is the array length.
332 Length *TokenNode
333 // RB is the right bracket token node.
334 RBrack *TokenNode
335 // DataType is the array data type.
336 DataType DataType
337 isChild bool
338}
339
340func (t *ArrayDataType) HasHeadCommentGroup() bool {
341 return t.LBrack.HasHeadCommentGroup()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected