Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(mainNode ast.Node, roots map[string]ast.Node, vars map[string]map[ast.Node]*common.Variable, importFunc ImportFunc, ec *utils.ErrCollector)
Check finds type problems in a given program. It require passing some previously processed data: * root nodes of all (transitively) imported Jsonnet files * resolution of variables in all files * importFunc which allows resolving imports
Types ¶
type ImportFunc ¶
ImportFunc should provide an AST node from a given location. If a node is not available it should return nil.$
type TypeDesc ¶
type TypeDesc struct { Bool bool Number bool String bool Null bool FunctionDesc *functionDesc ObjectDesc *objectDesc ArrayDesc *arrayDesc }
TypeDesc is a representation of a type. This is (way) richer than the basic Jsonnet type system with seven types.
func (*TypeDesc) AnyFunction ¶
AnyFunction returns whether the types contain all functions.
Click to show internal directories.
Click to hide internal directories.