mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
65 lines
1.0 KiB
Go
65 lines
1.0 KiB
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual outliningSpansForImportAndExportAttributes"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestOutliningSpansForImportAndExportAttributes(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `import { a1, a2 } from "a";
|
|
;
|
|
import {
|
|
} from "a";
|
|
;
|
|
import [|{
|
|
b1,
|
|
b2,
|
|
}|] from "b";
|
|
;
|
|
import j1 from "./j" with { type: "json" };
|
|
;
|
|
import j2 from "./j" with {
|
|
};
|
|
;
|
|
import j3 from "./j" with [|{
|
|
type: "json"
|
|
}|];
|
|
;
|
|
[|import { a5, a6 } from "a";
|
|
import [|{
|
|
a7,
|
|
a8,
|
|
}|] from "a";|]
|
|
export { a1, a2 };
|
|
;
|
|
export { a3, a4 } from "a";
|
|
;
|
|
export {
|
|
};
|
|
;
|
|
export [|{
|
|
b1,
|
|
b2,
|
|
}|];
|
|
;
|
|
export {
|
|
} from "b";
|
|
;
|
|
export [|{
|
|
b3,
|
|
b4,
|
|
}|] from "b";
|
|
;`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyOutliningSpans(t)
|
|
}
|