Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
fsharp
提交
368dcfb2
F
fsharp
项目概览
dotNET Platform
/
fsharp
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
未验证
提交
368dcfb2
编写于
1月 20, 2018
作者:
D
Don Syme
提交者:
GitHub
1月 20, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
don't rebuild (#4230)
上级
a8115c15
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
4 deletion
+7
-4
src/fsharp/FSharp.Build/WriteCodeFragment.fs
src/fsharp/FSharp.Build/WriteCodeFragment.fs
+7
-3
tests/scripts/compiler-perf-results.txt
tests/scripts/compiler-perf-results.txt
+0
-1
未找到文件。
src/fsharp/FSharp.Build/WriteCodeFragment.fs
浏览文件 @
368dcfb2
...
...
@@ -113,15 +113,19 @@ open System.Reflection"
let
sb
=
StringBuilder
()
.
AppendLine
(
boilerplate
).
AppendLine
()
let
code
=
Array
.
fold
(
fun
(
sb
:
StringBuilder
)
(
item
:
ITaskItem
)
->
sb
.
AppendLine
(
WriteCodeFragment
.
GenerateAttribute
item
))
sb
_
assemblyAttributes
code
.
AppendLine
()
.
AppendLine
(
"do()"
)
|>
ignore
let
fileName
=
_
outputFile
.
ItemSpec
let
outputFileItem
=
if
not
(
isNull
_
outputFile
)
&&
not
(
isNull
_
outputDirectory
)
&&
not
(
Path
.
IsPathRooted
(
_
outputFile
.
ItemSpec
))
then
TaskItem
(
Path
.
Combine
(_
outputDirectory
.
ItemSpec
,
_
outputFile
.
ItemSpec
))
:>
ITaskItem
if
not
(
isNull
_
outputFile
)
&&
not
(
isNull
_
outputDirectory
)
&&
not
(
Path
.
IsPathRooted
(
fileName
))
then
TaskItem
(
Path
.
Combine
(_
outputDirectory
.
ItemSpec
,
fileName
))
:>
ITaskItem
elif
isNull
_
outputFile
then
let
tempFile
=
Path
.
Combine
(
Path
.
GetTempPath
()
,
sprintf
"tmp%s.fs"
(
Guid
.
NewGuid
()
.
ToString
(
"N"
)))
TaskItem
(
tempFile
)
:>
ITaskItem
else
_
outputFile
File
.
WriteAllText
(_
outputFile
.
ItemSpec
,
code
.
ToString
()
)
let
codeText
=
code
.
ToString
()
let
alreadyExists
=
(
try
File
.
Exists
fileName
&&
File
.
ReadAllText
(
fileName
)
=
codeText
with
_
->
false
)
if
not
alreadyExists
then
File
.
WriteAllText
(
fileName
,
codeText
)
_
outputFile
<-
outputFileItem
true
with
e
->
...
...
tests/scripts/compiler-perf-results.txt
浏览文件 @
368dcfb2
...
...
@@ -131,4 +131,3 @@ https://github.com/manofstick/visualfsharp.git all-your-collections-are-belong-t
https://github.com/manofstick/visualfsharp.git all-your-collections-are-belong-to-us 87dafbc17b494c438b6db9e59e064736bd8a44e2 ba63403cb5898596c5e875a14ce22b33ef618c01 221.58 11.19 31.91 48.23 66.05 52.99
https://github.com/manofstick/visualfsharp.git all-your-collections-are-belong-to-us 87dafbc17b494c438b6db9e59e064736bd8a44e2 458e6c29d7e059a5a8a7b4cd7858c7d633fb5906 224.75 11.20 31.09 46.96 63.08 53.08
https://github.com/manofstick/visualfsharp.git all-your-collections-are-belong-to-us 87dafbc17b494c438b6db9e59e064736bd8a44e2 7e1fd6ac330f86597f3167e8067cfd805a89eec9 235.48 10.83 33.47 47.17 65.56 52.50
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录