Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChainedDeclMap ¶
type ChainedDeclMap struct { Parent DeclMap Impl DeclMapImpl }
func NewChainedDeclMap ¶
func NewChainedDeclMap(parent DeclMap) *ChainedDeclMap
func (*ChainedDeclMap) Get ¶
func (m *ChainedDeclMap) Get(name string) *Decl
func (*ChainedDeclMap) Overwrite ¶
func (m *ChainedDeclMap) Overwrite(name string, decl *Decl)
func (*ChainedDeclMap) Set ¶
func (m *ChainedDeclMap) Set(n DeclNode) error
type CompositeDeclMap ¶
type CompositeDeclMap struct {
// contains filtered or unexported fields
}
func NewCompositeDeclMap ¶
func NewCompositeDeclMap(maps ...DeclMap) *CompositeDeclMap
func (*CompositeDeclMap) Get ¶
func (c *CompositeDeclMap) Get(name string) *Decl
func (*CompositeDeclMap) Overwrite ¶
func (c *CompositeDeclMap) Overwrite(name string, decl *Decl)
func (*CompositeDeclMap) Set ¶
func (c *CompositeDeclMap) Set(decl DeclNode) error
type Decl ¶
func NewDeclaration ¶
type DeclMap ¶
type DeclMap interface { Get(name string) *Decl Set(DeclNode) error Overwrite(name string, decl *Decl) }
func NewDeclMap ¶
func NewDeclMap() DeclMap
type DeclMapImpl ¶
func (DeclMapImpl) Get ¶
func (m DeclMapImpl) Get(name string) *Decl
func (DeclMapImpl) Overwrite ¶
func (m DeclMapImpl) Overwrite(name string, decl *Decl)
func (DeclMapImpl) Set ¶
func (m DeclMapImpl) Set(decl DeclNode) error
type Ident ¶
- Ident ``` <identifier> ```
func NewIdentFrom ¶
func NewIdentFrom(arg interface{}) *Ident
type IdentList ¶
type IdentList []*Ident
- IdentList ``` Ident ','... ```
func NewIdentList ¶
func NewIdentList(args ...interface{}) IdentList
type Location ¶
func NewLocation ¶
Click to show internal directories.
Click to hide internal directories.