// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual renameForDefaultExport03"

package fourslash_test

import (
	"testing"

	"github.com/microsoft/typescript-go/internal/core"
	"github.com/microsoft/typescript-go/internal/fourslash"
	. "github.com/microsoft/typescript-go/internal/fourslash/tests/util"
	"github.com/microsoft/typescript-go/internal/testutil"
)

func TestRenameForDefaultExport03(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `[|function /*1*/[|{| "contextRangeIndex": 0 |}f|]() {
    return 100;
}|]

[|export default /*2*/[|{| "contextRangeIndex": 2 |}f|];|]

var x: typeof /*3*/[|f|];

var y = /*4*/[|f|]();

/**
 *  Commenting [|{| "inComment": true |}f|]
 */
[|namespace /*5*/[|{| "contextRangeIndex": 7 |}f|] {
    var local = 100;
}|]`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.VerifyBaselineRename(t, nil /*preferences*/, ToAny(core.Filter(f.GetRangesByText().Get("f"), func(r *fourslash.RangeMarker) bool { return r.Marker == nil || r.Marker.Data["inComment"] == nil }))...)
}
