| 914 | var lineSplitter = regexp.MustCompile(`\r?\n`) |
| 915 | |
| 916 | type textWithContext struct { |
| 917 | nLinesContext int // number of context lines to write to baseline |
| 918 | |
| 919 | readableContents *strings.Builder // builds what will be returned to be written to baseline |
| 920 | |
| 921 | newContent *strings.Builder // helper; the part of the original file content to write between details |
| 922 | pos lsproto.Position |
| 923 | isLibFile bool |
| 924 | fileName string |
| 925 | content string // content of the original file |
| 926 | lineStarts *lsconv.LSPLineMap |
| 927 | converters *lsconv.Converters |
| 928 | |
| 929 | // posLineInfo |
| 930 | posInfo *lsproto.Position |
| 931 | lineInfo int |
| 932 | } |
| 933 | |
| 934 | // implements lsconv.Script |
| 935 | func (t *textWithContext) FileName() string { |
nothing calls this directly
no outgoing calls
no test coverage detected