Skip to content

Commit 1722f2e

Browse files
authored
Merge pull request #585 from dsyme/integrate-82
Integrate visuafsharp\master to 688c26b
2 parents d518f91 + 85752c4 commit 1722f2e

File tree

77 files changed

+4163
-3557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+4163
-3557
lines changed

packages.config

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,4 @@
1414
<package id="Microsoft.DiaSymReader" version="1.0.8" />
1515
<package id="FsSrGen" version="3.0.0" targetFramework="net46" />
1616
<package id="FSharp.SRGen.Build.Tasks" version="3.0.0" targetFramework="net46" />
17-
<package id="MicroBuild.Core" version="0.2.0" />
18-
<package id="WiX.Toolset.2015" version="3.10.0.1503" />
19-
<package id="Microsoft.VisualFSharp.Core.Redist" version="1.0.0" />
20-
<package id="Microsoft.VisualFSharp.Type.Providers.Redist" version="1.0.0" />
2117
</packages>

src/FSharpSource.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ Some other NuGET monikers to support in the future, see http://docs.nuget.org/do
114114
</PropertyGroup>
115115

116116
<PropertyGroup>
117-
<DefineConstants>$(DefineConstants);OPEN_BUILD</DefineConstants>
118117
<!-- Disable uwa toolchain nuget package resolve logic. -->
119118
<NuGetTargets Condition="'$(NuGetTargets)' == ''">false</NuGetTargets>
120119
</PropertyGroup>

src/absil/il.fsi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,9 +2092,7 @@ type ILPropertyRef =
20922092
member Name: string
20932093
interface System.IComparable
20942094

2095-
#if ENABLE_MONO_SUPPORT
20962095
val runningOnMono: bool
2097-
#endif
20982096

20992097
type ILReferences =
21002098
{ AssemblyReferences: ILAssemblyRef list;

src/absil/ildiag.fs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ module internal Microsoft.FSharp.Compiler.AbstractIL.Diagnostics
77
open Internal.Utilities
88

99
let diagnosticsLog = ref (Some stdout)
10+
11+
let setDiagnosticsChannel s = diagnosticsLog := s
12+
1013
let dflushn () = match !diagnosticsLog with None -> () | Some d -> d.WriteLine(); d.Flush()
1114
let dflush () = match !diagnosticsLog with None -> () | Some d -> d.Flush()
1215
let dprintn (s:string) =
@@ -18,4 +21,3 @@ let dprintf (fmt: Format<_,_,_,_>) =
1821
let dprintfn (fmt: Format<_,_,_,_>) =
1922
Printf.kfprintf dflushn (match !diagnosticsLog with None -> System.IO.TextWriter.Null | Some d -> d) fmt
2023

21-
let setDiagnosticsChannel s = diagnosticsLog := s

src/absil/ildiag.fsi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ module internal Microsoft.FSharp.Compiler.AbstractIL.Diagnostics
1111
open System.IO
1212
open Microsoft.FSharp.Core.Printf
1313

14-
val public setDiagnosticsChannel: TextWriter option -> unit
14+
val public setDiagnosticsChannel: TextWriter option -> unit
1515

1616
val public dprintfn: TextWriterFormat<'a> -> 'a
1717
val public dprintf: TextWriterFormat<'a> -> 'a
18-
1918
val public dprintn: string -> unit

src/absil/ilread.fs

Lines changed: 784 additions & 799 deletions
Large diffs are not rendered by default.

src/fsharp/AccessibilityLogic.fs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,28 @@ let private IsILMemberAccessible g amap m (tcrefOfViewedItem : TyconRef) ad acce
7070
match ad with
7171
| AccessibleFromEverywhere ->
7272
access = ILMemberAccess.Public
73+
7374
| AccessibleFromSomeFSharpCode ->
7475
(access = ILMemberAccess.Public ||
7576
access = ILMemberAccess.Family ||
7677
access = ILMemberAccess.FamilyOrAssembly)
78+
7779
| AccessibleFrom (cpaths,tcrefViewedFromOption) ->
80+
7881
let accessibleByFamily =
7982
((access = ILMemberAccess.Family ||
8083
access = ILMemberAccess.FamilyOrAssembly) &&
8184
match tcrefViewedFromOption with
8285
| None -> false
8386
| Some tcrefViewedFrom ->
8487
ExistsHeadTypeInEntireHierarchy g amap m (generalizedTyconRef tcrefViewedFrom) tcrefOfViewedItem)
88+
8589
let accessibleByInternalsVisibleTo =
86-
(access = ILMemberAccess.Assembly && canAccessFromOneOf cpaths tcrefOfViewedItem.CompilationPath)
90+
(access = ILMemberAccess.Assembly || access = ILMemberAccess.FamilyOrAssembly) &&
91+
canAccessFromOneOf cpaths tcrefOfViewedItem.CompilationPath
92+
8793
(access = ILMemberAccess.Public) || accessibleByFamily || accessibleByInternalsVisibleTo
94+
8895
| AccessibleFromSomewhere ->
8996
true
9097

src/fsharp/AugmentWithHashCompare.fs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -850,24 +850,24 @@ let TyconIsCandidateForAugmentationWithHash g tycon = TyconIsCandidateForAugment
850850
//-------------------------------------------------------------------------
851851

852852
let slotImplMethod (final,c,slotsig) : ValMemberInfo =
853-
{ ImplementedSlotSigs=[slotsig];
853+
{ ImplementedSlotSigs=[slotsig]
854854
MemberFlags=
855-
{ IsInstance=true;
856-
IsDispatchSlot=false;
857-
IsFinal=final;
858-
IsOverrideOrExplicitImpl=true;
859-
MemberKind=MemberKind.Member};
860-
IsImplemented=false;
855+
{ IsInstance=true
856+
IsDispatchSlot=false
857+
IsFinal=final
858+
IsOverrideOrExplicitImpl=true
859+
MemberKind=MemberKind.Member}
860+
IsImplemented=false
861861
ApparentParent=c}
862862

863863
let nonVirtualMethod c : ValMemberInfo =
864-
{ ImplementedSlotSigs=[];
865-
MemberFlags={ IsInstance=true;
866-
IsDispatchSlot=false;
867-
IsFinal=false;
868-
IsOverrideOrExplicitImpl=false;
869-
MemberKind=MemberKind.Member};
870-
IsImplemented=false;
864+
{ ImplementedSlotSigs=[]
865+
MemberFlags={ IsInstance=true
866+
IsDispatchSlot=false
867+
IsFinal=false
868+
IsOverrideOrExplicitImpl=false
869+
MemberKind=MemberKind.Member}
870+
IsImplemented=false
871871
ApparentParent=c}
872872

873873
let unitArg = ValReprInfo.unitArgData
@@ -945,7 +945,7 @@ let MakeBindingsForCompareAugmentation g (tycon:Tycon) =
945945
let thisv,thatv,comparee = comparef g tcref tycon
946946
mkLambdas m tps [thisv;thatv] (comparee,g.int_ty)
947947
[ // This one must come first because it may be inlined into the second
948-
mkCompGenBind vspec2 rhs2;
948+
mkCompGenBind vspec2 rhs2
949949
mkCompGenBind vspec1 rhs1; ]
950950
if tycon.IsUnionTycon then mkCompare mkUnionCompare
951951
elif tycon.IsRecordTycon || tycon.IsStructOrEnumTycon then mkCompare mkRecdCompare
@@ -1016,8 +1016,8 @@ let MakeBindingsForEqualityWithComparerAugmentation g (tycon:Tycon) =
10161016

10171017
mkLambdas m tps [thisv; unitv] (hashe,g.int_ty)
10181018

1019-
[(mkCompGenBind withcGetHashCodeVal.Deref withcGetHashCodeExpr) ;
1020-
(mkCompGenBind objGetHashCodeVal.Deref objGetHashCodeExpr) ;
1019+
[(mkCompGenBind withcGetHashCodeVal.Deref withcGetHashCodeExpr)
1020+
(mkCompGenBind objGetHashCodeVal.Deref objGetHashCodeExpr)
10211021
(mkCompGenBind withcEqualsVal.Deref withcEqualsExpr)]
10221022
if tycon.IsUnionTycon then mkStructuralEquatable mkUnionHashWithComparer mkUnionEqualityWithComparer
10231023
elif (tycon.IsRecordTycon || tycon.IsStructOrEnumTycon) then mkStructuralEquatable mkRecdHashWithComparer mkRecdEqualityWithComparer
@@ -1054,8 +1054,8 @@ let MakeBindingsForEqualsAugmentation g (tycon:Tycon) =
10541054
mkLambdas m tps [thisv;thatobjv] (equalse,g.bool_ty)
10551055

10561056

1057-
[ mkCompGenBind nocEqualsVal.Deref nocEqualsExpr;
1058-
mkCompGenBind objEqualsVal.Deref objEqualsExpr; ]
1057+
[ mkCompGenBind nocEqualsVal.Deref nocEqualsExpr
1058+
mkCompGenBind objEqualsVal.Deref objEqualsExpr ]
10591059
if tycon.IsExceptionDecl then mkEquals mkExnEquality
10601060
elif tycon.IsUnionTycon then mkEquals mkUnionEquality
10611061
elif tycon.IsRecordTycon || tycon.IsStructOrEnumTycon then mkEquals mkRecdEquality

0 commit comments

Comments
 (0)