Documentation ¶
Index ¶
- Variables
- func PackageFromFile(path string) (*ast.Package, error)
- type Model
- func (m *Model) CapitalizeNames()
- func (m *Model) EvaluateBitmasks() error
- func (m *Model) EvaluateChoices() error
- func (m *Model) EvaluateConsts() error
- func (m *Model) EvaluateEnums() error
- func (m *Model) EvaluateStructs() error
- func (m *Model) EvaluateUnions() error
- func (m *Model) InstantiateTemplates() error
- func (m *Model) ResolveImports() error
- func (m *Model) ResolveTypes() error
- type TypeError
- type UnknownPackage
- type UnknownType
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIncorrectNumberOfTemplateParameters = errors.New("incorrect number of template parameters")
Functions ¶
Types ¶
type Model ¶
func FromFilesystem ¶
func (*Model) CapitalizeNames ¶
func (m *Model) CapitalizeNames()
func (*Model) EvaluateBitmasks ¶
func (*Model) EvaluateChoices ¶
func (*Model) EvaluateConsts ¶ added in v0.2.6
EvaluateConsts evaluates all constants in a model
func (*Model) EvaluateEnums ¶
func (*Model) EvaluateStructs ¶
func (*Model) EvaluateUnions ¶
func (*Model) InstantiateTemplates ¶
func (*Model) ResolveImports ¶
func (*Model) ResolveTypes ¶
ResolveTypes resolves all type references. This assumes that template instantiation has already happened.
type UnknownPackage ¶
type UnknownPackage struct {
Package string
}
func (UnknownPackage) Error ¶
func (e UnknownPackage) Error() string
type UnknownType ¶
type UnknownType struct {
ast.TypeReference
}
func (UnknownType) Error ¶
func (e UnknownType) Error() string
Click to show internal directories.
Click to hide internal directories.