@@ -15,7 +15,6 @@ open System.Diagnostics
1515open Internal.Utilities .Library
1616open Internal.Utilities .Library .Extras
1717open FSharp.Compiler .AbstractIL .IL
18- open FSharp.Compiler .AbstractIL .ILX
1918open FSharp.Compiler .CompilerGlobalState
2019open FSharp.Compiler .Features
2120open FSharp.Compiler .IO
@@ -24,9 +23,7 @@ open FSharp.Compiler.Text.FileIndex
2423open FSharp.Compiler .Text .Range
2524open FSharp.Compiler .TypedTree
2625open FSharp.Compiler .TypedTreeBasics
27-
2826open Internal.Utilities
29- open System.Reflection
3027
3128let internal DummyFileNameForRangesWithoutASpecificLocation = startupFileName
3229let private envRange = rangeN DummyFileNameForRangesWithoutASpecificLocation 0
@@ -65,7 +62,6 @@ module FSharpLib =
6562 let LanguagePrimitivesName = Root + " .Core.LanguagePrimitives"
6663 let CompilerServicesName = Root + " .Core.CompilerServices"
6764 let LinqRuntimeHelpersName = Root + " .Linq.RuntimeHelpers"
68- let RuntimeHelpersName = Root + " .Core.CompilerServices.RuntimeHelpers"
6965 let ExtraTopLevelOperatorsName = Root + " .Core.ExtraTopLevelOperators"
7066 let NativeInteropName = Root + " .NativeInterop"
7167
@@ -77,7 +73,6 @@ module FSharpLib =
7773 let NativeInteropPath = splitNamespace NativeInteropName |> Array.ofList
7874 let CompilerServicesPath = splitNamespace CompilerServicesName |> Array.ofList
7975 let LinqRuntimeHelpersPath = splitNamespace LinqRuntimeHelpersName |> Array.ofList
80- let RuntimeHelpersPath = splitNamespace RuntimeHelpersName |> Array.ofList
8176 let QuotationsPath = splitNamespace QuotationsName |> Array.ofList
8277
8378 let RootPathArray = RootPath |> Array.ofList
@@ -218,7 +213,6 @@ type TcGlobals(
218213 let mk_MFLinq_tcref ccu n = mkNonLocalTyconRef2 ccu LinqPathArray n
219214 let mk_MFCollections_tcref ccu n = mkNonLocalTyconRef2 ccu CollectionsPathArray n
220215 let mk_MFCompilerServices_tcref ccu n = mkNonLocalTyconRef2 ccu CompilerServicesPath n
221- let mk_MFRuntimeHelpers_tcref ccu n = mkNonLocalTyconRef2 ccu RuntimeHelpersPath n
222216 let mk_MFControl_tcref ccu n = mkNonLocalTyconRef2 ccu ControlPathArray n
223217
224218 let tryFindSysTypeCcu path nm =
@@ -1893,6 +1887,10 @@ type TcGlobals(
18931887 /// Indicates if we can use System.Array.Empty when emitting IL for empty array literals
18941888 member val isArrayEmptyAvailable = v_ Array_ tcref.ILTyconRawMetadata.Methods.FindByName " Empty" |> List.isEmpty |> not
18951889
1890+ member g.isSpliceOperator v =
1891+ primValRefEq g.compilingFSharpCore g.fslibCcu v g.splice_ expr_ vref ||
1892+ primValRefEq g.compilingFSharpCore g.fslibCcu v g.splice_ raw_ expr_ vref
1893+
18961894 member _.FindSysTyconRef path nm = findSysTyconRef path nm
18971895
18981896 member _.TryFindSysTyconRef path nm = tryFindSysTyconRef path nm
0 commit comments