(documentURI lsproto.DocumentUri)
| 60 | } |
| 61 | |
| 62 | func (l *LanguageService) getProgramAndFile(documentURI lsproto.DocumentUri) (*compiler.Program, *ast.SourceFile) { |
| 63 | fileName := documentURI.FileName() |
| 64 | program, file := l.tryGetProgramAndFile(fileName) |
| 65 | if file == nil { |
| 66 | panic("file not found: " + fileName) |
| 67 | } |
| 68 | return program, file |
| 69 | } |
| 70 | |
| 71 | func (l *LanguageService) GetDocumentPositionMapper(fileName string) *sourcemap.DocumentPositionMapper { |
| 72 | d, ok := l.documentPositionMappers[fileName] |
no test coverage detected