vendor tsgo
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
// 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")
|
||||
}
|
||||
Reference in New Issue
Block a user