Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit870f8c9

Browse files
committed
FX_MINIMAL_REFLECTION -- dead code removal
1 parent8bc1182 commit870f8c9

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

‎src/fsharp/FSharp.Core/fslib-extra-pervasives.fs‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,11 @@ module ExtraTopLevelOperators =
193193
[<CompiledName("ToSByte")>]
194194
let inlineint8 x= Checked.sbyte x
195195

196-
197-
#if FX_MINIMAL_REFLECTION// not on Compact Framework
198-
#else
199196
[<CompiledName("SpliceExpression")>]
200197
let(~%)(_:Microsoft.FSharp.Quotations.Expr<'a>):'a= raise<| InvalidOperationException(SR.GetString(SR.firstClassUsesOfSplice))
201198

202199
[<CompiledName("SpliceUntypedExpression")>]
203200
let(~%%)(_:Microsoft.FSharp.Quotations.Expr):'a= raise<| InvalidOperationException(SR.GetString(SR.firstClassUsesOfSplice))
204-
#endif
205201

206202
[<assembly: AutoOpen("Microsoft.FSharp")>]
207203
[<assembly: AutoOpen("Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicOperators")>]

‎src/fsharp/FSharp.Core/fslib-extra-pervasives.fsi‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,23 +126,18 @@ module ExtraTopLevelOperators =
126126
[<CompiledName("CreateArray2D")>]
127127
val array2D:rows:seq<#seq<'T>>-> 'T[,]
128128

129-
130-
#if FX_MINIMAL_REFLECTION//not on Compact Framework
131-
#else
132129
///<summary>Special prefix operator for splicing typed expressions into quotation holes.</summary>
133130
[<CompiledName("SpliceExpression")>]
134131
val(~%):expression:Microsoft.FSharp.Quotations.Expr<'T>-> 'T
135132

136133
///<summary>Special prefix operator for splicing untyped expressions into quotation holes.</summary>
137134
[<CompiledName("SpliceUntypedExpression")>]
138135
val(~%%):expression:Microsoft.FSharp.Quotations.Expr-> 'T
139-
#endif
140136

141137
///<summary>An active pattern to force the execution of values of type <c>Lazy&lt;_&gt;</c>.</summary>
142138
[<CompiledName("LazyPattern")>]
143139
val(|Lazy|):input:Lazy<'T>-> 'T
144140

145-
146141
///<summary>Builds a query using query syntax and operators.</summary>
147142
val query:Microsoft.FSharp.Linq.QueryBuilder
148143

‎src/fsharp/FSharp.Core/quotations.fs‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespaceMicrosoft.FSharp.Quotations
44

5-
#if!FX_MINIMAL_REFLECTION
65
openSystem
76
openSystem.IO
87
openSystem.Reflection
@@ -2222,5 +2221,3 @@ module ExprShape =
22222221
| CombTerm(op,args)-> ShapeCombination(box<ExprConstInfo* Expr list>(op,expr.CustomAttributes),args)
22232222
| HoleTerm_-> invalidArg"expr"(SR.GetString(SR.QunexpectedHole))
22242223
loop(e:> Expr)
2225-
2226-
#endif

‎src/fsharp/FSharp.Core/quotations.fsi‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
/// <summary>Types and functions related to expression quotations</summary>
44
namespaceMicrosoft.FSharp.Quotations
55

6-
#if FX_MINIMAL_REFLECTION// not on Compact Framework
7-
#else
86
openMicrosoft.FSharp.Core
97
openMicrosoft.FSharp.Collections
108
openMicrosoft.FSharp.Reflection
@@ -811,5 +809,3 @@ module ExprShape =
811809
/// <param name="arguments">The list of arguments.</param>
812810
/// <returns>The rebuilt expression.</returns>
813811
valRebuildShapeCombination:shape:obj* arguments:list<Expr>-> Expr
814-
815-
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp