@@ -2096,7 +2096,7 @@ type IRawFSharpAssemblyData =
20962096abstract GetInternalsVisibleToAttributes : ILGlobals -> string list
20972097/// The raw IL module definition in the assembly, if any. This is not present for cross-project references
20982098/// in the language service
2099- abstract TryGetRawILModule :unit -> ILModuleDef option
2099+ abstract TryGetILModuleDef :unit -> ILModuleDef option
21002100/// The raw F# signature data in the assembly, if any
21012101abstract GetRawFSharpSignatureData : range * ilShortAssemName : string * fileName : string -> ( string * byte []) list
21022102/// The raw F# optimization data in the assembly, if any
@@ -2334,9 +2334,6 @@ type TcConfigBuilder =
23342334 isInvalidationSupported: bool
23352335
23362336/// used to log sqm data
2337- mutable sqmSessionGuid: System .Guid option
2338- mutable sqmNumOfSourceFiles: int
2339- sqmSessionStartedTime: int64
23402337
23412338/// if true - every expression in quotations will be augmented with full debug info (filename, location in file)
23422339mutable emitDebugInfoInQuotations: bool
@@ -2484,9 +2481,6 @@ type TcConfigBuilder =
24842481 noDebugData= false
24852482 isInteractive= false
24862483 isInvalidationSupported= false
2487- sqmSessionGuid= None
2488- sqmNumOfSourceFiles= 0
2489- sqmSessionStartedTime= System.DateTime.UtcNow.Ticks
24902484 emitDebugInfoInQuotations= false
24912485 exename= None
24922486 copyFSharpCore= CopyFSharpCoreFlag.No
@@ -2955,9 +2949,6 @@ type TcConfig private (data : TcConfigBuilder, validate:bool) =
29552949member x.isInteractive = data.isInteractive
29562950member x.isInvalidationSupported = data.isInvalidationSupported
29572951member x.emitDebugInfoInQuotations = data.emitDebugInfoInQuotations
2958- member x.sqmSessionGuid = data.sqmSessionGuid
2959- member x.sqmNumOfSourceFiles = data.sqmNumOfSourceFiles
2960- member x.sqmSessionStartedTime = data.sqmSessionStartedTime
29612952member x.copyFSharpCore = data.copyFSharpCore
29622953member x.shadowCopyReferences = data.shadowCopyReferences
29632954member x.tryGetMetadataSnapshot = data.tryGetMetadataSnapshot
@@ -3834,7 +3825,7 @@ type RawFSharpAssemblyDataBackedByFileOnDisk (ilModule: ILModuleDef, ilAssemblyR
38343825interface IRawFSharpAssemblyDatawith
38353826member __.GetAutoOpenAttributes ( ilg ) = GetAutoOpenAttributes ilg ilModule
38363827member __.GetInternalsVisibleToAttributes ( ilg ) = GetInternalsVisibleToAttributes ilg ilModule
3837- member __.TryGetRawILModule () = Some ilModule
3828+ member __.TryGetILModuleDef () = Some ilModule
38383829member __.GetRawFSharpSignatureData ( m , ilShortAssemName , filename ) =
38393830let resources = ilModule.Resources.AsList
38403831let sigDataReaders =
@@ -4102,6 +4093,7 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
41024093 FileName= Some fileName
41034094 MemberSignatureEquality= ( fun ty1 ty2 -> Tastops.typeEquivAux EraseAll g ty1 ty2)
41044095 ImportProvidedType= ( fun ty -> Import.ImportProvidedType( tcImports.GetImportMap()) m ty)
4096+ TryGetILModuleDef= ( fun () -> Some ilModule)
41054097 TypeForwarders= Map.empty}
41064098
41074099let ccu = CcuThunk.Create( ilShortAssemName, ccuData)
@@ -4404,8 +4396,8 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
44044396member tcImports.PrepareToImportReferencedILAssembly ( ctok , m , filename , dllinfo : ImportedBinary ) =
44054397 CheckDisposed()
44064398let tcConfig = tcConfigP.Get( ctok)
4407- assert dllinfo.RawMetadata.TryGetRawILModule () .IsSome
4408- let ilModule = dllinfo.RawMetadata.TryGetRawILModule () .Value
4399+ assert dllinfo.RawMetadata.TryGetILModuleDef () .IsSome
4400+ let ilModule = dllinfo.RawMetadata.TryGetILModuleDef () .Value
44094401let ilScopeRef = dllinfo.ILScopeRef
44104402let aref =
44114403match ilScopeRefwith
@@ -4453,7 +4445,7 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
44534445let ccuRawDataAndInfos =
44544446 ilModule.GetRawFSharpSignatureData( m, ilShortAssemName, filename)
44554447|> List.map( fun ( ccuName , sigDataReader ) ->
4456- let data = GetSignatureData( filename, ilScopeRef, ilModule.TryGetRawILModule (), sigDataReader)
4448+ let data = GetSignatureData( filename, ilScopeRef, ilModule.TryGetILModuleDef (), sigDataReader)
44574449
44584450let optDatas = Map.ofList optDataReaders
44594451
@@ -4478,6 +4470,7 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
44784470 IsProviderGenerated= false
44794471 ImportProvidedType= ( fun ty -> Import.ImportProvidedType( tcImports.GetImportMap()) m ty)
44804472#endif
4473+ TryGetILModuleDef= ilModule.TryGetILModuleDef
44814474 UsesFSharp20PlusQuotations= minfo.usesQuotations
44824475 MemberSignatureEquality= ( fun ty1 ty2 -> Tastops.typeEquivAux EraseAll( tcImports.GetTcGlobals()) ty1 ty2)
44834476 TypeForwarders= ImportILAssemblyTypeForwarders( tcImports.GetImportMap, m, ilModule.GetRawTypeForwarders()) }
@@ -4491,7 +4484,7 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
44914484if verbosethen dprintf" *** no optimization data for CCU%s , was DLL compiled with --no-optimization-data??\n " ccuName
44924485 None
44934486| Some info->
4494- let data = GetOptimizationData( filename, ilScopeRef, ilModule.TryGetRawILModule (), info)
4487+ let data = GetOptimizationData( filename, ilScopeRef, ilModule.TryGetILModuleDef (), info)
44954488let res = data.OptionalFixup( fun nm -> availableToOptionalCcu( tcImports.FindCcu( ctok, m, nm, lookupOnly= false )))
44964489if verbosethen dprintf" found optimization data for CCU%s \n " ccuName
44974490 Some res)
@@ -4508,7 +4501,7 @@ type TcImports(tcConfigP:TcConfigProvider, initialResolutions:TcAssemblyResoluti
45084501 ILScopeRef= ilScopeRef}
45094502let phase2 () =
45104503#if ! NO_ EXTENSIONTYPING
4511- match ilModule.TryGetRawILModule () with
4504+ match ilModule.TryGetILModuleDef () with
45124505| None-> () // no type providers can be used without a real IL Module present
45134506| Some ilModule->
45144507 ccuinfo.TypeProviders<- tcImports.ImportTypeProviderExtensions( ctok, tcConfig, filename, ilScopeRef, ilModule.ManifestOfAssembly.CustomAttrs.AsList, ccu.Contents, invalidateCcu, m)
@@ -5376,6 +5369,7 @@ let GetInitialTcState(m, ccuName, tcConfig:TcConfig, tcGlobals, tcImports:TcImpo
53765369 IsProviderGenerated= false
53775370 ImportProvidedType= ( fun ty -> Import.ImportProvidedType( tcImports.GetImportMap()) m ty)
53785371#endif
5372+ TryGetILModuleDef= ( fun () -> None)
53795373 FileName= None
53805374 Stamp= newStamp()
53815375 QualifiedName= None