vendor tsgo
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual navigationBarItemsInsideMethodsAndConstructors"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestNavigationBarItemsInsideMethodsAndConstructors(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `class Class {
|
||||
constructor() {
|
||||
function LocalFunctionInConstructor() {}
|
||||
interface LocalInterfaceInConstrcutor {}
|
||||
enum LocalEnumInConstructor { LocalEnumMemberInConstructor }
|
||||
}
|
||||
|
||||
method() {
|
||||
function LocalFunctionInMethod() {
|
||||
function LocalFunctionInLocalFunctionInMethod() {}
|
||||
}
|
||||
interface LocalInterfaceInMethod {}
|
||||
enum LocalEnumInMethod { LocalEnumMemberInMethod }
|
||||
}
|
||||
|
||||
emptyMethod() { } // Non child functions method should not be duplicated
|
||||
}`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyBaselineDocumentSymbol(t)
|
||||
}
|
||||
Reference in New Issue
Block a user