package fourslash_test

import (
	"testing"

	"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
	"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
)

func TestFindAllReferencesLinkTag3(t *testing.T) {
	t.Parallel()

	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `namespace NPR/*5*/ {
    export class Consider/*4*/ {
        This/*3*/ = class {
            show/*2*/() { }
        }
        m/*1*/() { }
    }
    /**
     * {@linkcode Consider.prototype.m}
     * {@linkplain Consider#m}
     * {@linkcode Consider#This#show}
     * {@linkplain Consider.This.show}
     * {@linkcode NPR.Consider#This#show}
     * {@linkplain NPR.Consider.This#show}
     * {@linkcode NPR.Consider#This.show} # doesn't parse trailing .
     * {@linkcode NPR.Consider.This.show}
     */
    export function ref() { }
}
/**
 * {@linkplain NPR.Consider#This#show hello hello}
 * {@linkplain NPR.Consider.This#show}
 * {@linkcode NPR.Consider#This.show} # doesn't parse trailing .
 * {@linkcode NPR.Consider.This.show}
 */
export function outerref() { }`
	f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4", "5")
}
