// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual semanticClassificatonTypeAlias"

package fourslash_test

import (
	"testing"

	"github.com/microsoft/typescript-go/internal/fourslash"
	"github.com/microsoft/typescript-go/internal/testutil"
)

func TestSemanticClassificatonTypeAlias(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `type /*0*/Alias = number
var x: /*1*/Alias;
var y = </*2*/Alias>{};
function f(x: /*3*/Alias): /*4*/Alias { return undefined; }`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.VerifySemanticTokens(t, []fourslash.SemanticToken{
		{Type: "type.declaration", Text: "Alias"},
		{Type: "variable.declaration", Text: "x"},
		{Type: "type", Text: "Alias"},
		{Type: "variable.declaration", Text: "y"},
		{Type: "type", Text: "Alias"},
		{Type: "function.declaration", Text: "f"},
		{Type: "parameter.declaration", Text: "x"},
		{Type: "type", Text: "Alias"},
		{Type: "type", Text: "Alias"},
	})
}
