Documentation ¶
Index ¶
- func AcceptStructField(s *parse.ParseState, fieldName node.IdentifierNode, fieldType TypeNode) *structFieldNode
- func AcceptStructFieldUnnamed(s *parse.ParseState, fieldType TypeNode) *structFieldNode
- func AcceptTypeSize(s *parse.ParseState, size int) *typeSizeNode
- func AcceptTypeSizeMax(s *parse.ParseState) *typeSizeNode
- func NewStructField(fieldName node.IdentifierNode, fieldType TypeNode) *structFieldNode
- func NewStructFieldUnnamed(fieldType TypeNode) *structFieldNode
- func NewTypeSize(size int) *typeSizeNode
- func NewTypeSizeMax() *typeSizeNode
- type StructFieldNode
- type TypeCode
- type TypeNode
- func AcceptArray(s *parse.ParseState, element TypeNode) TypeNode
- func AcceptBool(s *parse.ParseState) TypeNode
- func AcceptBytes(s *parse.ParseState) TypeNode
- func AcceptBytesSized(s *parse.ParseState, size TypeSizeNode) TypeNode
- func AcceptDate(s *parse.ParseState) TypeNode
- func AcceptFloat64(s *parse.ParseState) TypeNode
- func AcceptInt64(s *parse.ParseState) TypeNode
- func AcceptJSON(s *parse.ParseState) TypeNode
- func AcceptNumeric(s *parse.ParseState) TypeNode
- func AcceptString(s *parse.ParseState) TypeNode
- func AcceptStringSized(s *parse.ParseState, size TypeSizeNode) TypeNode
- func AcceptStruct(s *parse.ParseState, fields []StructFieldNode) TypeNode
- func AcceptTimestamp(s *parse.ParseState) TypeNode
- func NewArray(element TypeNode) TypeNode
- func NewBool() TypeNode
- func NewBytes() TypeNode
- func NewBytesSized(size TypeSizeNode) TypeNode
- func NewDate() TypeNode
- func NewFloat64() TypeNode
- func NewInt64() TypeNode
- func NewJSON() TypeNode
- func NewNumeric() TypeNode
- func NewString() TypeNode
- func NewStringSized(size TypeSizeNode) TypeNode
- func NewStruct(fields []StructFieldNode) TypeNode
- func NewTimestamp() TypeNode
- type TypeSizeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptStructField ¶
func AcceptStructField(s *parse.ParseState, fieldName node.IdentifierNode, fieldType TypeNode) *structFieldNode
func AcceptStructFieldUnnamed ¶
func AcceptStructFieldUnnamed(s *parse.ParseState, fieldType TypeNode) *structFieldNode
func AcceptTypeSize ¶
func AcceptTypeSize(s *parse.ParseState, size int) *typeSizeNode
func AcceptTypeSizeMax ¶
func AcceptTypeSizeMax(s *parse.ParseState) *typeSizeNode
func NewStructField ¶
func NewStructField(fieldName node.IdentifierNode, fieldType TypeNode) *structFieldNode
func NewStructFieldUnnamed ¶
func NewStructFieldUnnamed(fieldType TypeNode) *structFieldNode
func NewTypeSize ¶
func NewTypeSize(size int) *typeSizeNode
func NewTypeSizeMax ¶
func NewTypeSizeMax() *typeSizeNode
Types ¶
type StructFieldNode ¶
type TypeNode ¶
type TypeNode interface { node.Node TypeCode() TypeCode IsScalar() bool ScalarName() string ScalarSized() bool ScalarSize() TypeSizeNode IsArray() bool ArrayElement() TypeNode IsStruct() bool StructFields() []StructFieldNode }
func AcceptArray ¶
func AcceptArray(s *parse.ParseState, element TypeNode) TypeNode
func AcceptBool ¶
func AcceptBool(s *parse.ParseState) TypeNode
func AcceptBytes ¶
func AcceptBytes(s *parse.ParseState) TypeNode
func AcceptBytesSized ¶
func AcceptBytesSized(s *parse.ParseState, size TypeSizeNode) TypeNode
func AcceptDate ¶
func AcceptDate(s *parse.ParseState) TypeNode
func AcceptFloat64 ¶
func AcceptFloat64(s *parse.ParseState) TypeNode
func AcceptInt64 ¶
func AcceptInt64(s *parse.ParseState) TypeNode
func AcceptJSON ¶
func AcceptJSON(s *parse.ParseState) TypeNode
func AcceptNumeric ¶
func AcceptNumeric(s *parse.ParseState) TypeNode
func AcceptString ¶
func AcceptString(s *parse.ParseState) TypeNode
func AcceptStringSized ¶
func AcceptStringSized(s *parse.ParseState, size TypeSizeNode) TypeNode
func AcceptStruct ¶
func AcceptStruct(s *parse.ParseState, fields []StructFieldNode) TypeNode
func AcceptTimestamp ¶
func AcceptTimestamp(s *parse.ParseState) TypeNode
func NewBytesSized ¶
func NewBytesSized(size TypeSizeNode) TypeNode
func NewFloat64 ¶
func NewFloat64() TypeNode
func NewNumeric ¶
func NewNumeric() TypeNode
func NewStringSized ¶
func NewStringSized(size TypeSizeNode) TypeNode
func NewStruct ¶
func NewStruct(fields []StructFieldNode) TypeNode
func NewTimestamp ¶
func NewTimestamp() TypeNode
Click to show internal directories.
Click to hide internal directories.