Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlowTypeArray ¶
type FlowTypeArray struct {
ElemenetType FlowType
}
func (*FlowTypeArray) GetExpr ¶
func (f *FlowTypeArray) GetExpr() string
type FlowTypeEnum ¶
type FlowTypeEnum struct {
// contains filtered or unexported fields
}
FlowTypeEnum is to represent enum types.
func (*FlowTypeEnum) GetExpr ¶
func (f *FlowTypeEnum) GetExpr() string
type FlowTypeMaybe ¶
type FlowTypeMaybe struct {
Elem FlowType
}
func (*FlowTypeMaybe) GetExpr ¶
func (f *FlowTypeMaybe) GetExpr() string
type FlowTypeNamed ¶
FlowTypeNamed is to represent other named object
func (*FlowTypeNamed) GetExpr ¶
func (f *FlowTypeNamed) GetExpr() string
type FlowTypeObject ¶
type FlowTypeObject struct {
Fields []FlowTypeObjectField
}
func (*FlowTypeObject) GetExpr ¶
func (f *FlowTypeObject) GetExpr() string
type FlowTypeObjectField ¶
type FlowTypePrimitive ¶
type FlowTypePrimitive string
const ( FlowTypeString FlowTypePrimitive = "string" FlowTypeNumber FlowTypePrimitive = "number" FlowTypeBool FlowTypePrimitive = "boolean" FlowTypeDate FlowTypePrimitive = "Date" FlowTypeAny FlowTypePrimitive = "any" )
Primitive flow types
func (FlowTypePrimitive) GetExpr ¶
func (f FlowTypePrimitive) GetExpr() string
type Generator ¶
type Generator struct {
Options *Options
}
Generator is a generator for Flow types
func NewGenerator ¶
NewGenerator returns a new instance of Generator
func (*Generator) GetAnnotationSymbol ¶
func (*Generator) GetAnnotationSymbol() generator.AnnotationSymbol
GetAnnotationSymbol implements generator.Generator#AnnotationSymbol
func (*Generator) GetFormatter ¶
GetFormatter implements generator.Generator#GetFormatter
func (*Generator) Run ¶
func (g *Generator) Run(pkg *generator.PackageInfo, nodes []*generator.AnnotatedNode) ([]*generator.Result, error)
Run implementes generator.Generator#Run
Click to show internal directories.
Click to hide internal directories.