MCPcopy Index your code
hub / github.com/coder/guts / location

Method location

lookup.go:11–19  ·  view source on GitHub ↗
(obj types.Object)

Source from the content-addressed store, hash-verified

9)
10
11func (ts *Typescript) location(obj types.Object) bindings.Source {
12 file := ts.parsed.fileSet.File(obj.Pos())
13 position := file.Position(obj.Pos())
14 return bindings.Source{
15 // Do not use filepath, as that changes behavior based on OS
16 File: path.Join(obj.Pkg().Name(), filepath.Base(file.Name())),
17 Position: position,
18 }
19}

Callers 4

parseMethod · 0.95
constantDeclarationMethod · 0.95
buildStructMethod · 0.95
buildUnionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected