未验证 提交 532fd1a6 编写于 作者: D dotnet-automerge-bot 提交者: GitHub

Merge pull request #6279 from Microsoft/merges/master-to-dev16.1

Merge master to dev16.1
1.0.27-prerelease-01001-04
2.1.500
2.1.504
\ No newline at end of file
......@@ -89,7 +89,7 @@
</PropertyGroup>
<!-- SDK targets override -->
<PropertyGroup Condition="'$(Configuration)' != 'Proto' AND Exists('$(ProtoOutputPath)')">
<PropertyGroup Condition="'$(Configuration)' != 'Proto' AND '$(DisableCompilerRedirection)'!='true' AND Exists('$(ProtoOutputPath)')">
<FSharpTargetsPath>$(ProtoOutputPath)\Microsoft.FSharp.Targets</FSharpTargetsPath>
<FSharpPropsShim>$(ProtoOutputPath)\Microsoft.FSharp.NetSdk.props</FSharpPropsShim>
<FSharpTargetsShim>$(ProtoOutputPath)\Microsoft.FSharp.NetSdk.targets</FSharpTargetsShim>
......
......@@ -9,17 +9,11 @@
<ArtifactsObjDir>$(ArtifactsDir)\obj</ArtifactsObjDir>
<OutputPath>$(ArtifactsBinDir)\fcs</OutputPath>
<IntermediateOutputPath>$(ArtifactsObjDir)\fcs</IntermediateOutputPath>
<DisableCompilerRedirection>true</DisableCompilerRedirection>
</PropertyGroup>
<!-- SDK targets override -->
<PropertyGroup>
<ProtoOutputPath>$(ArtifactsBinDir)\FSharp.Build\Proto\net46</ProtoOutputPath>
</PropertyGroup>
<PropertyGroup Condition="Exists('$(ProtoOutputPath)')">
<FSharpTargetsPath>$(ProtoOutputPath)\Microsoft.FSharp.Targets</FSharpTargetsPath>
<FSharpPropsShim>$(ProtoOutputPath)\Microsoft.FSharp.NetSdk.props</FSharpPropsShim>
<FSharpTargetsShim>$(ProtoOutputPath)\Microsoft.FSharp.NetSdk.targets</FSharpTargetsShim>
<FSharpOverridesTargetsShim>$(ProtoOutputPath)\Microsoft.FSharp.Overrides.NetSdk.targets</FSharpOverridesTargetsShim>
</PropertyGroup>
</Project>
......@@ -31,7 +31,7 @@ let dotnetExePath =
if File.Exists(pathToCli) then
pathToCli
else
DotNetCli.InstallDotNetSDK "2.1.403"
DotNetCli.InstallDotNetSDK "2.1.504"
let runDotnet workingDir args =
let result =
......@@ -97,8 +97,7 @@ Target "Build" (fun _ ->
Target "Test" (fun _ ->
// This project file is used for the netcoreapp2.0 tests to work out reference sets
runDotnet __SOURCE_DIRECTORY__ "restore ../tests/projects/Sample_NETCoreSDK_FSharp_Library_netstandard2_0/Sample_NETCoreSDK_FSharp_Library_netstandard2_0.fsproj -v n"
runDotnet __SOURCE_DIRECTORY__ "build ../tests/projects/Sample_NETCoreSDK_FSharp_Library_netstandard2_0/Sample_NETCoreSDK_FSharp_Library_netstandard2_0.fsproj -v n"
runDotnet __SOURCE_DIRECTORY__ "build ../tests/projects/Sample_NETCoreSDK_FSharp_Library_netstandard2_0/Sample_NETCoreSDK_FSharp_Library_netstandard2_0.fsproj -v n /restore /p:DisableCompilerRedirection=true"
// Now run the tests
runDotnet __SOURCE_DIRECTORY__ "test FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj --no-restore --no-build -v n -c release"
......
......@@ -170,7 +170,7 @@ let splitTypeNameRight nm =
/// This is used to store event, property and field maps.
type LazyOrderedMultiMap<'Key, 'Data when 'Key : equality>(keyf : 'Data -> 'Key, lazyItems : Lazy<'Data list>) =
let quickMap=
let quickMap =
lazyItems |> lazyMap (fun entries ->
let t = new Dictionary<_, _>(entries.Length, HashIdentity.Structural)
do entries |> List.iter (fun y ->
......
......@@ -1671,7 +1671,7 @@ and seekReadAssemblyManifest (ctxt: ILMetadataReader) pectxt idx =
Locale= readStringHeapOption ctxt localeIdx
CustomAttrsStored = ctxt.customAttrsReader_Assembly
MetadataIndex = idx
AssemblyLongevity=
AssemblyLongevity =
let masked = flags &&& 0x000e
if masked = 0x0000 then ILAssemblyLongevity.Unspecified
elif masked = 0x0002 then ILAssemblyLongevity.Library
......
......@@ -392,7 +392,7 @@ let emEnv0 =
emEntryPts = []
delayedFieldInits = [] }
let envBindTypeRef emEnv (tref:ILTypeRef) (typT, typB, typeDef)=
let envBindTypeRef emEnv (tref:ILTypeRef) (typT, typB, typeDef) =
match typT with
| null -> failwithf "binding null type in envBindTypeRef: %s\n" tref.Name;
| _ -> {emEnv with emTypMap = Zmap.add tref (typT, typB, typeDef, None) emEnv.emTypMap}
......
......@@ -172,7 +172,7 @@ let pdbGetPdbDebugInfo (embeddedPDBChunk:BinaryChunk) (uncompressedLength:int64)
iddChunk = embeddedPDBChunk;
}
let pdbGetDebugInfo (mvid:byte[]) (timestamp:int32) (filepath:string) (cvChunk:BinaryChunk) (embeddedPDBChunk:BinaryChunk option) (uncompressedLength:int64) (stream:MemoryStream option)=
let pdbGetDebugInfo (mvid:byte[]) (timestamp:int32) (filepath:string) (cvChunk:BinaryChunk) (embeddedPDBChunk:BinaryChunk option) (uncompressedLength:int64) (stream:MemoryStream option) =
match stream, embeddedPDBChunk with
| None, _ | _, None -> [| pdbGetCvDebugInfo mvid timestamp filepath cvChunk |]
| Some s, Some chunk -> [| pdbGetCvDebugInfo mvid timestamp filepath cvChunk; pdbGetPdbDebugInfo chunk uncompressedLength s; |]
......
......@@ -704,7 +704,7 @@ let getAugmentationAttribs g (tycon:Tycon) =
TryFindFSharpBoolAttribute g g.attrib_CustomComparisonAttribute tycon.Attribs,
TryFindFSharpBoolAttribute g g.attrib_StructuralComparisonAttribute tycon.Attribs
let CheckAugmentationAttribs isImplementation g amap (tycon:Tycon)=
let CheckAugmentationAttribs isImplementation g amap (tycon:Tycon) =
let m = tycon.Range
let attribs = getAugmentationAttribs g tycon
match attribs with
......
......@@ -42,7 +42,7 @@ type FormatInfoRegister =
mutable addZeros : bool
mutable precision : bool}
let newInfo ()=
let newInfo () =
{ leftJustify = false
numPrefixIfPos = None
addZeros = false
......
......@@ -295,6 +295,10 @@ type public Fsc () as this =
with get() = embedAllSources
and set(s) = embedAllSources <- s
member fsc.Embed
with get() = embeddedFiles
and set(e) = embeddedFiles <- e
member fsc.EmbeddedFiles
with get() = embeddedFiles
and set(e) = embeddedFiles <- e
......
......@@ -285,7 +285,7 @@ this file.
DocumentationFile="$(DocumentationFile)"
DotnetFscCompilerPath="$(DotnetFscCompilerPath)"
EmbedAllSources="$(EmbedAllSources)"
EmbeddedFiles="@(EmbeddedFiles)"
Embed="@(EmbeddedFiles)"
GenerateInterfaceFile="$(GenerateInterfaceFile)"
HighEntropyVA="$(HighEntropyVA)"
KeyFile="$(KeyOriginatorFile)"
......
......@@ -2207,7 +2207,7 @@ type LexFilterImpl (lightSyntaxStatus:LightSyntaxStatus, compilingFsLib, lexer,
| IEEE32(v) -> delayMergedToken(IEEE32(if plus then v else -v))
| IEEE64(v) -> delayMergedToken(IEEE64(if plus then v else -v))
| DECIMAL(v) -> delayMergedToken(DECIMAL(if plus then v else System.Decimal.op_UnaryNegation v))
| BIGNUM(v,s) -> delayMergedToken(BIGNUM((if plus then v else "-"^v),s))
| BIGNUM(v,s) -> delayMergedToken(BIGNUM((if plus then v else "-" + v),s))
| _ -> noMerge()
else
noMerge()
......
......@@ -4649,7 +4649,7 @@ let underlyingTypeOfEnumTy (g: TcGlobals) ty =
let tycon = (tcrefOfAppTy g ty).Deref
match tycon.GetFieldByName "value__" with
| Some rf -> rf.FormalType
| None -> error(InternalError("no 'value__' field found for enumeration type "^tycon.LogicalName, tycon.Range))
| None -> error(InternalError("no 'value__' field found for enumeration type " + tycon.LogicalName, tycon.Range))
// CLEANUP NOTE: Get rid of this mutation.
......@@ -5138,7 +5138,7 @@ and renameTycon tyenv x =
let res = tyenv.tyconRefRemap.[mkLocalTyconRef x]
res
with :? KeyNotFoundException ->
errorR(InternalError("couldn't remap internal tycon "^showL(DebugPrint.tyconL x), x.Range));
errorR(InternalError("couldn't remap internal tycon " + showL(DebugPrint.tyconL x), x.Range));
mkLocalTyconRef x
tcref.Deref
......@@ -5180,7 +5180,7 @@ and copyAndRemapAndBindTyconsAndVals g compgen tmenv tycons vs =
let res = tmenvinner.tyconRefRemap.[mkLocalTyconRef tycon]
res
with :? KeyNotFoundException ->
errorR(InternalError("couldn't remap internal tycon "^showL(DebugPrint.tyconL tycon), tycon.Range));
errorR(InternalError("couldn't remap internal tycon " + showL(DebugPrint.tyconL tycon), tycon.Range));
mkLocalTyconRef tycon
tcref.Deref
......@@ -5684,7 +5684,7 @@ let rec simplifyTrivialMatch spBind exprm matchm ty tree (targets : _[]) =
if n >= targets.Length then failwith "simplifyTrivialMatch: target out of range";
// REVIEW: should we use _spTarget here?
let (TTarget(vs, rhs, _spTarget)) = targets.[n]
if vs.Length <> es.Length then failwith ("simplifyTrivialMatch: invalid argument, n = "^string n^", List.length targets = "^string targets.Length);
if vs.Length <> es.Length then failwith ("simplifyTrivialMatch: invalid argument, n = " + string n + ", List.length targets = " + string targets.Length);
// These are non-sticky - any sequence point for 'rhs' goes on 'rhs' _after_ the bindings have been made
mkInvisibleLetsFromBindings rhs.Range vs es rhs
| _ ->
......@@ -6813,7 +6813,7 @@ let AdjustArityOfLambdaBody g arity (vs:Val list) body =
if (untupledTys.Length <> arity) then failwith "length untupledTys <> arity";
let dummyvs, dummyes =
untupledTys
|> List.mapi (fun i ty -> mkCompGenLocal v.Range (v.LogicalName ^"_"^string i) ty)
|> List.mapi (fun i ty -> mkCompGenLocal v.Range (v.LogicalName + "_" + string i) ty)
|> List.unzip
// These are non-sticky - any sequence point for 'body' goes on 'body' _after_ the binding has been made
let body = mkInvisibleLet v.Range v (mkRefTupled g v.Range dummyes untupledTys) body
......@@ -7036,7 +7036,7 @@ let AdjustPossibleSubsumptionExpr g (expr: Expr) (suppliedArgs: Expr list) : (Ex
argtysl |> List.mapi (fun i argtys ->
argtys |> List.mapi (fun j (_, argInfo) ->
match argInfo.Name with
| None -> CompilerGeneratedName ("arg" + string i ^string j)
| None -> CompilerGeneratedName ("arg" + string i + string j)
| Some id -> id.idText))
| _ ->
[]
......@@ -7166,11 +7166,11 @@ let AdjustPossibleSubsumptionExpr g (expr: Expr) (suppliedArgs: Expr list) : (Ex
assert (inpArgTys.Length = actualArgTys.Length)
let inpsAsVars, inpsAsExprs = inpArgTys |> List.mapi (fun j ty -> mkCompGenLocal appm ("arg"^string i^string j) ty) |> List.unzip
let inpsAsVars, inpsAsExprs = inpArgTys |> List.mapi (fun j ty -> mkCompGenLocal appm ("arg" + string i + string j) ty) |> List.unzip
let inpsAsActualArg = CoerceDetupled inpArgTys inpsAsExprs actualArgTys
let inpCloVarType = (mkFunTy (mkRefTupledTy g actualArgTys) cloVar.Type)
let newResTy = mkFunTy inpArgTy resTy
let inpCloVar, inpCloVarAsExpr = mkCompGenLocal appm ("clo"^string i) inpCloVarType
let inpCloVar, inpCloVarAsExpr = mkCompGenLocal appm ("clo" + string i) inpCloVarType
let newRes =
// For the final arg we can skip introducing the dummy variable
if i = N - 1 then
......@@ -7210,7 +7210,7 @@ let AdjustPossibleSubsumptionExpr g (expr: Expr) (suppliedArgs: Expr list) : (Ex
let niceNames =
match niceNames with
| nms when nms.Length = inpArgTys.Length -> nms
| [nm] -> inpArgTys |> List.mapi (fun i _ -> (nm^string i))
| [nm] -> inpArgTys |> List.mapi (fun i _ -> (nm + string i))
| nms -> nms
match suppliedArg with
| Some arg ->
......
......@@ -285,7 +285,7 @@ namespace Internal.Utilities.Text.Lexing
)
module GenericImplFragments =
let startInterpret(lexBuffer:LexBuffer<char>)=
let startInterpret(lexBuffer:LexBuffer<char>) =
lexBuffer.BufferScanStart <- lexBuffer.BufferScanStart + lexBuffer.LexemeLength;
lexBuffer.BufferMaxScanLength <- lexBuffer.BufferMaxScanLength - lexBuffer.LexemeLength;
lexBuffer.BufferScanLength <- 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册