Skip to content

Commit 1f29154

Browse files
committed
integrate visualfsharp master
2 parents d8400f2 + 6bff0d3 commit 1f29154

File tree

19 files changed

+94
-1133
lines changed

19 files changed

+94
-1133
lines changed

.gitignore

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
lib/debug
22
lib/release
33
lib/proto
4-
lib/bootstrap/4.0/*.mdb
5-
lib/bootstrap/4.0/*.xml
6-
lib/bootstrap/4.0/fsharpc
7-
lib/bootstrap/4.0/fsharpi
8-
lib/bootstrap/4.0/policy*
4+
lib/bootstrap/4.1/*.mdb
5+
lib/bootstrap/4.1/*.xml
6+
lib/bootstrap/4.1/fsharpc
7+
lib/bootstrap/4.1/fsharpi
8+
lib/bootstrap/4.1/policy*
99
aclocal.m4
1010
src/*.userprefs
1111
src/fsharp/FSStrings.resources
12-
lkg
1312
packages
1413
src/fsharp/FSharp.Build/*.resx
1514
src/fsharp/FSharp.Build-proto/*.resx

CHANGELOG-visualfsharp.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,28 @@ Visual F<span>#</span>
99

1010
All notable changes to this project will be documented in this file.
1111

12+
### [4.0.0] - Visual Studio 2015 Update 1 - 30 November 2015
13+
14+
#### Enhancements
15+
* Perf: `for i in expr do body` optimization [#219](https://github.com/Microsoft/visualfsharp/pull/219)
16+
* Remove type provider security dialog and use custom icon for type provider assembly reference [#448](https://github.com/Microsoft/visualfsharp/pull/448)
17+
* Perf: Enable parallel build inside Visual Studio [#487](https://github.com/Microsoft/visualfsharp/pull/487)
18+
* Perf: Remove StructBox for Value Types [#549](https://github.com/Microsoft/visualfsharp/pull/549)
19+
* Add compiler warnings for redundant arguments in raise/failwith/failwithf/nullArg/invalidOp/invalidArg [#630](https://github.com/Microsoft/visualfsharp/pull/630)
20+
* Add a compiler warning for lower case literals in patterns [#666](https://github.com/Microsoft/visualfsharp/pull/666)
21+
22+
#### Bug fixes
23+
* Fix scope of types for named values in attributes improperly set [#437](https://github.com/Microsoft/visualfsharp/pull/437)
24+
* Add general check for escaping typars to check phase [#442](https://github.com/Microsoft/visualfsharp/pull/442)
25+
* Fix AccessViolationException on obfuscated assemblies [#519](https://github.com/Microsoft/visualfsharp/pull/519)
26+
* Fix memory leaks while reloading solutions in Visual Studio [#591](https://github.com/Microsoft/visualfsharp/pull/591)
27+
* Enable breakpoints in `with` augmentations for class types [#608](https://github.com/Microsoft/visualfsharp/pull/608)
28+
* Fix false escaping type parameter check error [#613](https://github.com/Microsoft/visualfsharp/pull/613)
29+
* Fix quotation of readonly fields [#622](https://github.com/Microsoft/visualfsharp/pull/622)
30+
* Keep the reference icons when opening references [#623](https://github.com/Microsoft/visualfsharp/pull/623)
31+
* Don't suppress missing FSI transitive references [#626](https://github.com/Microsoft/visualfsharp/pull/626)
32+
* Make Seq.cast's non-generic and generic IEnumerable implementations equivalent [#651](https://github.com/Microsoft/visualfsharp/pull/651)
33+
1234
### [4.0.0] - 20 July 2015
1335

1436
Includes commits up to `dd8252eb8d20aaedf7b1c7576cd2a8a82d24f587`

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ and core tools for use across multiple platforms.
55

66

77
### Contributing to the F# Compiler, Core Library and Tools
8+
=======
9+
## Windows build
10+
11+
| |Release|
12+
|:--:|:--:|
13+
|**master**| [![Build status](https://img.shields.io/appveyor/ci/KevinRansom/visualfsharp-radou/master.svg)](https://ci.appveyor.com/project/KevinRansom/visualfsharp-radou/branch/master) |
14+
|**vs2015**| [![Build status](https://img.shields.io/appveyor/ci/KevinRansom/visualfsharp-radou/vs2015.svg)](https://ci.appveyor.com/project/KevinRansom/visualfsharp-radou/branch/vs2015) |
15+
|**coreclr**| [![Build status](https://img.shields.io/appveyor/ci/KevinRansom/visualfsharp-radou/coreclr.svg)](https://ci.appveyor.com/project/KevinRansom/visualfsharp-radou/branch/coreclr) |
16+
17+
###Contributing to the F# Language, Library, and Tools
18+
>>>>>>> 6bff0d341bc442b8b5dbc4cfca9683cc123d3737
819
920
Most contributions to the F# compiler/library/tools go first via the
1021
repository at https://github.com/Microsoft/visualfsharp. This ensures that the main
@@ -57,6 +68,7 @@ Stable builds are available in the NuGet Gallery:
5768

5869
The FSharp.Core NuGet package includes all of the FSharp.Core redistributables from Visual F#. In addition, they include assemblies for MonoAndroid and MonoTouch built from this repository.
5970

71+
<<<<<<< HEAD
6072
The FSharp.Compiler.Tools package includes the F# compiler `fsc.exe`, F# Interactive `fsi.exe`, build support,
6173
a copy of FSharp.Core used to run the tools, and related DLLs.
6274

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
os: Windows Server 2012 R2
1+
os: Visual Studio 2015
22
init:
33
- git config --global core.autocrlf input
44
build_script:

lib/bootstrap/4.0/SupportedRuntimes.xml

Lines changed: 0 additions & 31 deletions
This file was deleted.

lkg/FSharp-4.0.30319.1/bin/FsLex.exe.config

Lines changed: 0 additions & 7 deletions
This file was deleted.

lkg/FSharp-4.0.30319.1/bin/FsYacc.exe.config

Lines changed: 0 additions & 7 deletions
This file was deleted.
-76 KB
Binary file not shown.

src/absil/ilread.fs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,6 @@ type MemoryMappedFile(hMap: MemoryMapping.HANDLE, start:nativeint) =
220220
type ByteFile(bytes:byte[]) =
221221
inherit BinaryFile()
222222

223-
static member OpenIn f = ByteFile(FileSystem.ReadAllBytesShim f)
224-
static member OpenBytes bytes = ByteFile(bytes)
225-
226223
override mc.ReadByte addr = bytes.[addr]
227224
override mc.ReadBytes addr len = Array.sub bytes addr len
228225
override m.CountUtf8String addr =
@@ -905,6 +902,8 @@ type ILModuleReader =
905902
dispose: unit -> unit }
906903
member x.ILModuleDef = x.modul
907904
member x.ILAssemblyRefs = x.ilAssemblyRefs.Force()
905+
interface IDisposable with
906+
member x.Dispose() = x.dispose()
908907

909908

910909
type MethodData = MethodData of ILType * ILCallingConv * string * ILTypes * ILType * ILTypes
@@ -3946,8 +3945,6 @@ let rec genOpenBinaryReader infile is opts =
39463945

39473946
ilModule,ilAssemblyRefs,pdb
39483947

3949-
let CloseILModuleReader x = x.dispose()
3950-
39513948
let mkDefault ilg =
39523949
{ optimizeForMemory=false;
39533950
pdbPath= None;
@@ -3973,7 +3970,7 @@ let OpenILModuleReader infile opts =
39733970
mmap.Close();
39743971
ClosePdbReader pdb) }
39753972
with _ ->
3976-
let mc = ByteFile.OpenIn infile
3973+
let mc = ByteFile(infile |> FileSystem.ReadAllBytesShim)
39773974
let modul,ilAssemblyRefs,pdb = genOpenBinaryReader infile mc opts
39783975
{ modul = modul;
39793976
ilAssemblyRefs = ilAssemblyRefs;
@@ -3999,7 +3996,7 @@ let OpenILModuleReaderAfterReadingAllBytes infile opts =
39993996
match cacheResult with
40003997
| Some(ilModuleReader) -> ilModuleReader
40013998
| None ->
4002-
let mc = ByteFile.OpenIn infile
3999+
let mc = ByteFile(infile |> FileSystem.ReadAllBytesShim)
40034000
let modul,ilAssemblyRefs,pdb = genOpenBinaryReader infile mc opts
40044001
let ilModuleReader =
40054002
{ modul = modul;
@@ -4011,7 +4008,7 @@ let OpenILModuleReaderAfterReadingAllBytes infile opts =
40114008

40124009
let OpenILModuleReaderFromBytes fileNameForDebugOutput bytes opts =
40134010
assert opts.pdbPath.IsNone
4014-
let mc = ByteFile.OpenBytes bytes
4011+
let mc = ByteFile(bytes)
40154012
let modul,ilAssemblyRefs,pdb = genOpenBinaryReader fileNameForDebugOutput mc opts
40164013
let ilModuleReader =
40174014
{ modul = modul;

src/absil/ilread.fsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ type ILReaderOptions =
4141
val mkDefault : ILGlobals -> ILReaderOptions
4242

4343
// The non-memory resources (i.e. the file handle) associated with
44-
// the read can be recovered by calling CloseILModuleReader. Any remaining
44+
// the read can be recovered by calling Dispose. Any remaining
4545
// lazily-computed items in the metadata graph returned by MetadataOfILModuleReader
4646
// will no longer be valid.
4747
[<Sealed>]
4848
type ILModuleReader =
4949
member ILModuleDef : ILModuleDef
5050
member ILAssemblyRefs : ILAssemblyRef list
51+
interface System.IDisposable
5152

5253
val OpenILModuleReader: string -> ILReaderOptions -> ILModuleReader
53-
val CloseILModuleReader: ILModuleReader -> unit
5454

5555
/// Open a binary reader, except first copy the entire contents of the binary into
5656
/// memory, close the file and ensure any subsequent reads happen from the in-memory store.

0 commit comments

Comments
 (0)