mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
More tests
This commit is contained in:
parent
6c04a0d14e
commit
bcf7752c1f
@ -5,7 +5,7 @@
|
||||
//// set: function (x) {
|
||||
//// this._x = x;
|
||||
//// },
|
||||
//// copy: function ([|x|]) {
|
||||
//// copy: function ([|{| "declarationRangeIndex": 0 |}x|]) {
|
||||
//// this._x = [|x|].prop;
|
||||
//// }
|
||||
////};
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
//// set: function (x) {
|
||||
//// this._x = x;
|
||||
//// },
|
||||
//// copy: function ([|x|]) {
|
||||
//// copy: function ([|{| "declarationRangeIndex": 0 |}x|]) {
|
||||
//// this._x = [|x|].prop;
|
||||
//// }
|
||||
////};
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
////class Foo {
|
||||
////}
|
||||
////
|
||||
////var x = class [|Foo|] {
|
||||
////var x = [|class [|{| "declarationRangeIndex": 0 |}Foo|] {
|
||||
//// doIt() {
|
||||
//// return [|Foo|];
|
||||
//// }
|
||||
@ -11,7 +11,7 @@
|
||||
//// static doItStatically() {
|
||||
//// return [|Foo|].y;
|
||||
//// }
|
||||
////}
|
||||
////}|]
|
||||
////
|
||||
////var y = class {
|
||||
//// getSomeName() {
|
||||
@ -20,4 +20,5 @@
|
||||
////}
|
||||
////var z = class Foo {}
|
||||
|
||||
verify.rangesAreRenameLocations();
|
||||
const [rDef, ...rest] = test.ranges();
|
||||
verify.rangesAreRenameLocations(rest);
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////var x = function [|f|](g: any, h: any) {
|
||||
////var x = [|function [|{| "declarationRangeIndex": 0 |}f|](g: any, h: any) {
|
||||
//// [|f|]([|f|], g);
|
||||
////}
|
||||
////}|]
|
||||
|
||||
verify.rangesAreRenameLocations();
|
||||
const [rDef, ...rest] = test.ranges();
|
||||
verify.rangesAreRenameLocations(rest);
|
||||
|
||||
@ -3,11 +3,12 @@
|
||||
////function f() {
|
||||
////
|
||||
////}
|
||||
////var x = function [|f|](g: any, h: any) {
|
||||
////var x = [|function [|{| "declarationRangeIndex": 0 |}f|](g: any, h: any) {
|
||||
////
|
||||
//// let helper = function f(): any { f(); }
|
||||
////
|
||||
//// let foo = () => [|f|]([|f|], g);
|
||||
////}
|
||||
////}|]
|
||||
|
||||
verify.rangesAreRenameLocations();
|
||||
const [rDef, ...rest] = test.ranges();
|
||||
verify.rangesAreRenameLocations(rest);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user