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

33 lines
943 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual semanticClassification2"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestSemanticClassification2(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `interface /*0*/Thing {
toExponential(): number;
}
var Thing = 0;
Thing.toExponential();`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifySemanticTokens(t, []fourslash.SemanticToken{
{Type: "interface.declaration", Text: "Thing"},
{Type: "method.declaration", Text: "toExponential"},
{Type: "variable.declaration", Text: "Thing"},
{Type: "variable", Text: "Thing"},
{Type: "method.defaultLibrary", Text: "toExponential"},
})
}