Documentation
¶
Overview ¶
Package typeprovider loads compiler-owned declaration graphs for explicitly imported platform packages. Providers are application-transparent: users import a runtime package and the compiler discovers its types automatically.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InputSnapshot ¶ added in v0.3.13
type InputSnapshot struct {
// contains filtered or unexported fields
}
InputSnapshot records the syntax and external files that determine the declarations produced by the active type providers.
func CaptureInputs ¶ added in v0.3.13
func CaptureInputs(programs []*ast.Program, context Context) InputSnapshot
CaptureInputs creates a lightweight provider dependency snapshot. Providers backed by live resources that cannot be fingerprinted remain non-reusable.
func (InputSnapshot) CanReuse ¶ added in v0.3.13
func (s InputSnapshot) CanReuse(previous InputSnapshot) bool
CanReuse reports whether declarations produced for previous remain valid for the receiver's current provider inputs.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package rails supplies TypeRB declarations for Rails and derives ActiveRecord model types from db/schema.rb.
|
Package rails supplies TypeRB declarations for Rails and derives ActiveRecord model types from db/schema.rb. |
|
schema
Package schema defines the normalized AST for the subset of Rails schema DSL that contributes model types.
|
Package schema defines the normalized AST for the subset of Rails schema DSL that contributes model types. |
Click to show internal directories.
Click to hide internal directories.