query

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SemanticTokenBuild  protocol.SemanticTokenTypes = "build"
	SemanticTokenImport protocol.SemanticTokenTypes = "include"
)

Variables

Functions

func LoadEnvdEntries

func LoadEnvdEntries(doc starlark_query.DocumentContent) []*sitter.Node

Catch the semantic token of `build` inside `def build()`, as envd build file entry

As it will located at a line, only lineno is required actually

func LoadModuleImport

func LoadModuleImport(doc starlark_query.DocumentContent) []*sitter.Node

Catch the semantic token of `include` such as `envdlib = include("https://github.com/tensorchord/envdlib")`, as envd build file module import

As it will located at a line, only lineno is required actually

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL