Documentation
¶
Overview ¶
Package parse discovers loom.Graph declarations and turns them into the model IR. It reads AST nodes only to find source locations and reproduce expressions; every type decision goes through go/types.
Index ¶
Constants ¶
View Source
const DefaultLoomPath = "github.com/Xwudao/loom"
DefaultLoomPath is the import path of the loom runtime package.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser turns loom.Graph declarations into graphs.
func New ¶
New returns a Parser over a loaded package graph. base is the directory used to render source paths in diagnostics.
func (*Parser) ContextType ¶
ContextType returns context.Context, or nil.
func (*Parser) LifecycleType ¶
LifecycleType returns *loom.Lifecycle, or nil if the loom package is not part of the loaded graph.
Click to show internal directories.
Click to hide internal directories.