-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52d1df2
commit 31a3501
Showing
7 changed files
with
109 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...Lsp/CodeFixTests/GenerateAbstractClassStubTests/can_generate_abstract_class_stub.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[<AbstractClass>] | ||
type Shape(x0: float, y0: float) = | ||
let mutable x, y = x0, y0 | ||
|
||
abstract Name : string with get | ||
abstract Area : float with get | ||
|
||
member _.Move dx dy = | ||
x <- x + dx | ||
y <- y + dy | ||
|
||
type Square(x,y, sideLength) = | ||
inherit Shape(x,y) | ||
|
||
override this.Area: float = | ||
failwith "Not Implemented" | ||
override this.Name: string = | ||
failwith "Not Implemented" | ||
() |
22 changes: 22 additions & 0 deletions
22
...assStubTests/can_generate_abstract_class_stub_with_another_member_with_attribute.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[<AbstractClass>] | ||
type Shape(x0: float, y0: float) = | ||
let mutable x, y = x0, y0 | ||
|
||
abstract Name : string with get | ||
abstract Area : float with get | ||
|
||
member _.Move dx dy = | ||
x <- x + dx | ||
y <- y + dy | ||
|
||
type Square(x,y, sideLength) = | ||
inherit Shape(x,y) | ||
|
||
override this.Area: float = | ||
failwith "Not Implemented" | ||
override this.Name: string = | ||
failwith "Not Implemented" | ||
|
||
[<CompiledName("yo")>] | ||
member x.Foo() = 1 | ||
() |
19 changes: 19 additions & 0 deletions
19
...teAbstractClassStubTests/can_generate_abstract_class_stub_with_existing_override.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[<AbstractClass>] | ||
type Shape(x0: float, y0: float) = | ||
let mutable x, y = x0, y0 | ||
|
||
abstract Name : string with get | ||
abstract Area : float with get | ||
|
||
member _.Move dx dy = | ||
x <- x + dx | ||
y <- y + dy | ||
|
||
type Square(x,y, sideLength) = | ||
inherit Shape(x,y) | ||
|
||
override this.Area: float = | ||
failwith "Not Implemented" | ||
|
||
override this.Name = "Circle" | ||
() |
19 changes: 19 additions & 0 deletions
19
...erateAbstractClassStubTests/can_generate_abstract_class_stub_without_trailing_nl.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[<AbstractClass>] | ||
type Shape(x0: float, y0: float) = | ||
let mutable x, y = x0, y0 | ||
|
||
abstract Name : string with get | ||
abstract Area : float with get | ||
|
||
member _.Move dx dy = | ||
x <- x + dx | ||
y <- y + dy | ||
|
||
type Square(x,y, sideLength) = | ||
inherit Shape(x,y) | ||
|
||
override this.Area: float = | ||
failwith "Not Implemented" | ||
override this.Name: string = | ||
failwith "Not Implemented" | ||
() |
19 changes: 19 additions & 0 deletions
19
...sp/CodeFixTests/GenerateAbstractClassStubTests/inserts_override_in_correct_place.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[<AbstractClass>] | ||
type Shape(x0: float, y0: float) = | ||
let mutable x, y = x0, y0 | ||
|
||
abstract Name : string with get | ||
abstract Area : float with get | ||
|
||
member _.Move dx dy = | ||
x <- x + dx | ||
y <- y + dy | ||
|
||
type Square(x,y, sideLength) = | ||
inherit Shape(x,y) | ||
|
||
override this.Area: float = | ||
failwith "Not Implemented" | ||
override this.Name: string = | ||
failwith "Not Implemented" | ||
let a = 0 |