Files
kjol/tools/tsgo/internal/fourslash/tests/gen/quickInfoDisplayPartsClassProperty_test.go
2026-07-09 16:50:43 -04:00

40 lines
1.2 KiB
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual quickInfoDisplayPartsClassProperty"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestQuickInfoDisplayPartsClassProperty(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `class c {
public /*1*/publicProperty: string;
private /*2*/privateProperty: string;
protected /*21*/protectedProperty: string;
static /*3*/staticProperty: string;
private static /*4*/privateStaticProperty: string;
protected static /*41*/protectedStaticProperty: string;
method() {
this./*5*/publicProperty;
this./*6*/privateProperty;
this./*61*/protectedProperty;
c./*7*/staticProperty;
c./*8*/privateStaticProperty;
c./*81*/protectedStaticProperty;
}
}
var cInstance = new c();
/*9*/cInstance./*10*/publicProperty;
/*11*/c./*12*/staticProperty;`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineHover(t)
}