MCPcopy Create free account
hub / github.com/docker/docker-language-server / insideRange

Function insideRange

internal/compose/definition.go:12–14  ·  view source on GitHub ↗
(rng protocol.Range, line, character protocol.UInteger)

Source from the content-addressed store, hash-verified

10)
11
12func insideRange(rng protocol.Range, line, character protocol.UInteger) bool {
13 return rng.Start.Line == line && rng.Start.Character <= character && character <= rng.End.Character
14}
15
16func Definition(ctx context.Context, definitionLinkSupport bool, doc document.ComposeDocument, params *protocol.DefinitionParams) (any, error) {
17 name, dependency := DocumentHighlights(doc, params.Position)

Callers 2

PrepareRenameFunction · 0.85
DefinitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected