Documentation
¶
Index ¶
- type Checker
- func (c *Checker) Assignable(left, right types.Type) bool
- func (c *Checker) Comparable(left, right types.Type) bool
- func (c *Checker) Convertible(left, right types.Type) bool
- func (c *Checker) LookupTag(expr *ast.IdentExpr) (language.Tag, error)
- func (c *Checker) RegisterFn(node *ast.FnDefStmt) error
- func (c *Checker) RegisterTarget(node *ast.DeclTarget) error
- func (c *Checker) RegisterType(node *ast.TypeDefStmt) error
- func (c *Checker) ResolveExpr(expr ast.Expr) (types.Type, error)
- func (c *Checker) ResolveType(expr ast.TypeExpr) (types.Type, error)
- type Key
- type Section
- type Semantics
- func (s Semantics) Errors() error
- func (s *Semantics) Scan() error
- func (s *Semantics) ScanFns() *pkg.Scope
- func (s *Semantics) ScanImports() []*pkg.Package
- func (s Semantics) ScanName() string
- func (s *Semantics) ScanSections() []*Section
- func (s *Semantics) ScanTags() map[string]language.Tag
- func (s *Semantics) ScanTypes() *types.Environment
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
func NewChecker ¶
func NewChecker(scope *pkg.Scope, env *types.Environment) *Checker
func (*Checker) RegisterTarget ¶
func (c *Checker) RegisterTarget(node *ast.DeclTarget) error
func (*Checker) RegisterType ¶
func (c *Checker) RegisterType(node *ast.TypeDefStmt) error
type Semantics ¶
type Semantics struct {
// contains filtered or unexported fields
}
func (*Semantics) ScanImports ¶
func (*Semantics) ScanSections ¶
func (*Semantics) ScanTypes ¶
func (s *Semantics) ScanTypes() *types.Environment
Click to show internal directories.
Click to hide internal directories.