44 lines
982 B
TypeScript
44 lines
982 B
TypeScript
/// <reference path="../fourslash.ts"/>
|
|
|
|
//////curly braces
|
|
////module Foo [|{
|
|
//// class Bar [|{
|
|
//// private f() [|{
|
|
//// }|]
|
|
////
|
|
//// private f2() [|{
|
|
//// if (true) [|{ }|] [|{ }|];
|
|
//// }|]
|
|
//// }|]
|
|
////}|]
|
|
////
|
|
//////parenthesis
|
|
////class FooBar {
|
|
//// private f[|()|] {
|
|
//// return [|([|(1 + 1)|])|];
|
|
//// }
|
|
////
|
|
//// private f2[|()|] {
|
|
//// if [|(true)|] { }
|
|
//// }
|
|
////}
|
|
////
|
|
//////square brackets
|
|
////class Baz {
|
|
//// private f() {
|
|
//// var a: any[|[]|] = [|[[|[1, 2]|], [|[3, 4]|], 5]|];
|
|
//// }
|
|
////}
|
|
////
|
|
////// angular brackets
|
|
////class TemplateTest [|<T1, T2 extends Array>|] {
|
|
//// public foo(a, b) {
|
|
//// return [|<any>|] a;
|
|
//// }
|
|
////}
|
|
|
|
for (const range of test.ranges()) {
|
|
verify.matchingBracePositionInCurrentFile(range.pos, range.end - 1);
|
|
verify.matchingBracePositionInCurrentFile(range.end - 1, range.pos);
|
|
}
|