(obj types.Object)
| 9 | ) |
| 10 | |
| 11 | func (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 | } |
no outgoing calls
no test coverage detected