Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
fsharp
提交
3ce13ed4
F
fsharp
项目概览
dotNET Platform
/
fsharp
12 个月 前同步成功
通知
0
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
fsharp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
3ce13ed4
编写于
9月 12, 2019
作者:
K
Kevin Ransom (msft)
提交者:
GitHub
9月 12, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FX_NO_SYSTEM_CONSOLE and EXTRAS_FOR_SILVERLIGHT_COMPILER are never set (#7549)
上级
742e8973
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
3 addition
and
33 deletion
+3
-33
src/fsharp/FSharp.Core/Query.fs
src/fsharp/FSharp.Core/Query.fs
+0
-4
src/fsharp/FSharp.Core/fslib-extra-pervasives.fs
src/fsharp/FSharp.Core/fslib-extra-pervasives.fs
+0
-2
src/fsharp/FSharp.Core/fslib-extra-pervasives.fsi
src/fsharp/FSharp.Core/fslib-extra-pervasives.fsi
+0
-2
src/fsharp/FSharp.Core/prim-types.fs
src/fsharp/FSharp.Core/prim-types.fs
+1
-4
src/fsharp/FSharp.Core/prim-types.fsi
src/fsharp/FSharp.Core/prim-types.fsi
+1
-3
src/fsharp/FSharp.Core/printf.fs
src/fsharp/FSharp.Core/printf.fs
+0
-16
src/fsharp/FSharp.Core/printf.fsi
src/fsharp/FSharp.Core/printf.fsi
+1
-2
未找到文件。
src/fsharp/FSharp.Core/Query.fs
浏览文件 @
3ce13ed4
...
...
@@ -1804,7 +1804,6 @@ module Query =
let
linqQuery
=
TransInnerWithFinalConsume
canElim
queryProducingSequence
let
linqQueryAfterEliminatingNestedQueries
=
EliminateNestedQueries
linqQuery
#
if
!
FX_NO_SYSTEM_CONSOLE
#
if
DEBUG
let
debug
()
=
Printf
.
printfn
"----------------------queryProducingSequence-------------------------"
...
...
@@ -1814,20 +1813,17 @@ module Query =
Printf
.
printfn
"--------------------------linqQuery (after nested)-------------------"
Printf
.
printfn
"%A"
linqQueryAfterEliminatingNestedQueries
#
endif
#
endif
let
result
=
try
LeafExpressionConverter
.
EvaluateQuotation
linqQueryAfterEliminatingNestedQueries
with
e
->
#
if
!
FX_NO_SYSTEM_CONSOLE
#
if
DEBUG
debug
()
Printf
.
printfn
"--------------------------error--------------------------------------"
Printf
.
printfn
"%A"
(
e
.
ToString
()
)
Printf
.
printfn
"---------------------------------------------------------------------"
#
endif
#
endif
reraise
()
...
...
src/fsharp/FSharp.Core/fslib-extra-pervasives.fs
浏览文件 @
3ce13ed4
...
...
@@ -227,7 +227,6 @@ module ExtraTopLevelOperators =
[<
CompiledName
(
"PrintFormatLineToTextWriter"
)>]
let
fprintfn
(
textWriter
:
TextWriter
)
format
=
Printf
.
fprintfn
textWriter
format
#
if
!
FX_NO_SYSTEM_CONSOLE
[<
CompiledName
(
"PrintFormat"
)>]
let
printf
format
=
Printf
.
printf
format
...
...
@@ -239,7 +238,6 @@ module ExtraTopLevelOperators =
[<
CompiledName
(
"PrintFormatLineToError"
)>]
let
eprintfn
format
=
Printf
.
eprintfn
format
#
endif
[<
CompiledName
(
"FailWith"
)>]
let
failwith
s
=
raise
(
Failure
s
)
...
...
src/fsharp/FSharp.Core/fslib-extra-pervasives.fsi
浏览文件 @
3ce13ed4
...
...
@@ -12,7 +12,6 @@ module ExtraTopLevelOperators =
open
Microsoft
.
FSharp
.
Collections
open
Microsoft
.
FSharp
.
Text
#
if
!
FX_NO_SYSTEM_CONSOLE
/// <summary>Print to <c>stdout</c> using the given format.</summary>
/// <param name="format">The formatter.</param>
/// <returns>The formatted result.</returns>
...
...
@@ -36,7 +35,6 @@ module ExtraTopLevelOperators =
/// <returns>The formatted result.</returns>
[<
CompiledName
(
"PrintFormatLineToError"
)>]
val
eprintfn
:
format
:
Printf
.
TextWriterFormat
<
'
T
>
->
'
T
#
endif
/// <summary>Print to a string using the given format.</summary>
/// <param name="format">The formatter.</param>
...
...
src/fsharp/FSharp.Core/prim-types.fs
浏览文件 @
3ce13ed4
...
...
@@ -4335,7 +4335,6 @@ namespace Microsoft.FSharp.Core
[<
CompiledName
(
"Identity"
)>]
let
id
x
=
x
#
if
!
FX_NO_SYSTEM_CONSOLE
// std* are TypeFunctions with the effect of reading the property on instantiation.
// So, direct uses of stdout should capture the current System.Console.Out at that point.
[<
CompiledName
(
"ConsoleIn"
)>]
...
...
@@ -4346,10 +4345,8 @@ namespace Microsoft.FSharp.Core
[<
CompiledName
(
"ConsoleError"
)>]
let
stderr
<
'
T
>
=
System
.
Console
.
Error
#
endif
module
Unchecked
=
module
Unchecked
=
[<
CompiledName
(
"Unbox"
)>]
let
inline
unbox
<
'
T
>
(
v
:
obj
)
=
unboxPrim
<
'
T
>
v
...
...
src/fsharp/FSharp.Core/prim-types.fsi
浏览文件 @
3ce13ed4
...
...
@@ -2360,10 +2360,9 @@ namespace Microsoft.FSharp.Core
[<
CompiledName
(
"NaNSingle"
)>]
val
nanf
:
float32
#
if
!
FX_NO_SYSTEM_CONSOLE
/// <summary>Reads the value of the property <c>System.Console.In</c>. </summary>
[<
CompiledName
(
"ConsoleIn"
)>]
val
stdin
<
'
T
>
:
System
.
IO
.
TextReader
val
stdin
<
'
T
>
:
System
.
IO
.
TextReader
/// <summary>Reads the value of the property <c>System.Console.Error</c>. </summary>
[<
CompiledName
(
"ConsoleError"
)>]
...
...
@@ -2372,7 +2371,6 @@ namespace Microsoft.FSharp.Core
/// <summary>Reads the value of the property <c>System.Console.Out</c>.</summary>
[<
CompiledName
(
"ConsoleOut"
)>]
val
stdout
<
'
T
>
:
System
.
IO
.
TextWriter
#
endif
/// <summary>The standard overloaded range operator, e.g. <c>[n..m]</c> for lists, <c>seq {n..m}</c> for sequences</summary>
/// <param name="start">The start value of the range.</param>
...
...
src/fsharp/FSharp.Core/printf.fs
浏览文件 @
3ce13ed4
...
...
@@ -1645,20 +1645,6 @@ module Printf =
[<
CompiledName
(
"PrintFormatToStringThenFail"
)>]
let
failwithf
format
=
ksprintf
failwith
format
#
if
!
FX_NO_SYSTEM_CONSOLE
#
if
EXTRAS_FOR_SILVERLIGHT_COMPILER
[<
CompiledName
(
"PrintFormat"
)>]
let
printf
format
=
fprintf
(!
outWriter
)
format
[<
CompiledName
(
"PrintFormatToError"
)>]
let
eprintf
format
=
fprintf
(!
errorWriter
)
format
[<
CompiledName
(
"PrintFormatLine"
)>]
let
printfn
format
=
fprintfn
(!
outWriter
)
format
[<
CompiledName
(
"PrintFormatLineToError"
)>]
let
eprintfn
format
=
fprintfn
(!
errorWriter
)
format
#
else
[<
CompiledName
(
"PrintFormat"
)>]
let
printf
format
=
fprintf
Console
.
Out
format
...
...
@@ -1670,5 +1656,3 @@ module Printf =
[<
CompiledName
(
"PrintFormatLineToError"
)>]
let
eprintfn
format
=
fprintfn
Console
.
Error
format
#
endif
#
endif
src/fsharp/FSharp.Core/printf.fsi
浏览文件 @
3ce13ed4
...
...
@@ -183,7 +183,6 @@ module Printf =
[<
CompiledName
(
"PrintFormatLineToTextWriter"
)>]
val
fprintfn
:
textWriter
:
TextWriter
->
format
:
TextWriterFormat
<
'
T
>
->
'
T
#
if
!
FX_NO_SYSTEM_CONSOLE
/// <summary>Formatted printing to stderr</summary>
/// <param name="format">The input formatter.</param>
/// <returns>The return type and arguments of the formatter.</returns>
...
...
@@ -207,7 +206,7 @@ module Printf =
/// <returns>The return type and arguments of the formatter.</returns>
[<
CompiledName
(
"PrintFormatLine"
)>]
val
printfn
:
format
:
TextWriterFormat
<
'
T
>
->
'
T
#
endif
/// <summary>Print to a string via an internal string buffer and return
/// the result as a string. Helper printers must return strings.</summary>
/// <param name="format">The input formatter.</param>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录