MCPcopy Create free account
hub / github.com/microsoft/typescript-go / textWithContext

Struct textWithContext

internal/fourslash/baselineutil.go:916–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

914var lineSplitter = regexp.MustCompile(`\r?\n`)
915
916type 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
935func (t *textWithContext) FileName() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected