Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct {
Files map[protocol.URI]*ast.File
RootPath string
Types map[string]Type
// contains filtered or unexported fields
}
func NewEnvironment ¶
func NewEnvironment() *Environment
func (*Environment) AddTransientFile ¶
func (e *Environment) AddTransientFile(uri protocol.URI, content string) *ast.File
func (*Environment) CheckFilePhase1 ¶
func (e *Environment) CheckFilePhase1(file *ast.File)
func (*Environment) CheckPhase1 ¶
func (e *Environment) CheckPhase1()
CheckPhase1 executes the first phase of type checking. The first phase gathers a list of which types exist in the environment, but does not delve into details.
type NameAndType ¶
type NameAndType struct {
Name string
Def ast.Node
Type Type
}
type Named ¶
type Named struct {
Name string
Range token.Range
}
Named represents a named type, constructed with `@class`.
Click to show internal directories.
Click to hide internal directories.