38 lines
1.0 KiB
Go
38 lines
1.0 KiB
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual getOccurrencesClassExpressionPrivate"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
. "github.com/microsoft/typescript-go/internal/fourslash/tests/util"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestGetOccurrencesClassExpressionPrivate(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `let A = class Foo {
|
|
[|private|] foo;
|
|
[|private|] private;
|
|
constructor([|private|] y: string, public x: string) {
|
|
}
|
|
[|private|] method() { }
|
|
public method2() { }
|
|
[|private|] static static() { }
|
|
}
|
|
|
|
let B = class D {
|
|
constructor(private x: number) {
|
|
}
|
|
private test() {}
|
|
public test2() {}
|
|
}`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineDocumentHighlights(t, nil /*preferences*/, ToAny(f.Ranges())...)
|
|
}
|