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

Method Insert

internal/fourslash/fourslash.go:3692–3696  ·  view source on GitHub ↗

Insert text at the current caret position.

(t *testing.T, text string)

Source from the content-addressed store, hash-verified

3690
3691// Insert text at the current caret position.
3692func (f *FourslashTest) Insert(t *testing.T, text string) {
3693 t.Helper()
3694 f.baselineState(t)
3695 f.typeText(t, text)
3696}
3697
3698// Insert text and a new line at the current caret position.
3699func (f *FourslashTest) InsertLine(t *testing.T, text string) {

Callers 15

VerifyJSDocCompletionMethod · 0.95
ProvideCodeActionsMethod · 0.80
inferFromTypesMethod · 0.80
reorderCandidatesMethod · 0.80
addTypeToUnionMethod · 0.80
insertTypeFunction · 0.80
InsertSortedFunction · 0.80
getBaselineOptionsMethod · 0.80

Calls 3

baselineStateMethod · 0.95
typeTextMethod · 0.95
HelperMethod · 0.65