28 lines
832 B
Go
28 lines
832 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual findAllRefsForFunctionExpression01"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestFindAllRefsForFunctionExpression01(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @Filename: file1.ts
|
|
var foo = /*1*/function /*2*/foo(a = /*3*/foo(), b = () => /*4*/foo) {
|
|
/*5*/foo(/*6*/foo, /*7*/foo);
|
|
}
|
|
// @Filename: file2.ts
|
|
/// <reference path="file1.ts" />
|
|
foo();`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4", "5", "6", "7")
|
|
}
|