Documentation ¶
Index ¶
- type Field
- type Resolver
- func (resolver *Resolver) AddSymbol(sym *Symbol)
- func (resolver *Resolver) AddSymbolDecl(decl ast.Decl)
- func (resolver *Resolver) AddType(name string, ty Type)
- func (resolver *Resolver) GetSymbol(name string) (*Symbol, bool)
- func (resolver *Resolver) Resolve(name string) (Type, error)
- func (resolver *Resolver) ResolveAll() error
- func (resolver *Resolver) ResolveField(field *ast.Field) (Field, error)
- func (resolver *Resolver) ResolveTypespec(typespec ast.Typespec) (Type, error)
- type Symbol
- type SymbolState
- type Type
- type TypeArray
- type TypeBoolean
- type TypeInt
- type TypePtr
- type TypeSameStruct
- type TypeString
- type TypeStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
func (*Resolver) AddSymbolDecl ¶
func (*Resolver) ResolveAll ¶
func (*Resolver) ResolveField ¶
type SymbolState ¶
type SymbolState int
const ( SymbolUnresolved SymbolState = iota SymbolResolving SymbolResolved )
type TypeBoolean ¶
type TypeBoolean struct{}
type TypeSameStruct ¶
type TypeSameStruct struct {
Type *TypeStruct
}
type TypeString ¶
type TypeString struct{}
type TypeStruct ¶
Click to show internal directories.
Click to hide internal directories.