2014-07-13 01:04:16 +02:00
|
|
|
/// <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;
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
|
|
|
test.ranges().forEach((range) => {
|
2014-09-22 20:07:56 +02:00
|
|
|
verify.matchingBracePositionInCurrentFile(range.start, range.end - 1);
|
|
|
|
verify.matchingBracePositionInCurrentFile(range.end - 1, range.start);
|
|
|
|
});
|