vendor tsgo
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual goToDefinitionObjectLiteralProperties"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestGoToDefinitionObjectLiteralProperties(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `var o = {
|
||||
/*valueDefinition*/value: 0,
|
||||
get /*getterDefinition*/getter() {return 0 },
|
||||
set /*setterDefinition*/setter(v: number) { },
|
||||
/*methodDefinition*/method: () => { },
|
||||
/*es6StyleMethodDefinition*/es6StyleMethod() { }
|
||||
};
|
||||
|
||||
o./*valueReference*/value;
|
||||
o./*getterReference*/getter;
|
||||
o./*setterReference*/setter;
|
||||
o./*methodReference*/method;
|
||||
o./*es6StyleMethodReference*/es6StyleMethod;`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyBaselineGoToDefinition(t, false, "valueReference", "getterReference", "setterReference", "methodReference", "es6StyleMethodReference")
|
||||
}
|
||||
Reference in New Issue
Block a user