@@ -3612,31 +3612,31 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
36123612 ILScopeRef = ilScopeRef;
36133613 ILAssemblyRefs = ilAssemblyRefs }
36143614 tcImports.RegisterDll( dllinfo);
3615- let ccuData =
3616- { IsFSharp= false ;
3617- UsesQuotations= false ;
3618- InvalidateEvent=( new Event<_>()). Publish;
3615+ let ccuData : CcuData =
3616+ { IsFSharp= false
3617+ UsesQuotations= false
3618+ InvalidateEvent=( new Event<_>()). Publish
36193619 IsProviderGenerated = true
3620- QualifiedName= Some ( assembly.PUntaint(( fun a -> a.FullName), m));
3621- Contents = NewCcuContents ilScopeRef m ilShortAssemName ( NewEmptyModuleOrNamespaceType Namespace) ;
3622- ILScopeRef = ilScopeRef;
3623- Stamp = newStamp();
3624- SourceCodeDirectory = " " ;
3620+ QualifiedName= Some ( assembly.PUntaint(( fun a -> a.FullName), m))
3621+ Contents = NewCcuContents ilScopeRef m ilShortAssemName ( NewEmptyModuleOrNamespaceType Namespace)
3622+ ILScopeRef = ilScopeRef
3623+ Stamp = newStamp()
3624+ SourceCodeDirectory = " "
36253625 FileName = Some fileName
36263626 MemberSignatureEquality = ( fun ty1 ty2 -> Tastops.typeEquivAux EraseAll g ty1 ty2)
36273627 ImportProvidedType = ( fun ty -> Import.ImportProvidedType ( tcImports.GetImportMap()) m ty)
36283628 TypeForwarders = Map.empty }
36293629
36303630 let ccu = CcuThunk.Create( ilShortAssemName, ccuData)
36313631 let ccuinfo =
3632- { FSharpViewOfMetadata= ccu;
3633- ILScopeRef = ilScopeRef;
3634- AssemblyAutoOpenAttributes = [];
3635- AssemblyInternalsVisibleToAttributes = [];
3636- IsProviderGenerated = true ;
3637- TypeProviders=[];
3632+ { FSharpViewOfMetadata= ccu
3633+ ILScopeRef = ilScopeRef
3634+ AssemblyAutoOpenAttributes = []
3635+ AssemblyInternalsVisibleToAttributes = []
3636+ IsProviderGenerated = true
3637+ TypeProviders=[]
36383638 FSharpOptimizationData = notlazy None }
3639- tcImports.RegisterCcu( ccuinfo);
3639+ tcImports.RegisterCcu( ccuinfo)
36403640 // Yes, it is generative
36413641 true , dllinfo.ProviderGeneratedStaticLinkMap
36423642
@@ -3682,7 +3682,7 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
36823682 let pdbDir = ( try Filename.directoryName filename with _ -> " ." )
36833683 let pdbFile = ( try Filename.chopExtension filename with _ -> filename)+ " .pdb"
36843684 if FileSystem.SafeExists pdbFile then
3685- if verbose then dprintf " reading PDB file %s from directory %s \n " pdbFile pdbDir;
3685+ if verbose then dprintf " reading PDB file %s from directory %s \n " pdbFile pdbDir
36863686 Some pdbDir
36873687 else
36883688 None
@@ -3691,7 +3691,7 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
36913691
36923692 let ilILBinaryReader = OpenILBinary( filename, tcConfig.optimizeForMemory, tcConfig.openBinariesInMemory, ilGlobalsOpt, pdbPathOption, tcConfig.primaryAssembly.Name, tcConfig.noDebugData, tcConfig.shadowCopyReferences)
36933693
3694- tcImports.AttachDisposeAction( fun _ -> ILBinaryReader.CloseILModuleReader ilILBinaryReader);
3694+ tcImports.AttachDisposeAction( fun _ -> ILBinaryReader.CloseILModuleReader ilILBinaryReader)
36953695 ilILBinaryReader.ILModuleDef, ilILBinaryReader.ILAssemblyRefs
36963696 with e ->
36973697 error( Error( FSComp.SR.buildErrorOpeningBinaryFile( filename, e.Message), m))
@@ -3871,7 +3871,7 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
38713871 match providers with
38723872 | [] ->
38733873 if wasApproved then
3874- warning( Error( FSComp.SR.etHostingAssemblyFoundWithoutHosts( fileNameOfRuntimeAssembly, typeof< Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute>. FullName), m));
3874+ warning( Error( FSComp.SR.etHostingAssemblyFoundWithoutHosts( fileNameOfRuntimeAssembly, typeof< Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute>. FullName), m))
38753875 | _ ->
38763876
38773877 if typeProviderEnvironment.showResolutionMessages then
@@ -3937,24 +3937,24 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
39373937 | _ -> error( InternalError( " PrepareToImportReferencedIlDll: cannot reference .NET netmodules directly, reference the containing assembly instead" , m))
39383938
39393939 let nm = aref.Name
3940- if verbose then dprintn ( " Converting IL assembly to F# data structures " + nm);
3940+ if verbose then dprintn ( " Converting IL assembly to F# data structures " + nm)
39413941 let auxModuleLoader = tcImports.MkLoaderForMultiModuleIlAssemblies m
39423942 let invalidateCcu = new Event<_>()
39433943 let ccu = Import.ImportILAssembly( tcImports.GetImportMap, m, auxModuleLoader, ilScopeRef, tcConfig.implicitIncludeDir, Some filename, ilModule, invalidateCcu.Publish)
39443944
39453945 let ilg = defaultArg ilGlobalsOpt EcmaILGlobals
39463946
39473947 let ccuinfo =
3948- { FSharpViewOfMetadata= ccu;
3949- ILScopeRef = ilScopeRef;
3950- AssemblyAutoOpenAttributes = GetAutoOpenAttributes ilg ilModule;
3951- AssemblyInternalsVisibleToAttributes = GetInternalsVisibleToAttributes ilg ilModule;
3948+ { FSharpViewOfMetadata= ccu
3949+ ILScopeRef = ilScopeRef
3950+ AssemblyAutoOpenAttributes = GetAutoOpenAttributes ilg ilModule
3951+ AssemblyInternalsVisibleToAttributes = GetInternalsVisibleToAttributes ilg ilModule
39523952#if EXTENSIONTYPING
3953- IsProviderGenerated = false ;
3954- TypeProviders = [];
3953+ IsProviderGenerated = false
3954+ TypeProviders = []
39553955#endif
39563956 FSharpOptimizationData = notlazy None }
3957- tcImports.RegisterCcu( ccuinfo);
3957+ tcImports.RegisterCcu( ccuinfo)
39583958 let phase2 () =
39593959#if EXTENSIONTYPING
39603960 ccuinfo.TypeProviders <- tcImports.ImportTypeProviderExtensions ( tpApprovals, displayPSTypeProviderSecurityDialogBlockingUI, tcConfig, filename, ilScopeRef, ilModule.ManifestOfAssembly.CustomAttrs.AsList, ccu.Contents, invalidateCcu, m)
@@ -3970,14 +3970,14 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
39703970 let ilModule = dllinfo.RawMetadata
39713971 let ilScopeRef = dllinfo.ILScopeRef
39723972 let ilShortAssemName = getNameOfScopeRef ilScopeRef
3973- if verbose then dprintn ( " Converting F# assembly to F# data structures " +( getNameOfScopeRef ilScopeRef));
3973+ if verbose then dprintn ( " Converting F# assembly to F# data structures " +( getNameOfScopeRef ilScopeRef))
39743974 let attrs = GetCustomAttributesOfIlModule ilModule
3975- assert ( List.exists IsSignatureDataVersionAttr attrs);
3976- if verbose then dprintn ( " Relinking interface info from F# assembly " + ilShortAssemName);
3975+ assert ( List.exists IsSignatureDataVersionAttr attrs)
3976+ if verbose then dprintn ( " Relinking interface info from F# assembly " + ilShortAssemName)
39773977 let resources = ilModule.Resources.AsList
39783978 let externalSigAndOptData = [ " FSharp.Core" ; " FSharp.LanguageService.Compiler" ]
39793979 if not ( List.contains ilShortAssemName externalSigAndOptData) then
3980- assert ( List.exists IsSignatureDataResource resources);
3980+ assert ( List.exists IsSignatureDataResource resources)
39813981 let optDataReaders =
39823982 resources
39833983 |> List.choose ( fun r -> if IsOptimizationDataResource r then Some( GetOptimizationDataResourceName r, r.GetByteReader( m)) else None)
@@ -3994,9 +3994,9 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
39943994 if List.contains ilShortAssemName externalSigAndOptData then
39953995 let sigFileName = Path.ChangeExtension( filename, " sigdata" )
39963996 if not sigDataReaders.IsEmpty then
3997- error( Error( FSComp.SR.buildDidNotExpectSigdataResource(), m));
3997+ error( Error( FSComp.SR.buildDidNotExpectSigdataResource(), m))
39983998 if not ( FileSystem.SafeExists sigFileName) then
3999- error( Error( FSComp.SR.buildExpectedSigdataFile(), m));
3999+ error( Error( FSComp.SR.buildExpectedSigdataFile(), m))
40004000 [ ( ilShortAssemName, ( fun () -> FileSystem.ReadAllBytesShim sigFileName))]
40014001 else
40024002 sigDataReaders
@@ -4009,9 +4009,9 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
40094009 if List.contains ilShortAssemName externalSigAndOptData then
40104010 let optDataFile = Path.ChangeExtension( filename, " optdata" )
40114011 if not optDataReaders.IsEmpty then
4012- error( Error( FSComp.SR.buildDidNotExpectOptDataResource(), m));
4012+ error( Error( FSComp.SR.buildDidNotExpectOptDataResource(), m))
40134013 if not ( FileSystem.SafeExists optDataFile) then
4014- error( Error( FSComp.SR.buildExpectedFileAlongSideFSharpCore( optDataFile), m));
4014+ error( Error( FSComp.SR.buildExpectedFileAlongSideFSharpCore( optDataFile), m))
40154015 [ ( ilShortAssemName, ( fun () -> FileSystem.ReadAllBytesShim optDataFile))]
40164016 else
40174017 optDataReaders
@@ -4093,7 +4093,7 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
40934093 let phase2 () =
40944094 (* Relink *)
40954095 (* dprintf "Phase2: %s\n" filename; REMOVE DIAGNOSTICS *)
4096- ccuRawDataAndInfos |> List.iter ( fun ( data , _ , _ ) -> data.OptionalFixup( fun nm -> availableToOptionalCcu( tcImports.FindCcu( m, nm, lookupOnly= false ))) |> ignore);
4096+ ccuRawDataAndInfos |> List.iter ( fun ( data , _ , _ ) -> data.OptionalFixup( fun nm -> availableToOptionalCcu( tcImports.FindCcu( m, nm, lookupOnly= false ))) |> ignore)
40974097#if EXTENSIONTYPING
40984098 ccuRawDataAndInfos |> List.iter ( fun ( _ , _ , phase2 ) -> phase2())
40994099#endif
@@ -4325,7 +4325,7 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
43254325 sysCcu.FSharpViewOfMetadata
43264326 else
43274327 let search =
4328- seq { yield sysCcu.FSharpViewOfMetadata;
4328+ seq { yield sysCcu.FSharpViewOfMetadata
43294329 yield ! frameworkTcImports.GetCcusInDeclOrder()
43304330 for dllName in SystemAssemblies tcConfig.primaryAssembly.Name do
43314331 match frameworkTcImports.CcuTable.TryFind dllName with
0 commit comments