MCPcopy Create free account
hub / github.com/Tencent/LuaHelper / offsetForStartAndEnd

Function offsetForStartAndEnd

luahelper-lsp/langserver/lspcommon/file_cache.go:61–129  ·  view source on GitHub ↗

Previously used bytes converted to rune. Now use the high bit to determine how many bits the character occupies.

(contents []byte, startPos lsp.Position, endPos lsp.Position)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ApplyContentChangesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected