37 lines
867 B
Go
37 lines
867 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual navigationBarItemsFunctions"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestNavigationBarItemsFunctions(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `function foo() {
|
|
var x = 10;
|
|
function bar() {
|
|
var y = 10;
|
|
function biz() {
|
|
var z = 10;
|
|
}
|
|
function qux() {
|
|
// A function with an empty body should not be top level
|
|
}
|
|
}
|
|
}
|
|
|
|
function baz() {
|
|
var v = 10;
|
|
}`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineDocumentSymbol(t)
|
|
}
|