Documentation
¶
Index ¶
- func FieldNameToString(fieldName ast.Node) string
- func FindBindByIDViaStack(stack *nodestack.NodeStack, id ast.Identifier) *ast.LocalBind
- func FindNodeByPosition(node ast.Node, location ast.Location) (*nodestack.NodeStack, error)
- func FindParameterByIDViaStack(stack *nodestack.NodeStack, id ast.Identifier, partialMatchFields bool) *ast.Parameter
- func FindTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.DesugaredObject
- func FindTopLevelObjectsInFile(vm *jsonnet.VM, filename, importedFrom string) []*ast.DesugaredObject
- func FindVarReference(varNode *ast.Var, vm *jsonnet.VM) (ast.Node, error)
- func InRange(point ast.Location, theRange ast.LocationRange) bool
- func RangeGreaterOrEqual(a ast.LocationRange, b ast.LocationRange) bool
- type ObjectRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldNameToString ¶
func FindBindByIDViaStack ¶
func FindNodeByPosition ¶
func FindTopLevelObjects ¶ added in v0.10.0
func FindTopLevelObjects(stack *nodestack.NodeStack, vm *jsonnet.VM) []*ast.DesugaredObject
Find all ast.DesugaredObject's from NodeStack
func FindTopLevelObjectsInFile ¶ added in v0.10.0
func FindTopLevelObjectsInFile(vm *jsonnet.VM, filename, importedFrom string) []*ast.DesugaredObject
func FindVarReference ¶ added in v0.10.0
FindVarReference finds the object that the variable is referencing To do so, we get the stack where the var is used and search that stack for the var's definition
func RangeGreaterOrEqual ¶
func RangeGreaterOrEqual(a ast.LocationRange, b ast.LocationRange) bool
RangeGreaterOrEqual returns true if the first range is greater than the second.
Types ¶
type ObjectRange ¶
type ObjectRange struct { Filename string SelectionRange ast.LocationRange FullRange ast.LocationRange FieldName string Node ast.Node }
func FieldToRange ¶
func FieldToRange(field ast.DesugaredObjectField) ObjectRange
func FindRangesFromIndexList ¶
func LocalBindToRange ¶
func LocalBindToRange(bind ast.LocalBind) ObjectRange
Click to show internal directories.
Click to hide internal directories.