vendor tsgo

This commit is contained in:
2026-07-09 16:50:43 -04:00
parent c06ea2e5a4
commit 98978e4930
5804 changed files with 1556156 additions and 101 deletions

View File

@@ -0,0 +1,83 @@
// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual getOccurrencesLoopBreakContinue4"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
. "github.com/microsoft/typescript-go/internal/fourslash/tests/util"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestGetOccurrencesLoopBreakContinue4(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `var arr = [1, 2, 3, 4];
label1: for (var n in arr) {
break;
continue;
break label1;
continue label1;
label2: for (var i = 0; i < arr[n]; i++) {
break label1;
continue label1;
break;
continue;
break label2;
continue label2;
function foo() {
label3: while (true) {
break;
continue;
break label3;
continue label3;
// these cross function boundaries
break label1;
continue label1;
break label2;
continue label2;
label4: [|do|] {
[|break|];
[|continue|];
[|break|] label4;
[|continue|] label4;
break label3;
continue label3;
switch (10) {
case 1:
case 2:
break;
[|break|] label4;
default:
[|continue|];
}
// these cross function boundaries
break label1;
continue label1;
break label2;
continue label2;
() => { break; }
} [|wh/**/ile|] (true)
}
}
}
}
label5: while (true) break label5;
label7: while (true) continue label5;`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineDocumentHighlights(t, nil /*preferences*/, ToAny(f.Ranges())...)
}