-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Log dependent files of script. * Ensure a type is not exported when it is hidden by a signature file. * Use signature file to determine dependent files in compileFileToJavaScript. * Don't wait indefinitely to build plugin. * Add changelog entries.
- Loading branch information
Showing
10 changed files
with
97 additions
and
12 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
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
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
11 changes: 11 additions & 0 deletions
11
tests/Integration/Integration/data/signatureHidesFunction/HideType.fs
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,11 @@ | ||
module HideType | ||
|
||
open Fable.Core | ||
|
||
/// This type should be hidden by the signature file | ||
type public Foobar = | ||
| Foo of int | ||
| Bar of string | ||
|
||
let someFunction () = | ||
JS.console.log "meh" |
3 changes: 3 additions & 0 deletions
3
tests/Integration/Integration/data/signatureHidesFunction/HideType.fsi
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,3 @@ | ||
module HideType | ||
|
||
val someFunction: unit -> unit |
23 changes: 23 additions & 0 deletions
23
tests/Integration/Integration/data/signatureHidesFunction/HideType.js.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,23 @@ | ||
import { Union } from "./fable_modules/fable-library-js.4.13.0/Types.js"; | ||
import { union_type, string_type, int32_type } from "./fable_modules/fable-library-js.4.13.0/Reflection.js"; | ||
import { some } from "./fable_modules/fable-library-js.4.13.0/Option.js"; | ||
|
||
class Foobar extends Union { | ||
constructor(tag, fields) { | ||
super(); | ||
this.tag = tag; | ||
this.fields = fields; | ||
} | ||
cases() { | ||
return ["Foo", "Bar"]; | ||
} | ||
} | ||
|
||
function Foobar_$reflection() { | ||
return union_type("HideType.Foobar", [], Foobar, () => [[["Item", int32_type]], [["Item", string_type]]]); | ||
} | ||
|
||
export function someFunction() { | ||
console.log(some("meh")); | ||
} | ||
|
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