Skip to content

Commit 452337b

Browse files
committed
Merge branch 'master' of https://github.com/fsharp/FSharp.Compiler.Service into dsyme-patch-1
2 parents 98cc461 + dd951e9 commit 452337b

File tree

440 files changed

+5780
-5600
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

440 files changed

+5780
-5600
lines changed

docs/caches.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,15 @@ <h1><a name="Compiler-Services-Notes-on-the-FSharpChecker-caches" class="anchor"
5353
</li>
5454
<li><p><code>braceMatchCache</code> - an MRU cache of size <code>braceMatchCacheSize</code> (default = 5) keeping the results of calls to MatchBraces, keyed by filename, source and project options.</p></li>
5555
<li>
56-
<p><code>parseFileInProjectCache</code> - an MRU cache of size <code>parseFileInProjectCacheSize</code> (default = 2) keeping the results of ParseFileInProject,
56+
<p><code>parseFileCache</code> - an MRU cache of size <code>parseFileCacheSize</code> (default = 2) keeping the results of ParseFile,
5757
keyed by filename, source and project options.</p>
5858
</li>
5959
<li>
60-
<p><code>parseAndCheckFileInProjectCache</code> - an MRU cache of size <code>incrementalTypeCheckCacheSize</code> (default = 5) keeping the results of
60+
<p><code>checkFileInProjectCache</code> - an MRU cache of size <code>incrementalTypeCheckCacheSize</code> (default = 5) keeping the results of
6161
ParseAndCheckFileInProject, CheckFileInProject and/or CheckFileInProjectIfReady. This is keyed by filename, file source
6262
and project options. The results held in this cache are only returned if they would reflect an accurate parse and check of the
6363
file.</p>
6464
</li>
65-
<li>
66-
<p><code>parseAndCheckFileInProjectCachePossiblyStale</code> - a somewhat peculiar MRU cache of size <code>incrementalTypeCheckCacheSize</code> (default = 5)
67-
keeping the results of ParseAndCheckFileInProject, CheckFileInProject and CheckFileInProjectIfReady,
68-
keyed by filename and project options. This cache is accessed by TryGetRecentTypeCheckResultsForFile. Because the results
69-
are accessed regardless of the content of the file, the checking results returned may be "stale".</p>
70-
</li>
7165
<li><p><code>getToolTipTextCache</code> - an aged lookup cache of strong size <code>getToolTipTextSize</code> (default = 5) computing the results of GetToolTipText.</p></li>
7266
<li>
7367
<p><code>ilModuleReaderCache</code> - an aged lookup of weak references to "readers" for references .NET binaries. Because these

docs/corelib.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ <h2><a name="Shipping-an-FSharp-Core-with-your-application" class="anchor" href=
4343
<p>If doing dynamic compilation and execution you may also need to include
4444
an FSharp.Core.optdata and FSharp.Core.sigdata, see below for guidance.</p>
4545
<h2><a name="Binding-redirects-for-your-application" class="anchor" href="#Binding-redirects-for-your-application">Binding redirects for your application</a></h2>
46-
<p>The FSharp.Compiler.Service.dll component depends on FSharp.Core 4.3.0.0. Normally your application will target
46+
<p>The FSharp.Compiler.Service.dll component depends on FSharp.Core 4.4.0.0. Normally your application will target
4747
a later version of FSharp.Core, and you will need a <a href="http://msdn.microsoft.com/en-us/library/7wd6ex19(v=vs.110).aspx">binding redirect</a> to ensure
48-
that FSharp.Core 4.3.0.0 forwards to which the final version of FSharp.Core.dll your application uses.
48+
that other versions of FSharp.Core forward to the final version of FSharp.Core.dll your application uses.
4949
Binding redirect files are normally generated automatically by build tools. If not, you can use one like this
5050
(if your tool is called <code>HostedCompiler.exe</code>, the binding redirect file is called <code>HostedCompiler.exe.config</code>)</p>
51+
<p>Some other dependencies may also need to be reconciled and forwarded.</p>
5152
<table class="pre"><tr><td class="lines"><pre class="fssnip"><span class="l"> 1: </span>
5253
<span class="l"> 2: </span>
5354
<span class="l"> 3: </span>
@@ -59,14 +60,22 @@ <h2><a name="Binding-redirects-for-your-application" class="anchor" href="#Bindi
5960
<span class="l"> 9: </span>
6061
<span class="l">10: </span>
6162
<span class="l">11: </span>
63+
<span class="l">12: </span>
64+
<span class="l">13: </span>
65+
<span class="l">14: </span>
66+
<span class="l">15: </span>
6267
</pre></td>
6368
<td class="snippet"><pre class="fssnip highlighted"><code lang="fsharp"><span class="o">&lt;?</span><span class="i">xml</span> <span class="i">version</span><span class="o">=</span><span class="s">&quot;1.0&quot;</span> <span class="i">encoding</span><span class="o">=</span><span class="s">&quot;utf-8&quot;</span> <span class="o">?&gt;</span>
6469
<span class="o">&lt;</span><span class="i">configuration</span><span class="o">&gt;</span>
6570
<span class="o">&lt;</span><span class="i">runtime</span><span class="o">&gt;</span>
6671
<span class="o">&lt;</span><span class="i">assemblyBinding</span> <span class="i">xmlns</span><span class="o">=</span><span class="s">&quot;urn:schemas-microsoft-com:asm.v1&quot;</span><span class="o">&gt;</span>
6772
<span class="o">&lt;</span><span class="i">dependentAssembly</span><span class="o">&gt;</span>
6873
<span class="o">&lt;</span><span class="i">assemblyIdentity</span> <span class="i">name</span><span class="o">=</span><span class="s">&quot;FSharp.Core&quot;</span> <span class="i">publicKeyToken</span><span class="o">=</span><span class="s">&quot;b03f5f7f11d50a3a&quot;</span> <span class="i">culture</span><span class="o">=</span><span class="s">&quot;neutral&quot;</span><span class="o">/&gt;</span>
69-
<span class="o">&lt;</span><span class="i">bindingRedirect</span> <span class="i">oldVersion</span><span class="o">=</span><span class="s">&quot;2.0.0.0-4.3.0.0&quot;</span> <span class="i">newVersion</span><span class="o">=</span><span class="s">&quot;4.3.1.0&quot;</span><span class="o">/&gt;</span>
74+
<span class="o">&lt;</span><span class="i">bindingRedirect</span> <span class="i">oldVersion</span><span class="o">=</span><span class="s">&quot;2.0.0.0-4.4.0.0&quot;</span> <span class="i">newVersion</span><span class="o">=</span><span class="s">&quot;4.4.1.0&quot;</span><span class="o">/&gt;</span>
75+
<span class="o">&lt;/</span><span class="i">dependentAssembly</span><span class="o">&gt;</span>
76+
<span class="o">&lt;</span><span class="i">dependentAssembly</span><span class="o">&gt;</span>
77+
<span class="o">&lt;</span><span class="i">assemblyIdentity</span> <span class="i">name</span><span class="o">=</span><span class="s">&quot;System.Collections.Immutable&quot;</span> <span class="i">publicKeyToken</span><span class="o">=</span><span class="s">&quot;b03f5f7f11d50a3a&quot;</span> <span class="i">culture</span><span class="o">=</span><span class="s">&quot;neutral&quot;</span> <span class="o">/&gt;</span>
78+
<span class="o">&lt;</span><span class="i">bindingRedirect</span> <span class="i">oldVersion</span><span class="o">=</span><span class="s">&quot;1.0.0.0-1.2.0.0&quot;</span> <span class="i">newVersion</span><span class="o">=</span><span class="s">&quot;1.2.1.0&quot;</span> <span class="o">/&gt;</span>
7079
<span class="o">&lt;/</span><span class="i">dependentAssembly</span><span class="o">&gt;</span>
7180
<span class="o">&lt;/</span><span class="i">assemblyBinding</span><span class="o">&gt;</span>
7281
<span class="o">&lt;/</span><span class="i">runtime</span><span class="o">&gt;</span>

docs/editor.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ <h2><a name="Type-checking-sample-source-code" class="anchor" href="#Type-checki
8888
<span class="l">15: </span>
8989
<span class="l">16: </span>
9090
<span class="l">17: </span>
91+
<span class="l">18: </span>
92+
<span class="l">19: </span>
9193
</pre></td>
9294
<td class="snippet"><pre class="fssnip highlighted"><code lang="fsharp"><span class="c">// Sample input as a multi-line string</span>
9395
<span class="k">let</span> <span class="i">input</span> <span class="o">=</span>
@@ -106,22 +108,26 @@ <h2><a name="Type-checking-sample-source-code" class="anchor" href="#Type-checki
106108
<span class="k">let</span> <span class="i">projOptions</span> <span class="o">=</span>
107109
<span class="i">checker</span><span class="o">.</span><span class="i">GetProjectOptionsFromScript</span>(<span class="i">file</span>, <span class="i">input</span>)
108110
<span class="o">|&gt;</span> <span class="i">Async</span><span class="o">.</span><span class="i">RunSynchronously</span>
111+
112+
<span class="k">let</span> <span class="i">parsingOptions</span>, <span class="i">_errors</span> <span class="o">=</span> <span class="i">checker</span><span class="o">.</span><span class="i">GetParsingOptionsFromProjectOptions</span>(<span class="i">projOptions</span>)
109113
</code></pre></td>
110114
</tr>
111115
</table>
112116
<p>To perform type checking, we first need to parse the input using
113-
<code>ParseFileInProject</code>, which gives us access to the <a href="untypedtree.html">untyped AST</a>. However,
117+
<code>ParseFile</code>, which gives us access to the <a href="untypedtree.html">untyped AST</a>. However,
114118
then we need to call <code>CheckFileInProject</code> to perform the full type checking. This function
115119
also requires the result of <code>ParseFileInProject</code>, so the two functions are often called
116120
together.</p>
117121
<table class="pre"><tr><td class="lines"><pre class="fssnip"><span class="l">1: </span>
118122
<span class="l">2: </span>
119123
<span class="l">3: </span>
120124
<span class="l">4: </span>
125+
<span class="l">5: </span>
121126
</pre></td>
122127
<td class="snippet"><pre class="fssnip highlighted"><code lang="fsharp"><span class="c">// Perform parsing </span>
128+
123129
<span class="k">let</span> <span class="i">parseFileResults</span> <span class="o">=</span>
124-
<span class="i">checker</span><span class="o">.</span><span class="i">ParseFileInProject</span>(<span class="i">file</span>, <span class="i">input</span>, <span class="i">projOptions</span>)
130+
<span class="i">checker</span><span class="o">.</span><span class="i">ParseFile</span>(<span class="i">file</span>, <span class="i">input</span>, <span class="i">parsingOptions</span>)
125131
<span class="o">|&gt;</span> <span class="i">Async</span><span class="o">.</span><span class="i">RunSynchronously</span>
126132
</code></pre></td>
127133
</tr>

docs/fsharp-readme.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h1><a name="F-Compiler-README" class="anchor" href="#F-Compiler-README">F# Comp
4141
source, with several minor changes that expose certain services. The readme is included
4242
here for reference.</p>
4343
</blockquote>
44-
<p>This is the F# compiler, core library and core tools (open source edition). It uses the Apache 2.0 license.
44+
<p>This is the F# compiler, core library and core tools (open source edition).
4545
The <code>master</code> branch is for the latest version of F# (currently F# 3.0).
4646
To bootstrap the compiler, binaries built from an earlier version of this project are used.</p>
4747
<h2><a name="Requirements" class="anchor" href="#Requirements">Requirements</a></h2>

docs/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ <h2><a name="Contributing-and-copyright" class="anchor" href="#Contributing-and-
119119
modified to expose additional internals useful for creating editors and F# tools and also for
120120
embedding F# interactive.</p>
121121
<p>The F# source code is copyright by Microsoft Corporation and contributors, the extensions have been
122-
implemented by Dave Thomas, Anh-Dung Phan, Tomas Petricek and other contributors. The source code
123-
is available under the <a href="https://github.com/fsharp/FSharp.Compiler.Service/blob/master/LICENSE">Apache 2.0 license</a>.</p>
122+
implemented by Dave Thomas, Anh-Dung Phan, Tomas Petricek and other contributors.</p>
124123

125124

126125
</div>

docs/ja/compiler.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
<script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
1414
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
1515

16-
<link type="text/css" rel="stylesheet" href="/FSharp.Compiler.Service/ja/../content/style.ja.css" />
17-
<link type="text/css" rel="stylesheet" href="/FSharp.Compiler.Service/ja/../content/fcs.css" />
18-
<script type="text/javascript" src="/FSharp.Compiler.Service/ja/../content/tips.js"></script>
16+
<link type="text/css" rel="stylesheet" href="./../content/style.ja.css" />
17+
<link type="text/css" rel="stylesheet" href="./../content/fcs.css" />
18+
<script type="text/javascript" src="./../content/tips.js"></script>
1919
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
2020
<!--[if lt IE 9]>
2121
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
@@ -150,38 +150,38 @@ <h1><a name="動的アセンブリへのコンパイル" class="anchor" href="#
150150
</div>
151151
<div class="span3">
152152
<a href="https://nuget.org/packages/FSharp.Compiler.Service">
153-
<img src="/FSharp.Compiler.Service/ja/../images/logo.png" style="width:140px;height:140px;margin:10px 0px 0px 35px;border-style:none;" />
153+
<img src="./../images/logo.png" style="width:140px;height:140px;margin:10px 0px 0px 35px;border-style:none;" />
154154
</a>
155155
<ul class="nav nav-list" id="menu">
156156
<li class="nav-header">
157-
<a href="/FSharp.Compiler.Service/ja/../ja/index.html" class="nflag"><img src="/FSharp.Compiler.Service/ja/../images/ja.png" /></a>
158-
<a href="/FSharp.Compiler.Service/ja/../index.html" class="nflag nflag2"><img src="/FSharp.Compiler.Service/ja/../images/en.png" /></a>
157+
<a href="./../ja/index.html" class="nflag"><img src="./../images/ja.png" /></a>
158+
<a href="./../index.html" class="nflag nflag2"><img src="./../images/en.png" /></a>
159159
F# Compiler Services
160160
</li>
161-
<li><a href="/FSharp.Compiler.Service/ja/index.html">ホームページ</a></li>
161+
<li><a href="./index.html">ホームページ</a></li>
162162
<li class="divider"></li>
163163
<li><a href="https://www.nuget.org/packages/FSharp.Compiler.Service">NuGet経由でライブラリを取得</a></li>
164164
<li><a href="http://github.com/fsharp/FSharp.Compiler.Service">GitHub上のソースコード</a></li>
165165
<li><a href="http://github.com/fsharp/FSharp.Compiler.Service/blob/master/LICENSE">ライセンス</a></li>
166166
<li><a href="http://github.com/fsharp/FSharp.Compiler.Service/blob/master/RELEASE_NOTES.md">リリースノート</a></li>
167167

168168
<li class="nav-header">はじめに</li>
169-
<li><a href="/FSharp.Compiler.Service/ja/index.html">ホームページ</a></li>
170-
<li><a href="/FSharp.Compiler.Service/ja/devnotes.html">開発者用メモ</a></li>
171-
<li><a href="/FSharp.Compiler.Service/ja/fsharp-readme.html">F#コンパイラのreadme</a></li>
169+
<li><a href="./index.html">ホームページ</a></li>
170+
<li><a href="./devnotes.html">開発者用メモ</a></li>
171+
<li><a href="./fsharp-readme.html">F#コンパイラのreadme</a></li>
172172

173173
<li class="nav-header">利用可能なサービス</li>
174-
<li><a href="/FSharp.Compiler.Service/ja/tokenizer.html">F#言語トークナイザ</a></li>
175-
<li><a href="/FSharp.Compiler.Service/ja/untypedtree.html">型無しASTの処理</a></li>
176-
<li><a href="/FSharp.Compiler.Service/ja/editor.html">エディタ(IDE)のサービスを使用する</a></li>
177-
<li><a href="/FSharp.Compiler.Service/ja/symbols.html">解決済みのシンボルを使用する</a></li>
178-
<li><a href="/FSharp.Compiler.Service/ja/project.html">プロジェクト全体の分析</a></li>
179-
<li><a href="/FSharp.Compiler.Service/ja/interactive.html">F# Interactiveの組み込み</a></li>
180-
<li><a href="/FSharp.Compiler.Service/ja/compiler.html">F#コンパイラの組み込み</a></li>
181-
<li><a href="/FSharp.Compiler.Service/ja/filesystem.html">ファイルシステムの仮想化</a></li>
174+
<li><a href="./tokenizer.html">F#言語トークナイザ</a></li>
175+
<li><a href="./untypedtree.html">型無しASTの処理</a></li>
176+
<li><a href="./editor.html">エディタ(IDE)のサービスを使用する</a></li>
177+
<li><a href="./symbols.html">解決済みのシンボルを使用する</a></li>
178+
<li><a href="./project.html">プロジェクト全体の分析</a></li>
179+
<li><a href="./interactive.html">F# Interactiveの組み込み</a></li>
180+
<li><a href="./compiler.html">F#コンパイラの組み込み</a></li>
181+
<li><a href="./filesystem.html">ファイルシステムの仮想化</a></li>
182182

183183
<li class="nav-header">リファレンス</li>
184-
<li><a href="/FSharp.Compiler.Service/ja/../reference/index.html">API リファレンス</a></li>
184+
<li><a href="./../reference/index.html">API リファレンス</a></li>
185185
</ul>
186186
</div>
187187
</div>

0 commit comments

Comments
 (0)