Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 630efa2

Browse files
committed
[WIP] Fable support update
1 parent 184fd7c commit 630efa2

5 files changed

Lines changed: 13 additions & 10 deletions

File tree

src/fsharp/Fable.FCS/app.fs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ let main argv =
99
printfn "Parsing begins..."
1010

1111
let source = """
12-
type BB() = member x.MMM() = 2 * 3
13-
printfn "answer: %A" (42 * BB().MMM())
12+
printfn "answer: %A" 42
1413
"""
1514

1615
let metadataPath = "/temp/metadata/"

src/fsharp/Fable.FCS/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"engines": {
4-
"fable": "^0.7.31"
4+
"fable": "^0.7.32"
55
},
66
"dependencies": {
77
"fable-core": "^0.7.23"

src/fsharp/NicePrint.fs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module internal PrintUtilities =
103103
let tcref = attrib.TyconRef
104104
squareAngleL (layoutTyconRefImpl true denv tcref)
105105

106-
module private PrintIL =
106+
module PrintIL =
107107

108108
open Microsoft.FSharp.Compiler.AbstractIL.IL
109109

@@ -542,7 +542,7 @@ module private PrintIL =
542542
(pre ^^ wordL "=") @@-- body
543543

544544

545-
module private PrintTypes =
545+
module PrintTypes =
546546
// Note: We need nice printing of constants in order to print literals and attributes
547547
let layoutConst g ty c =
548548
let str =
@@ -1102,7 +1102,7 @@ module private PrintTypes =
11021102
layoutTypeWithInfoAndPrec denv SimplifyTypes.typeSimplificationInfo0 5 typ
11031103

11041104
/// Printing TAST objects
1105-
module private PrintTastMemberOrVals =
1105+
module PrintTastMemberOrVals =
11061106
open PrintTypes
11071107
let private layoutMember denv (v:Val) =
11081108
let v = mkLocalValRef v
@@ -1356,7 +1356,7 @@ module InfoMemberPrinting =
13561356
//-------------------------------------------------------------------------
13571357

13581358
/// Printing TAST objects
1359-
module private TastDefinitionPrinting =
1359+
module TastDefinitionPrinting =
13601360
open PrintTypes
13611361

13621362
let layoutExtensionMember denv (v:Val) =
@@ -1764,7 +1764,7 @@ module private TastDefinitionPrinting =
17641764

17651765
//--------------------------------------------------------------------------
17661766

1767-
module private InferredSigPrinting =
1767+
module InferredSigPrinting =
17681768
open PrintTypes
17691769

17701770
/// Layout the inferred signature of a compilation unit
@@ -1843,7 +1843,7 @@ module private InferredSigPrinting =
18431843

18441844
//--------------------------------------------------------------------------
18451845

1846-
module private PrintData =
1846+
module PrintData =
18471847
open PrintTypes
18481848

18491849
/// Nice printing of a subset of expressions, e.g. for refutations in pattern matching

src/fsharp/vs/SimpleServices.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Microsoft.FSharp.Compiler.SimpleSourceCodeServices
1717
open Microsoft.FSharp.Compiler.AbstractIL.IL
1818

1919
[<AutoOpen>]
20-
module private Utils =
20+
module Utils =
2121

2222
let buildFormatComment (xmlCommentRetriever: string * string -> string) cmt (sb: StringBuilder) =
2323
match cmt with

src/fsharp/vs/Symbols.fs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,10 @@ and FSharpUnionCase(cenv, v: UnionCaseRef) =
572572
if v.TryUnionCase.IsNone then
573573
invalidOp (sprintf "The union case '%s' could not be found in the target type" v.CaseName)
574574

575+
#if FABLE_COMPILER
576+
new (cenv, v, _) = FSharpUnionCase(cenv, v)
577+
#endif
578+
575579
member __.IsUnresolved =
576580
isUnresolved()
577581

0 commit comments

Comments
 (0)