diff --git a/docs/caches.html b/docs/caches.html deleted file mode 100644 index 668f2bab1c..0000000000 --- a/docs/caches.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - Compiler Services: Notes on the FSharpChecker caches - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Compiler Services: Notes on the FSharpChecker caches

-

This is a design note on the FSharpChecker component and its caches. See also the notes on the FSharpChecker operations queue

-

Each FSharpChecker object maintains a set of caches. These are

-
    -
  • -

    scriptClosureCache - an MRU cache of default size projectCacheSize that caches the -computation of GetProjectOptionsFromScript. This computation can be lengthy as it can involve processing the transitive closure -of all #load directives, which in turn can mean parsing an unbounded number of script files

    -
  • -
  • -

    incrementalBuildersCache - an MRU cache of projects where a handle is being kept to their incremental checking state, -of default size projectCacheSize (= 3 unless explicitly set as a parameter). -The "current background project" (see the FSharpChecker operations queue) -will be one of these projects. When analyzing large collections of projects, this cache usually occupies by far the most memory. -Increasing the size of this cache can dramatically decrease incremental computation of project-wide checking, or of checking -individual files within a project, but can very greatly increase memory usage.

    -
  • -
  • braceMatchCache - an MRU cache of size braceMatchCacheSize (default = 5) keeping the results of calls to MatchBraces, keyed by filename, source and project options.

  • -
  • -

    parseFileCache - an MRU cache of size parseFileCacheSize (default = 2) keeping the results of ParseFile, -keyed by filename, source and project options.

    -
  • -
  • -

    checkFileInProjectCache - an MRU cache of size incrementalTypeCheckCacheSize (default = 5) keeping the results of -ParseAndCheckFileInProject, CheckFileInProject and/or CheckFileInProjectIfReady. This is keyed by filename, file source -and project options. The results held in this cache are only returned if they would reflect an accurate parse and check of the -file.

    -
  • -
  • getToolTipTextCache - an aged lookup cache of strong size getToolTipTextSize (default = 5) computing the results of GetToolTipText.

  • -
  • -

    ilModuleReaderCache - an aged lookup of weak references to "readers" for references .NET binaries. Because these -are all weak references, you can generally ignore this cache, since its entries will be automatically collected. -Strong references to binary readers will be kept by other FCS data structures, e.g. any project checkers, symbols or project checking results.

    -

    In more detail, the bytes for referenced .NET binaries are read into memory all at once, eagerly. Files are not left -open or memory-mapped when using FSharpChecker (as opposed to FsiEvaluationSession, which loads assemblies using reflection). -The purpose of this cache is mainly to ensure that while setting up compilation, the reads of mscorlib, FSharp.Core and so on -amortize cracking the DLLs.

    -
  • -
  • -

    frameworkTcImportsCache - an aged lookup of strong size 8 which caches the process of setting up type checking against a set of system -components (e.g. a particular version of mscorlib, FSharp.Core and other system DLLs). These resources are automatically shared between multiple -project checkers which happen to reference the same set of system assemblies.

    -
  • -
-

Profiling the memory used by the various caches can be done by looking for the corresponding static roots in memory profiling traces.

-

The sizes of some of these caches can be adjusted by giving parameters to FSharpChecker. Unless otherwise noted, -the cache sizes above indicate the "strong" size of the cache, where memory is held regardless of the memory -pressure on the system. Some of the caches can also hold "weak" references which can be collected at will by the GC.

-
-

Note: Because of these caches, you should generally use one global, shared FSharpChecker for everything in an IDE application.

-
-

Low-Memory Condition

-

Version 1.4.0.8 added a "maximum memory" limit specified by the MaxMemory property on FSharpChecker (in MB). If an FCS project operation -is performed (see CheckMaxMemoryReached in service.fs) and System.GC.GetTotalMemory(false) reports a figure greater than this, then -the strong sizes of all FCS caches are reduced to either 0 or 1. This happens for the remainder of the lifetime of the FSharpChecker object. -In practice this will still make tools like the Visual Studio F# Power Tools usable, but some operations like renaming across multiple -projects may take substantially longer.

-

By default the maximum memory trigger is disabled, see maxMBDefault in service.fs.

-

Reducing the FCS strong cache sizes does not guarantee there will be enough memory to continue operations - even holding one project -strongly may exceed a process memory budget. It just means FCS may hold less memory strongly.

-

If you do not want the maximum memory limit to apply then set MaxMemory to System.Int32.MaxValue.

-

Summary

-

In this design note, you learned that the FSharpChecker component keeps a set of caches in order to support common -incremental analysis scenarios reasonably efficiently. They correspond roughly to the original caches and sizes -used by the Visual F# Tools, from which the FSharpChecker component derives.

-

In long running, highly interactive, multi-project scenarios you should carefully -consider the cache sizes you are using and the tradeoffs involved between incremental multi-project checking and memory usage.

- - -
- -
-
- Fork me on GitHub - - diff --git a/docs/compiler.html b/docs/compiler.html deleted file mode 100644 index 75ea2eba9a..0000000000 --- a/docs/compiler.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - - Hosted Compiler - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Hosted Compiler

-

This tutorial demonstrates how to host the F# compiler.

-
-

NOTE: The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published

-
-
-

NOTE: There are several options for hosting the F# compiler. The easiest one is to use the -fsc.exe process and pass arguments.

-
-
-

NOTE: By default compilations using FSharp.Compiler.Service reference FSharp.Core 4.3.0.0 (matching F# 3.0). You can override -this choice by passing a reference to FSharp.Core for 4.3.1.0 or later explicitly in your command-line arguments.

-
-
-

First, we need to reference the libraries that contain F# interactive service:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-
#r "FSharp.Compiler.Service.dll"
-open System.IO
-open FSharp.Compiler.SourceCodeServices
-
-// Create an interactive checker instance 
-let checker = FSharpChecker.Create()
-
-

Now write content to a temporary file:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-
let fn = Path.GetTempFileName()
-let fn2 = Path.ChangeExtension(fn, ".fsx")
-let fn3 = Path.ChangeExtension(fn, ".dll")
-
-File.WriteAllText(fn2, """
-module M
-
-type C() = 
-   member x.P = 1
-
-let x = 3 + 4
-""")
-
-

Now invoke the compiler:

- - - -
1: 
-2: 
-3: 
-
let errors1, exitCode1 = 
-    checker.Compile([| "fsc.exe"; "-o"; fn3; "-a"; fn2 |]) 
-    |> Async.RunSynchronously
-
-

If errors occur you can see this in the 'exitCode' and the returned array of errors:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-9: 
-
File.WriteAllText(fn2, """
-module M
-
-let x = 1.0 + "" // a type error
-""")
-
-let errors1b, exitCode1b = 
-    checker.Compile([| "fsc.exe"; "-o"; fn3; "-a"; fn2 |])
-    |> Async.RunSynchronously
-
-

Compiling to a dynamic assembly

-

You can also compile to a dynamic assembly, which uses the F# Interactive code generator. -This can be useful if you are, for example, in a situation where writing to the file system -is not really an option.

-

You still have to pass the "-o" option to name the output file, but the output file is not actually written to disk.

-

The 'None' option indicates that the initialization code for the assembly is not executed.

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-
let errors2, exitCode2, dynAssembly2 = 
-    checker.CompileToDynamicAssembly([| "-o"; fn3; "-a"; fn2 |], execute=None)
-     |> Async.RunSynchronously
-
-(*
-Passing 'Some' for the 'execute' parameter executes  the initialization code for the assembly.
-*)
-let errors3, exitCode3, dynAssembly3 = 
-    checker.CompileToDynamicAssembly([| "-o"; fn3; "-a"; fn2 |], Some(stdout,stderr))
-     |> Async.RunSynchronously
-
- -
namespace System
-
namespace System.IO
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
val checker : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
val fn : string
-
type Path =
  static val DirectorySeparatorChar : char
  static val AltDirectorySeparatorChar : char
  static val VolumeSeparatorChar : char
  static val PathSeparator : char
  static val InvalidPathChars : char[]
  static member ChangeExtension : path:string * extension:string -> string
  static member Combine : [<ParamArray>] paths:string[] -> string + 3 overloads
  static member GetDirectoryName : path:string -> string + 1 overload
  static member GetExtension : path:string -> string + 1 overload
  static member GetFileName : path:string -> string + 1 overload
  ...
-
Path.GetTempFileName() : string
-
val fn2 : string
-
Path.ChangeExtension(path: string, extension: string) : string
-
val fn3 : string
-
type File =
  static member AppendAllLines : path:string * contents:IEnumerable<string> -> unit + 1 overload
  static member AppendAllLinesAsync : path:string * contents:IEnumerable<string> * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendAllText : path:string * contents:string -> unit + 1 overload
  static member AppendAllTextAsync : path:string * contents:string * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendText : path:string -> StreamWriter
  static member Copy : sourceFileName:string * destFileName:string -> unit + 1 overload
  static member Create : path:string -> FileStream + 2 overloads
  static member CreateText : path:string -> StreamWriter
  static member Decrypt : path:string -> unit
  static member Delete : path:string -> unit
  ...
-
File.WriteAllText(path: string, contents: string) : unit
File.WriteAllText(path: string, contents: string, encoding: System.Text.Encoding) : unit
-
val errors1 : FSharpErrorInfo []
-
val exitCode1 : int
-
member FSharpChecker.Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
member FSharpChecker.Compile : ast:FSharp.Compiler.SyntaxTree.ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:System.Threading.CancellationToken -> 'T
-
val errors1b : FSharpErrorInfo []
-
val exitCode1b : int
-
val errors2 : FSharpErrorInfo []
-
val exitCode2 : int
-
val dynAssembly2 : System.Reflection.Assembly option
-
member FSharpChecker.CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * System.Reflection.Assembly option>
member FSharpChecker.CompileToDynamicAssembly : ast:FSharp.Compiler.SyntaxTree.ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * System.Reflection.Assembly option>
-
union case Option.None: Option<'T>
-
val errors3 : FSharpErrorInfo []
-
val exitCode3 : int
-
val dynAssembly3 : System.Reflection.Assembly option
-
union case Option.Some: Value: 'T -> Option<'T>
-
val stdout<'T> : TextWriter
-
val stderr<'T> : TextWriter
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/content/fcs.css b/docs/content/fcs.css deleted file mode 100644 index 3efde86fc5..0000000000 --- a/docs/content/fcs.css +++ /dev/null @@ -1,34 +0,0 @@ -/* Animated gifs on the homepage */ -#anim-holder { - overflow:hidden; - position:relative; - border-radius:5px; -} - -#wbtn, #jbtn, #cbtn { - cursor:pointer; - border-style:none; - color:#f0f8ff; - border-radius:5px; - background:#415d60; - opacity:0.7; - width:90px; - height:23px; - font-size:80%; - text-align:center; - padding-top:2px; - position:absolute; - top:10px; -} - -#anim-holder a img { - min-width:800px; -} - -.nav-list > li > a.nflag { - float:right; - padding:0px; -} -.nav-list > li > a.nflag2 { - margin-right:18px; -} \ No newline at end of file diff --git a/docs/content/img/github-blue.png b/docs/content/img/github-blue.png deleted file mode 100644 index 57432a035c..0000000000 Binary files a/docs/content/img/github-blue.png and /dev/null differ diff --git a/docs/content/img/github.png b/docs/content/img/github.png deleted file mode 100644 index 5d48d83fab..0000000000 Binary files a/docs/content/img/github.png and /dev/null differ diff --git a/docs/content/style.css b/docs/content/style.css deleted file mode 100644 index 1dbbd0ca66..0000000000 --- a/docs/content/style.css +++ /dev/null @@ -1,243 +0,0 @@ -@import url(https://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono|Open+Sans:400,600,700); - -/*-------------------------------------------------------------------------- - Formatting for F# code snippets -/*--------------------------------------------------------------------------*/ - -/* strings --- and stlyes for other string related formats */ -span.s { color:#E0E268; } -/* printf formatters */ -span.pf { color:#E0C57F; } -/* escaped chars */ -span.e { color:#EA8675; } - -/* identifiers --- and styles for more specific identifier types */ -span.id { color:#d1d1d1; } -/* module */ -span.m { color:#43AEC6; } -/* reference type */ -span.rt { color:#43AEC6; } -/* value type */ -span.vt { color:#43AEC6; } -/* interface */ -span.if{ color:#43AEC6; } -/* type argument */ -span.ta { color:#43AEC6; } -/* disposable */ -span.d { color:#43AEC6; } -/* property */ -span.prop { color:#43AEC6; } -/* punctuation */ -span.p { color:#43AEC6; } -/* function */ -span.f { color:#e1e1e1; } -/* active pattern */ -span.pat { color:#4ec9b0; } -/* union case */ -span.u { color:#4ec9b0; } -/* enumeration */ -span.e { color:#4ec9b0; } -/* keywords */ -span.k { color:#FAB11D; } -/* comment */ -span.c { color:#808080; } -/* operators */ -span.o { color:#af75c1; } -/* numbers */ -span.n { color:#96C71D; } -/* line number */ -span.l { color:#80b0b0; } -/* mutable var or ref cell */ -span.v { color:#d1d1d1; font-weight: bold; } -/* inactive code */ -span.inactive { color:#808080; } -/* preprocessor */ -span.prep { color:#af75c1; } -/* fsi output */ -span.fsi { color:#808080; } - -/* omitted */ -span.omitted { - background:#3c4e52; - border-radius:5px; - color:#808080; - padding:0px 0px 1px 0px; -} -/* tool tip */ -div.tip { - background:#475b5f; - border-radius:4px; - font:11pt 'Droid Sans', arial, sans-serif; - padding:6px 8px 6px 8px; - display:none; - color:#d1d1d1; - pointer-events:none; -} -table.pre pre { - padding:0px; - margin:0px; - border:none; -} -table.pre, pre.fssnip, pre { - line-height:13pt; - border:1px solid #d8d8d8; - border-collapse:separate; - white-space:pre; - font: 9pt 'Droid Sans Mono',consolas,monospace; - width:90%; - margin:10px 20px 20px 20px; - background-color:#212d30; - padding:10px; - border-radius:5px; - color:#d1d1d1; - max-width: none; -} -pre.fssnip code { - font: 9pt 'Droid Sans Mono',consolas,monospace; -} -table.pre pre { - padding:0px; - margin:0px; - border-radius:0px; - width: 100%; -} -table.pre td { - padding:0px; - white-space:normal; - margin:0px; -} -table.pre td.lines { - width:30px; -} - -/*-------------------------------------------------------------------------- - Formatting for page & standard document content -/*--------------------------------------------------------------------------*/ - -body { - font-family: 'Open Sans', serif; - padding-top: 0px; - padding-bottom: 40px; -} - -pre { - word-wrap: inherit; -} - -/* Format the heading - nicer spacing etc. */ -.masthead { - overflow: hidden; -} -.masthead .muted a { - text-decoration:none; - color:#999999; -} -.masthead ul, .masthead li { - margin-bottom:0px; -} -.masthead .nav li { - margin-top: 15px; - font-size:110%; -} -.masthead h3 { - margin-bottom:5px; - font-size:170%; -} -hr { - margin:0px 0px 20px 0px; -} - -/* Make table headings and td.title bold */ -td.title, thead { - font-weight:bold; -} - -/* Format the right-side menu */ -#menu { - margin-top:50px; - font-size:11pt; - padding-left:20px; -} - -#menu .nav-header { - font-size:12pt; - color:#606060; - margin-top:20px; -} - -#menu li { - line-height:25px; -} - -/* Change font sizes for headings etc. */ -#main h1 { font-size: 26pt; margin:10px 0px 15px 0px; font-weight:400; } -#main h2 { font-size: 20pt; margin:20px 0px 0px 0px; font-weight:400; } -#main h3 { font-size: 14pt; margin:15px 0px 0px 0px; font-weight:600; } -#main p { font-size: 11pt; margin:5px 0px 15px 0px; } -#main ul { font-size: 11pt; margin-top:10px; } -#main li { font-size: 11pt; margin: 5px 0px 5px 0px; } -#main strong { font-weight:700; } - -/*-------------------------------------------------------------------------- - Formatting for API reference -/*--------------------------------------------------------------------------*/ - -.type-list .type-name, .module-list .module-name { - width:25%; - font-weight:bold; -} -.member-list .member-name { - width:35%; -} -#main .xmldoc h2 { - font-size:14pt; - margin:10px 0px 0px 0px; -} -#main .xmldoc h3 { - font-size:12pt; - margin:10px 0px 0px 0px; -} -.github-link { - float:right; - text-decoration:none; -} -.github-link img { - border-style:none; - margin-left:10px; -} -.github-link .hover { display:none; } -.github-link:hover .hover { display:block; } -.github-link .normal { display: block; } -.github-link:hover .normal { display: none; } - -/*-------------------------------------------------------------------------- - Links -/*--------------------------------------------------------------------------*/ - -h1 a, h1 a:hover, h1 a:focus, -h2 a, h2 a:hover, h2 a:focus, -h3 a, h3 a:hover, h3 a:focus, -h4 a, h4 a:hover, h4 a:focus, -h5 a, h5 a:hover, h5 a:focus, -h6 a, h6 a:hover, h6 a:focus { color : inherit; text-decoration : inherit; outline:none } - -/*-------------------------------------------------------------------------- - Additional formatting for the homepage -/*--------------------------------------------------------------------------*/ - -#nuget { - margin-top:20px; - font-size: 11pt; - padding:20px; -} - -#nuget pre { - font-size:11pt; - -moz-border-radius: 0px; - -webkit-border-radius: 0px; - border-radius: 0px; - background: #404040; - border-style:none; - color: #e0e0e0; - margin-top:15px; -} diff --git a/docs/content/style.ja.css b/docs/content/style.ja.css deleted file mode 100644 index e00bcfe02d..0000000000 --- a/docs/content/style.ja.css +++ /dev/null @@ -1,190 +0,0 @@ -@import url(http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono|Gudea); - -* { font-family: 'MS Meiryo', Gudea; } - -/*-------------------------------------------------------------------------- - Formatting for F# code snippets -/*--------------------------------------------------------------------------*/ - -/* identifier */ -span.i { color:#d1d1d1; } -/* string */ -span.s { color:#d4b43c; } -/* keywords */ -span.k { color:#4e98dc; } -/* comment */ -span.c { color:#96C71D; } -/* operators */ -span.o { color:#af75c1; } -/* numbers */ -span.n { color:#96C71D; } -/* line number */ -span.l { color:#80b0b0; } - -/* inactive code */ -span.inactive { color:#808080; } -/* preprocessor */ -span.prep { color:#af75c1; } -/* fsi output */ -span.fsi { color:#808080; } - -/* omitted */ -span.omitted { - background:#3c4e52; - border-radius:5px; - color:#808080; - padding:0px 0px 1px 0px; -} -/* tool tip */ -div.tip { - background:#475b5f; - border-radius:4px; - font:11pt 'Droid Sans', arial, sans-serif, 'MS Meiryo'; - padding:6px 8px 6px 8px; - display:none; - color:#d1d1d1; -} -table.pre pre { - padding:0px; - margin:0px; - border:none; -} -table.pre, pre.fssnip, pre { - line-height:13pt; - border:1px solid #d8d8d8; - border-collapse:separate; - white-space:pre; - font: 9pt 'Droid Sans Mono',consolas,monospace,'MS Meiryo'; - width:90%; - margin:10px 20px 20px 20px; - background-color:#212d30; - padding:10px; - border-radius:5px; - color:#d1d1d1; -} -table.pre pre { - padding:0px; - margin:0px; - border-radius:0px; - width: 100%; -} -table.pre td { - padding:0px; - white-space:normal; - margin:0px; -} -table.pre td.lines { - width:30px; -} - -/*-------------------------------------------------------------------------- - Formatting for page & standard document content -/*--------------------------------------------------------------------------*/ - -body { - font-family: Gudea, serif, 'MS Meiryo'; - padding-top: 0px; - padding-bottom: 40px; -} - -pre { - word-wrap: inherit; -} - -/* Format the heading - nicer spacing etc. */ -.masthead { - overflow: hidden; -} -.masthead ul, .masthead li { - margin-bottom:0px; -} -.masthead .nav li { - margin-top: 15px; - font-size:110%; -} -.masthead h3 { - margin-bottom:5px; - font-size:170%; -} -hr { - margin:0px 0px 20px 0px; -} - -/* Make table headings and td.title bold */ -td.title, thead { - font-weight:bold; -} - -/* Format the right-side menu */ -#menu { - margin-top:50px; - font-size:11pt; - padding-left:20px; -} - -#menu .nav-header { - font-size:12pt; - color:#606060; - margin-top:20px; -} - -#menu li { - line-height:25px; -} - -/* Change font sizes for headings etc. */ -#main h1 { font-size: 26pt; margin:10px 0px 15px 0px; } -#main h2 { font-size: 20pt; margin:20px 0px 0px 0px; } -#main h3 { font-size: 14pt; margin:15px 0px 0px 0px; } -#main p { font-size: 12pt; margin:5px 0px 15px 0px; } -#main ul { font-size: 12pt; margin-top:10px; } -#main li { font-size: 12pt; margin: 5px 0px 5px 0px; } - -/*-------------------------------------------------------------------------- - Formatting for API reference -/*--------------------------------------------------------------------------*/ - -.type-list .type-name, .module-list .module-name { - width:25%; - font-weight:bold; -} -.member-list .member-name { - width:35%; -} -#main .xmldoc h2 { - font-size:14pt; - margin:10px 0px 0px 0px; -} -#main .xmldoc h3 { - font-size:12pt; - margin:10px 0px 0px 0px; -} -/*-------------------------------------------------------------------------- - Additional formatting for the homepage -/*--------------------------------------------------------------------------*/ - -#nuget { - margin-top:20px; - font-size: 11pt; - padding:20px; -} - -#nuget pre { - font-size:11pt; - -moz-border-radius: 0px; - -webkit-border-radius: 0px; - border-radius: 0px; - background: #404040; - border-style:none; - color: #e0e0e0; - margin-top:15px; -} - -/* Hide snippets on the home page snippet & nicely format table */ -#hp-snippet td.lines { - display: none; -} -#hp-snippet .table { - width:80%; - margin-left:30px; -} diff --git a/docs/content/style_light.css b/docs/content/style_light.css deleted file mode 100644 index 0685b48d80..0000000000 --- a/docs/content/style_light.css +++ /dev/null @@ -1,227 +0,0 @@ -@import url(https://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono|Open+Sans:400,600,700); - -/*-------------------------------------------------------------------------- - Formatting for F# code snippets -/*--------------------------------------------------------------------------*/ - -/* identifier */ -span.i { color:#000000; } -/* string */ -span.s { color:#a31515; } -/* keywords */ -span.k { color:#0000ff; } -/* comment */ -span.c { color:#008000; } -/* operators */ -span.o { color:#000000; } -/* numbers */ -span.n { color:#000000; } -/* line number */ -span.l { color:#96c2cd; } -/* type or module */ -span.t { color:#2b91af; } -/* function */ -span.f { color:#0000a0; } -/* DU case or active pattern */ -span.p { color:#800080; } -/* mutable var or ref cell */ -span.v { color:#000000; font-weight: bold; } -/* printf formatters */ -span.pf { color:#2b91af; } -/* escaped chars */ -span.e { color:#ff0080; } -/* mutable var or ref cell */ - - -/* inactive code */ -span.inactive { color:#808080; } -/* preprocessor */ -span.prep { color:#0000ff; } -/* fsi output */ -span.fsi { color:#808080; } - -/* omitted */ -span.omitted { - background:#3c4e52; - border-radius:5px; - color:#808080; - padding:0px 0px 1px 0px; -} -/* tool tip */ -div.tip { - background:#e5e5e5; - border-radius:4px; - font:9pt 'Droid Sans', arial, sans-serif; - padding:6px 8px 6px 8px; - display:none; - color:#000000; - pointer-events:none; -} -table.pre pre { - padding:0px; - margin:0px; - border:none; -} -table.pre, pre.fssnip, pre { - line-height:13pt; - border:1px solid #d8d8d8; - border-collapse:separate; - white-space:pre; - font: 10pt consolas,monospace; - width:90%; - margin:10px 20px 20px 20px; - background-color:#fdfdfd; - padding:10px; - border-radius:5px; - color:#000000; - max-width: none; -} -pre.fssnip code { - font: 9pt 'Droid Sans Mono',consolas,monospace; -} -table.pre pre { - padding:0px; - margin:0px; - border-radius:0px; - width: 100%; -} -table.pre td { - padding:0px; - white-space:normal; - margin:0px; -} -table.pre td.lines { - width:30px; -} - -/*-------------------------------------------------------------------------- - Formatting for page & standard document content -/*--------------------------------------------------------------------------*/ - -body { - font-family: 'Open Sans', serif; - padding-top: 0px; - padding-bottom: 40px; -} - -pre { - word-wrap: inherit; -} - -/* Format the heading - nicer spacing etc. */ -.masthead { - overflow: hidden; -} -.masthead .muted a { - text-decoration:none; - color:#999999; -} -.masthead ul, .masthead li { - margin-bottom:0px; -} -.masthead .nav li { - margin-top: 15px; - font-size:110%; -} -.masthead h3 { - margin-bottom:5px; - font-size:170%; -} -hr { - margin:0px 0px 20px 0px; -} - -/* Make table headings and td.title bold */ -td.title, thead { - font-weight:bold; -} - -/* Format the right-side menu */ -#menu { - margin-top:50px; - font-size:11pt; - padding-left:20px; -} - -#menu .nav-header { - font-size:12pt; - color:#606060; - margin-top:20px; -} - -#menu li { - line-height:25px; -} - -/* Change font sizes for headings etc. */ -#main h1 { font-size: 26pt; margin:10px 0px 15px 0px; font-weight:400; } -#main h2 { font-size: 20pt; margin:20px 0px 0px 0px; font-weight:400; } -#main h3 { font-size: 14pt; margin:15px 0px 0px 0px; font-weight:600; } -#main p { font-size: 11pt; margin:5px 0px 15px 0px; } -#main ul { font-size: 11pt; margin-top:10px; } -#main li { font-size: 11pt; margin: 5px 0px 5px 0px; } -#main strong { font-weight:700; } - -/*-------------------------------------------------------------------------- - Formatting for API reference -/*--------------------------------------------------------------------------*/ - -.type-list .type-name, .module-list .module-name { - width:25%; - font-weight:bold; -} -.member-list .member-name { - width:35%; -} -#main .xmldoc h2 { - font-size:14pt; - margin:10px 0px 0px 0px; -} -#main .xmldoc h3 { - font-size:12pt; - margin:10px 0px 0px 0px; -} -.github-link { - float:right; - text-decoration:none; -} -.github-link img { - border-style:none; - margin-left:10px; -} -.github-link .hover { display:none; } -.github-link:hover .hover { display:block; } -.github-link .normal { display: block; } -.github-link:hover .normal { display: none; } - -/*-------------------------------------------------------------------------- - Links -/*--------------------------------------------------------------------------*/ - -h1 a, h1 a:hover, h1 a:focus, -h2 a, h2 a:hover, h2 a:focus, -h3 a, h3 a:hover, h3 a:focus, -h4 a, h4 a:hover, h4 a:focus, -h5 a, h5 a:hover, h5 a:focus, -h6 a, h6 a:hover, h6 a:focus { color : inherit; text-decoration : inherit; outline:none } - -/*-------------------------------------------------------------------------- - Additional formatting for the homepage -/*--------------------------------------------------------------------------*/ - -#nuget { - margin-top:20px; - font-size: 11pt; - padding:20px; -} - -#nuget pre { - font-size:11pt; - -moz-border-radius: 0px; - -webkit-border-radius: 0px; - border-radius: 0px; - background: #404040; - border-style:none; - color: #e0e0e0; - margin-top:15px; -} diff --git a/docs/corelib.html b/docs/corelib.html deleted file mode 100644 index 295f86d4d6..0000000000 --- a/docs/corelib.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - - Compiler Services: Notes on FSharp.Core.dll - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Compiler Services: Notes on FSharp.Core.dll

-

Shipping an FSharp.Core with your application

-

When building applications or plug-in components which use FSharp.Compiler.Service.dll, you will normally also -include a copy of FSharp.Core.dll as part of your application.

-

For example, if you build a HostedCompiler.exe, you will normally place an FSharp.Core.dll (say 4.3.1.0) alongside -your HostedCompiler.exe.

-

Binding redirects for your application

-

The FSharp.Compiler.Service.dll component depends on FSharp.Core 4.4.0.0. Normally your application will target -a later version of FSharp.Core, and you may need a binding redirect to ensure -that other versions of FSharp.Core forward to the final version of FSharp.Core.dll your application uses. -Binding redirect files are normally generated automatically by build tools. If not, you can use one like this -(if your tool is called HostedCompiler.exe, the binding redirect file is called HostedCompiler.exe.config)

-

Some other dependencies may also need to be reconciled and forwarded.

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-
<?xml version="1.0" encoding="utf-8" ?>
-<configuration>
-    <runtime>
-      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
-        <dependentAssembly>
-          <assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
-          <bindingRedirect oldVersion="2.0.0.0-4.4.0.0" newVersion="4.4.1.0"/>
-        </dependentAssembly>
-        <dependentAssembly>
-          <assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
-          <bindingRedirect oldVersion="1.0.0.0-1.2.0.0" newVersion="1.2.1.0" />
-        </dependentAssembly>
-      </assemblyBinding>
-    </runtime>
-</configuration>
-
-

Which FSharp.Core and .NET Framework gets referenced in compilation?

-

The FSharp.Compiler.Service component can be used to do more or less any sort of F# compilation. -In particular you can reference an explicit FSharp.Core and/or framework -assemblies in the command line arguments (different to the FSharp.Core and a .NET Framework being used to run your tool).

-

To target a specific FSharp.Core and/or .NET Framework assemblies, use the --noframework argument -and the appropriate command-line arguments:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-
[<Literal>]
-let fsharpCorePath =
-    @"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.1.0\FSharp.Core.dll"
-let errors2, exitCode2 =
-  scs.Compile(
-    [| "fsc.exe"; "--noframework";
-       "-r"; fsharpCorePath;
-       "-r"; @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll";
-       "-o"; fn3;
-       "-a"; fn2 |])
-
-

You will need to determine the location of these assemblies. The easiest way to locate these DLLs in a cross-platform way and -convert them to command-line arguments is to crack an F# project file. -Alternatively you can compute SDK paths yourself, and some helpers to do this are in the tests for FSharp.Compiler.Service.dll.

-

What about if I am processing a script or using GetCheckOptionsFromScriptRoot

-

If you do not explicitly reference an FSharp.Core.dll from an SDK location, or if you are processing a script -using FsiEvaluationSession or GetCheckOptionsFromScriptRoot, then an implicit reference to FSharp.Core will be made -by the following choice:

-
    -
  1. The version of FSharp.Core.dll statically referenced by the host assembly returned by System.Reflection.Assembly.GetEntryAssembly().

  2. -
  3. -

    If there is no static reference to FSharp.Core in the host assembly, then

    -
      -
    • For FSharp.Compiler.Service 1.4.0.x above (F# 4.0 series), a reference to FSharp.Core version 4.4.0.0 is added
    • -
    -
  4. -
-

Do I need to include FSharp.Core.optdata and FSharp.Core.sigdata?

-

No, unless you are doing something with very old FSharp.Core.dll.

-

Summary

-

In this design note we have discussed three things:

-
    -
  • which FSharp.Core.dll is used to run your compilation tools
  • -
  • how to configure binding redirects for the FSharp.Core.dll used to run your compilation tools
  • -
  • which FSharp.Core.dll and/or framework assemblies are referenced during the checking and compilations performed by your tools.
  • -
- -
Multiple items
type LiteralAttribute =
  inherit Attribute
  new : unit -> LiteralAttribute

--------------------
new : unit -> LiteralAttribute
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/devnotes.html b/docs/devnotes.html deleted file mode 100644 index da1e7e5ffe..0000000000 --- a/docs/devnotes.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - Developer notes - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Developer notes

-

Modified clone of F# compiler exposing additional functionality for editing clients and embedding F# compiler -and F# interactive as services.

-

Components

-

There is one main component, FSharp.Compiler.Service.dll. -The main aim is to have a stable and documented fork of the main compiler that allows various -tools to share this common code.
-This component allows embedding F# Interactive as a service and contains a number of -modifications to the source code of fsi.exe that adds EvalExpression and EvalInteraction functions.

-

This repo should be identical to 'fsharp' except:

-
    -
  • -

    Changes for building FSharp.Compiler.Service.dll, notably

    -
      -
    • Change the assembly name
    • -
    • Only build FSharp.Compiler.Service.dll

    • -
    • No bootstrap or proto compiler is used - an installed F# compiler is assumed
    • -
    -
  • -
  • -

    Build script using FAKE that builds everything, produces NuGet package and -generates documentation, files for publishing NuGet packages etc. -(following F# project scaffold)

    -
  • -
  • -

    Changes to compiler source code to expose new functionality; Changes to the -F# Interactive service to implement the evaluation functions.

    -
  • -
  • Additions to compiler source code which improve the API for the use of F# editing clients
  • -
  • Additions to compiler source code which add new functionality to the compiler service API
  • -
-

If language or compiler additions are committed to fsharp/fsharp, they should be merged into -this repo and a new NuGet package released.

-

Building and NuGet

-

The build process follows the standard recommended by F# project scaffold -If you want to build the project yourself then you can follow these instructions:

- -
1: 
-2: 
-
git clone https://github.com/fsharp/FSharp.Compiler.Service
-cd FSharp.Compiler.Service
-
-

Now follow build everything by running build.cmd (Windows) or build.sh (Linux + Mac OS). -The output will be located in the bin directory. If you also wish to build the documentation -and NuGet package, run build Release (this also attempts to publish the documentation to -GitHub, which only works if you have access to the GitHub repository).

-

Release checklist

-

Release checklist to publish a new version on nuget.org

-
    -
  1. Update RELEASE_NOTES.md
  2. -
  3. Check the version numbers are correct across the source (some files duplicate them)
  4. -
  5. Commit and add the necessary tag to the repo
  6. -
  7. Publish the nupkgs for FSharp.Compiler.Service once it appears in AppVeyor artifacts
  8. -
- - -
- -
-
- Fork me on GitHub - - diff --git a/docs/editor.html b/docs/editor.html deleted file mode 100644 index 264cd0367a..0000000000 --- a/docs/editor.html +++ /dev/null @@ -1,428 +0,0 @@ - - - - - Compiler Services: Editor services - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Compiler Services: Editor services

-

This tutorial demonstrates how to use the editor services provided by the F# compiler. -This API is used to provide auto-complete, tool-tips, parameter info help, matching of -brackets and other functions in F# editors including Visual Studio, Xamarin Studio and Emacs -(see fsharpbindings project for more information). -Similarly to the tutorial on using untyped AST, we start by -getting the InteractiveChecker object.

-
-

NOTE: The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published

-
-

Type checking sample source code

-

As in the previous tutorial (using untyped AST), we start by referencing -FSharp.Compiler.Service.dll, opening the relevant namespace and creating an instance -of InteractiveChecker:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-9: 
-
// Reference F# compiler API
-#r "FSharp.Compiler.Service.dll"
-
-open System
-open FSharp.Compiler.SourceCodeServices
-open FSharp.Compiler.Text
-
-// Create an interactive checker instance 
-let checker = FSharpChecker.Create()
-
-

As previously, we use GetProjectOptionsFromScriptRoot to get a context -where the specified input is the only file passed to the compiler (and it is treated as a -script file or stand-alone F# source code).

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-
// Sample input as a multi-line string
-let input = 
-  """
-  open System
-
-  let foo() = 
-    let msg = String.Concat("Hello"," ","world")
-    if true then 
-      printfn "%s" msg.
-  """
-// Split the input & define file name
-let inputLines = input.Split('\n')
-let file = "/home/user/Test.fsx"
-
-let projOptions, errors = 
-    checker.GetProjectOptionsFromScript(file, SourceText.ofString input)
-    |> Async.RunSynchronously
-
-let parsingOptions, _errors = checker.GetParsingOptionsFromProjectOptions(projOptions)
-
-

To perform type checking, we first need to parse the input using -ParseFile, which gives us access to the untyped AST. However, -then we need to call CheckFileInProject to perform the full type checking. This function -also requires the result of ParseFileInProject, so the two functions are often called -together.

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-
// Perform parsing  
-
-let parseFileResults = 
-    checker.ParseFile(file, SourceText.ofString input, parsingOptions)
-    |> Async.RunSynchronously
-
-

Before we look at the interesting operations provided by TypeCheckResults, we -need to run the type checker on a sample input. On F# code with errors, you would get some type checking -result (but it may contain incorrectly "guessed" results).

- - - -
1: 
-2: 
-3: 
-4: 
-
// Perform type checking
-let checkFileAnswer = 
-    checker.CheckFileInProject(parseFileResults, file, 0, SourceText.ofString input, projOptions)
-    |> Async.RunSynchronously
-
-

Alternatively you can use ParseAndCheckFileInProject to check both in one step:

- - - -
1: 
-2: 
-3: 
-
let parseResults2, checkFileAnswer2 = 
-    checker.ParseAndCheckFileInProject(file, 0, SourceText.ofString input, projOptions)
-    |> Async.RunSynchronously
-
-

The function returns both the untyped parse result (which we do not use in this -tutorial), but also a CheckFileAnswer value, which gives us access to all -the interesting functionality...

- - - -
1: 
-2: 
-3: 
-4: 
-
let checkFileResults = 
-    match checkFileAnswer with
-    | FSharpCheckFileAnswer.Succeeded(res) -> res
-    | res -> failwithf "Parsing did not finish... (%A)" res
-
-

Here, we type check a simple function that (conditionally) prints "Hello world". -On the last line, we leave an additional dot in msg. so that we can get the -completion list on the msg value (we expect to see various methods on the string -type there).

-

Using type checking results

-

Let's now look at some of the API that is exposed by the TypeCheckResults type. In general, -this is the type that lets you implement most of the interesting F# source code editor services.

-

Getting a tool tip

-

To get a tool tip, you can use GetToolTipTextAlternate method. The method takes a line number and character -offset. Both of the numbers are zero-based. In the sample code, we want to get tooltip for the foo -function that is defined on line 3 (line 0 is blank) and the letter f starts at index 7 (the tooltip -would work anywhere inside the identifier).

-

In addition, the method takes a tag of token which is typically IDENT, when getting tooltip for an -identifier (the other option lets you get tooltip with full assembly location when using #r "...").

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
// Get tag of the IDENT token to be used as the last argument
-open FSharp.Compiler
-let identToken = FSharpTokenTag.Identifier
-
-// Get tool tip at the specified location
-let tip = checkFileResults.GetToolTipText(4, 7, inputLines.[1], ["foo"], identToken)
-printfn "%A" tip
-
-
-

NOTE: GetToolTipTextAlternate is an alternative name for the old GetToolTipText. The old GetToolTipText was -deprecated because it accepted zero-based line numbers. At some point it will be removed, and GetToolTipTextAlternate will be renamed back to GetToolTipText.

-
-

Aside from the location and token kind, the function also requires the current contents of the line -(useful when the source code changes) and a Names value, which is a list of strings representing -the current long name. For example to get tooltip for the Random identifier in a long name -System.Random, you would use location somewhere in the string Random and you would pass -["System"; "Random"] as the Names value.

-

The returned value is of type ToolTipText which contains a discriminated union ToolTipElement. -The union represents different kinds of tool tips that you can get from the compiler.

-

Getting auto-complete lists

-

The next method exposed by TypeCheckResults lets us perform auto-complete on a given location. -This can be called on any identifier or in any scope (in which case you get a list of names visible -in the scope) or immediately after . to get a list of members of some object. Here, we get a -list of members of the string value msg.

-

To do this, we call GetDeclarationListInfo with the location of the . symbol on the last line -(ending with printfn "%s" msg.). The offsets are one-based, so the location is 7, 23. -We also need to specify a function that says that the text has not changed and the current identifier -where we need to perform the completion.

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-9: 
-
// Get declarations (autocomplete) for a location
-let decls = 
-    checkFileResults.GetDeclarationListInfo
-      (Some parseFileResults, 7, inputLines.[6], PartialLongName.Empty 23, (fun () -> []), fun _ -> false)
-    |> Async.RunSynchronously
-
-// Print the names of available items
-for item in decls.Items do
-    printfn " - %s" item.Name
-
-
-

NOTE: v is an alternative name for the old GetDeclarations. The old GetDeclarations was -deprecated because it accepted zero-based line numbers. At some point it will be removed, and GetDeclarationListInfo will be renamed back to GetDeclarations.

-
-

When you run the code, you should get a list containing the usual string methods such as -Substring, ToUpper, ToLower etc. The fourth argument of GetDeclarations, here ([], "msg"), -specifies the context for the auto-completion. Here, we want a completion on a complete name -msg, but you could for example use (["System"; "Collections"], "Generic") to get a completion list -for a fully qualified namespace.

-

Getting parameter information

-

The next common feature of editors is to provide information about overloads of a method. In our -sample code, we use String.Concat which has a number of overloads. We can get the list using -GetMethods operation. As previously, this takes zero-indexed offset of the location that we are -interested in (here, right at the end of the String.Concat identifier) and we also need to provide -the identifier again (so that the compiler can provide up-to-date information when the source code -changes):

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-
// Get overloads of the String.Concat method
-let methods = 
-    checkFileResults.GetMethods(5, 27, inputLines.[4], Some ["String"; "Concat"])
-    |> Async.RunSynchronously
-
-// Print concatenated parameter lists
-for mi in methods.Methods do
-    [ for p in mi.Parameters -> p.Display ]
-    |> String.concat ", " 
-    |> printfn "%s(%s)" methods.MethodName
-
-

The code uses the Display property to get the annotation for each parameter. This returns information -such as arg0: obj or params args: obj[] or str0: string, str1: string. We concatenate the parameters -and print a type annotation with the method name.

-

Asynchronous and immediate operations

-

You may have noticed that CheckFileInProject is an asynchronous operation. -This indicates that type checking of F# code can take some time. -The F# compiler performs the work in background (automatically) and when -we call CheckFileInProject method, it returns an asynchronous operation.

-

There is also the CheckFileInProjectIfReady method. This returns immediately if the -type checking operation can't be started immediately, e.g. if other files in the project -are not yet type-checked. In this case, a background worker might choose to do other -work in the meantime, or give up on type checking the file until the FileTypeCheckStateIsDirty event -is raised.

-
-

The fsharpbinding project has more advanced -example of handling the background work where all requests are sent through an F# agent. -This may be a more appropriate for implementing editor support.

-
-

Summary

-

The CheckFileAnswer object contains other useful methods that were not covered in this tutorial. You -can use it to get location of a declaration for a given identifier, additional colorization information -(the F# 3.1 colorizes computation builder identifiers & query operators) and others.

-

Using the FSharpChecker component in multi-project, incremental and interactive editing situations may involve -knowledge of the FSharpChecker operations queue and the FSharpChecker caches.

-

Finally, if you are implementing an editor support for an editor that cannot directly call .NET API, -you can call many of the methods discussed here via a command line interface that is available in the -FSharp.AutoComplete project.

- -
namespace System
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp

--------------------
type FSharpAttribute =
  member Format : context:FSharpDisplayContext -> string
  member AttributeType : FSharpEntity
  member ConstructorArguments : IList<FSharpType * obj>
  member IsUnresolved : bool
  member NamedArguments : IList<FSharpType * string * bool * obj>
-
namespace FSharp.Compiler.Text
-
val checker : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
val input : string
-
val inputLines : string []
-
String.Split([<ParamArray>] separator: char []) : string []
String.Split(separator: string [], options: StringSplitOptions) : string []
String.Split(separator: string,?options: StringSplitOptions) : string []
String.Split(separator: char [], options: StringSplitOptions) : string []
String.Split(separator: char [], count: int) : string []
String.Split(separator: char,?options: StringSplitOptions) : string []
String.Split(separator: string [], count: int, options: StringSplitOptions) : string []
String.Split(separator: string, count: int,?options: StringSplitOptions) : string []
String.Split(separator: char [], count: int, options: StringSplitOptions) : string []
String.Split(separator: char, count: int,?options: StringSplitOptions) : string []
-
val file : string
-
val projOptions : FSharpProjectOptions
-
val errors : FSharpErrorInfo list
-
member FSharpChecker.GetProjectOptionsFromScript : filename:string * sourceText:ISourceText * ?previewEnabled:bool * ?loadedTimeStamp:DateTime * ?otherFlags:string [] * ?useFsiAuxLib:bool * ?useSdkRefs:bool * ?assumeDotNetFramework:bool * ?extraProjectInfo:obj * ?optionsStamp:int64 * ?userOpName:string -> Async<FSharpProjectOptions * FSharpErrorInfo list>
-
module SourceText

from FSharp.Compiler.Text
-
val ofString : string -> ISourceText
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
val parsingOptions : FSharpParsingOptions
-
val _errors : FSharpErrorInfo list
-
member FSharpChecker.GetParsingOptionsFromProjectOptions : FSharpProjectOptions -> FSharpParsingOptions * FSharpErrorInfo list
-
val parseFileResults : FSharpParseFileResults
-
member FSharpChecker.ParseFile : filename:string * sourceText:ISourceText * options:FSharpParsingOptions * ?userOpName:string -> Async<FSharpParseFileResults>
-
val checkFileAnswer : FSharpCheckFileAnswer
-
member FSharpChecker.CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
-
val parseResults2 : FSharpParseFileResults
-
val checkFileAnswer2 : FSharpCheckFileAnswer
-
member FSharpChecker.ParseAndCheckFileInProject : filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileAnswer>
-
val checkFileResults : FSharpCheckFileResults
-
type FSharpCheckFileAnswer =
  | Aborted
  | Succeeded of FSharpCheckFileResults
-
union case FSharpCheckFileAnswer.Succeeded: FSharpCheckFileResults -> FSharpCheckFileAnswer
-
val res : FSharpCheckFileResults
-
val res : FSharpCheckFileAnswer
-
val failwithf : format:Printf.StringFormat<'T,'Result> -> 'T
-
val identToken : int
-
module FSharpTokenTag

from FSharp.Compiler.SourceCodeServices
-
val Identifier : int
-
val tip : Async<FSharpToolTipText>
-
member FSharpCheckFileResults.GetToolTipText : line:int * colAtEndOfNames:int * lineText:string * names:string list * tokenTag:int * ?userOpName:string -> Async<FSharpToolTipText>
-
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
-
val decls : FSharpDeclarationListInfo
-
member FSharpCheckFileResults.GetDeclarationListInfo : ParsedFileResultsOpt:FSharpParseFileResults option * line:int * lineText:string * partialName:PartialLongName * ?getAllEntities:(unit -> AssemblySymbol list) * ?hasTextChangedSinceLastTypecheck:(obj * Range.range -> bool) * ?userOpName:string -> Async<FSharpDeclarationListInfo>
-
union case Option.Some: Value: 'T -> Option<'T>
-
type PartialLongName =
  { QualifyingIdents: string list
    PartialIdent: string
    EndColumn: int
    LastDotPos: int option }
    static member Empty : endColumn:int -> PartialLongName
-
static member PartialLongName.Empty : endColumn:int -> PartialLongName
-
val item : FSharpDeclarationListItem
-
property FSharpDeclarationListInfo.Items: FSharpDeclarationListItem [] with get
-
property FSharpDeclarationListItem.Name: string with get
-
val methods : FSharpMethodGroup
-
member FSharpCheckFileResults.GetMethods : line:int * colAtEndOfNames:int * lineText:string * names:string list option * ?userOpName:string -> Async<FSharpMethodGroup>
-
val mi : FSharpMethodGroupItem
-
property FSharpMethodGroup.Methods: FSharpMethodGroupItem [] with get
-
val p : FSharpMethodGroupItemParameter
-
property FSharpMethodGroupItem.Parameters: FSharpMethodGroupItemParameter [] with get
-
property FSharpMethodGroupItemParameter.Display: string with get
-
Multiple items
type String =
  new : value:char[] -> string + 8 overloads
  member Chars : int -> char
  member Clone : unit -> obj
  member CompareTo : value:obj -> int + 1 overload
  member Contains : value:string -> bool + 3 overloads
  member CopyTo : sourceIndex:int * destination:char[] * destinationIndex:int * count:int -> unit
  member EndsWith : value:string -> bool + 3 overloads
  member Equals : obj:obj -> bool + 2 overloads
  member GetEnumerator : unit -> CharEnumerator
  member GetHashCode : unit -> int + 1 overload
  ...

--------------------
String(value: char []) : String
String(value: nativeptr<char>) : String
String(value: nativeptr<sbyte>) : String
String(value: ReadOnlySpan<char>) : String
String(c: char, count: int) : String
String(value: char [], startIndex: int, length: int) : String
String(value: nativeptr<char>, startIndex: int, length: int) : String
String(value: nativeptr<sbyte>, startIndex: int, length: int) : String
String(value: nativeptr<sbyte>, startIndex: int, length: int, enc: Text.Encoding) : String
-
val concat : sep:string -> strings:seq<string> -> string
-
property FSharpMethodGroup.MethodName: string with get
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/filesystem.html b/docs/filesystem.html deleted file mode 100644 index 08e4bb5150..0000000000 --- a/docs/filesystem.html +++ /dev/null @@ -1,482 +0,0 @@ - - - - - Compiler Services: Virtualized File System - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Compiler Services: Virtualized File System

-

The FSharp.Compiler.Service component has a global variable -representing the file system. By setting this variable you can host the compiler in situations where a file system -is not available.

-
-

NOTE: The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published.

-
-

Setting the FileSystem

-

In the example below, we set the file system to an implementation which reads from disk

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-21: 
-22: 
-23: 
-24: 
-25: 
-26: 
-27: 
-28: 
-29: 
-30: 
-31: 
-32: 
-33: 
-34: 
-35: 
-36: 
-37: 
-38: 
-39: 
-40: 
-41: 
-42: 
-43: 
-44: 
-45: 
-46: 
-47: 
-48: 
-49: 
-50: 
-51: 
-52: 
-53: 
-54: 
-55: 
-56: 
-57: 
-58: 
-59: 
-60: 
-61: 
-62: 
-63: 
-64: 
-65: 
-66: 
-67: 
-68: 
-69: 
-70: 
-71: 
-72: 
-73: 
-74: 
-75: 
-76: 
-
#r "FSharp.Compiler.Service.dll"
-open System
-open System.IO
-open System.Collections.Generic
-open System.Text
-open FSharp.Compiler.AbstractIL.Internal.Library
-
-let defaultFileSystem = Shim.FileSystem
-
-let fileName1 = @"c:\mycode\test1.fs" // note, the path doesn't exist
-let fileName2 = @"c:\mycode\test2.fs" // note, the path doesn't exist
-
-type MyFileSystem() = 
-    let file1 = """
-module File1
-
-let A = 1"""
-    let file2 = """
-module File2
-let B = File1.A + File1.A"""
-    let files = dict [(fileName1, file1); (fileName2, file2)]
-
-    interface IFileSystem with
-        // Implement the service to open files for reading and writing
-        member __.FileStreamReadShim(fileName) = 
-            match files.TryGetValue fileName with
-            | true, text -> new MemoryStream(Encoding.UTF8.GetBytes(text)) :> Stream
-            | _ -> defaultFileSystem.FileStreamReadShim(fileName)
-
-        member __.FileStreamCreateShim(fileName) = 
-            defaultFileSystem.FileStreamCreateShim(fileName)
-
-        member __.FileStreamWriteExistingShim(fileName) = 
-            defaultFileSystem.FileStreamWriteExistingShim(fileName)
-
-        member __.ReadAllBytesShim(fileName) = 
-            match files.TryGetValue fileName with
-            | true, text -> Encoding.UTF8.GetBytes(text)
-            | _ -> defaultFileSystem.ReadAllBytesShim(fileName)
-
-        // Implement the service related to temporary paths and file time stamps
-        member __.GetTempPathShim() = 
-            defaultFileSystem.GetTempPathShim()
-
-        member __.GetLastWriteTimeShim(fileName) = 
-            defaultFileSystem.GetLastWriteTimeShim(fileName)
-
-        member __.GetFullPathShim(fileName) = 
-            defaultFileSystem.GetFullPathShim(fileName)
-
-        member __.IsInvalidPathShim(fileName) = 
-            defaultFileSystem.IsInvalidPathShim(fileName)
-
-        member __.IsPathRootedShim(fileName) = 
-            defaultFileSystem.IsPathRootedShim(fileName)
-
-        member __.IsStableFileHeuristic(fileName) = 
-            defaultFileSystem.IsStableFileHeuristic(fileName)
-
-        // Implement the service related to file existence and deletion
-        member __.SafeExists(fileName) = 
-            files.ContainsKey(fileName) || defaultFileSystem.SafeExists(fileName)
-
-        member __.FileDelete(fileName) = 
-            defaultFileSystem.FileDelete(fileName)
-
-        // Implement the service related to assembly loading, used to load type providers
-        // and for F# interactive.
-        member __.AssemblyLoadFrom(fileName) = 
-            defaultFileSystem.AssemblyLoadFrom fileName
-
-        member __.AssemblyLoad(assemblyName) = 
-            defaultFileSystem.AssemblyLoad assemblyName 
-
-let myFileSystem = MyFileSystem()
-Shim.FileSystem <- MyFileSystem() 
-
-

Doing a compilation with the FileSystem

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-21: 
-22: 
-23: 
-24: 
-25: 
-26: 
-27: 
-28: 
-29: 
-30: 
-31: 
-32: 
-33: 
-34: 
-35: 
-36: 
-37: 
-38: 
-39: 
-40: 
-41: 
-42: 
-43: 
-44: 
-45: 
-46: 
-47: 
-48: 
-49: 
-50: 
-51: 
-52: 
-53: 
-54: 
-55: 
-56: 
-57: 
-58: 
-59: 
-
open FSharp.Compiler.SourceCodeServices
-
-let checker = FSharpChecker.Create()
-
-let projectOptions = 
-    let sysLib nm = 
-        if System.Environment.OSVersion.Platform = System.PlatformID.Win32NT then // file references only valid on Windows 
-            System.Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFilesX86) +
-            @"\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\" + nm + ".dll"
-        else
-            let sysDir = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()
-            let (++) a b = System.IO.Path.Combine(a,b)
-            sysDir ++ nm + ".dll" 
-
-    let fsCore4300() = 
-        if System.Environment.OSVersion.Platform = System.PlatformID.Win32NT then // file references only valid on Windows 
-            System.Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFilesX86) +
-            @"\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll"  
-        else 
-            sysLib "FSharp.Core"
-
-    let allFlags = 
-        [| yield "--simpleresolution"; 
-           yield "--noframework"; 
-           yield "--debug:full"; 
-           yield "--define:DEBUG"; 
-           yield "--optimize-"; 
-           yield "--doc:test.xml"; 
-           yield "--warn:3"; 
-           yield "--fullpaths"; 
-           yield "--flaterrors"; 
-           yield "--target:library"; 
-           let references =
-             [ sysLib "mscorlib" 
-               sysLib "System"
-               sysLib "System.Core"
-               fsCore4300() ]
-           for r in references do 
-                 yield "-r:" + r |]
- 
-    { ProjectFileName = @"c:\mycode\compilation.fsproj" // Make a name that is unique in this directory.
-      ProjectId = None
-      SourceFiles = [| fileName1; fileName2 |]
-      OriginalLoadReferences = []
-      ExtraProjectInfo=None
-      Stamp = None
-      OtherOptions = allFlags 
-      ReferencedProjects = [| |]
-      IsIncompleteTypeCheckEnvironment = false
-      UseScriptResolutionRules = true 
-      LoadTime = System.DateTime.Now // Note using 'Now' forces reloading
-      UnresolvedReferences = None }
-
-let results = checker.ParseAndCheckProject(projectOptions) |> Async.RunSynchronously
-
-results.Errors
-results.AssemblySignature.Entities.Count //2
-results.AssemblySignature.Entities.[0].MembersFunctionsAndValues.Count //1
-results.AssemblySignature.Entities.[0].MembersFunctionsAndValues.[0].DisplayName // "B"
-
-

Summary

-

In this tutorial, we've seen how to globally customize the view of the file system used by the FSharp.Compiler.Service -component.

-

At the time of writing, the following System.IO operations are not considered part of the virtualized file system API. -Future iterations on the compiler service implementation may add these to the API.

-
    -
  • Path.Combine
  • -
  • Path.DirectorySeparatorChar
  • -
  • Path.GetDirectoryName
  • -
  • Path.GetFileName
  • -
  • Path.GetFileNameWithoutExtension
  • -
  • Path.HasExtension
  • -
  • Path.GetRandomFileName (used only in generation compiled win32 resources in assemblies)
  • -
-

NOTE: Several operations in the SourceCodeServices API accept the contents of a file to parse -or check as a parameter, in addition to a file name. In these cases, the file name is only used for -error reporting.

-

NOTE: Type provider components do not use the virtualized file system.

-

NOTE: The compiler service may use MSBuild for assembly resolutions unless --simpleresolution is -provided. When using the FileSystem API you will normally want to specify --simpleresolution as one -of your compiler flags. Also specify --noframework. You will need to supply explicit resolutions of all -referenced .NET assemblies.

- -
namespace System
-
namespace System.IO
-
namespace System.Collections
-
namespace System.Collections.Generic
-
namespace System.Text
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.AbstractIL
-
namespace FSharp.Compiler.AbstractIL.Internal
-
module Library

from FSharp.Compiler.AbstractIL.Internal
-
val defaultFileSystem : IFileSystem
-
module Shim

from FSharp.Compiler.AbstractIL.Internal.Library
-
val mutable FileSystem : IFileSystem
-
val fileName1 : string
-
val fileName2 : string
-
Multiple items
type MyFileSystem =
  interface IFileSystem
  new : unit -> MyFileSystem

--------------------
new : unit -> MyFileSystem
-
val file1 : string
-
val file2 : string
-
val files : IDictionary<string,string>
-
val dict : keyValuePairs:seq<'Key * 'Value> -> IDictionary<'Key,'Value> (requires equality)
-
type IFileSystem =
  interface
    abstract member AssemblyLoad : assemblyName:AssemblyName -> Assembly
    abstract member AssemblyLoadFrom : fileName:string -> Assembly
    abstract member FileDelete : fileName:string -> unit
    abstract member FileStreamCreateShim : fileName:string -> Stream
    abstract member FileStreamReadShim : fileName:string -> Stream
    abstract member FileStreamWriteExistingShim : fileName:string -> Stream
    abstract member GetFullPathShim : fileName:string -> string
    abstract member GetLastWriteTimeShim : fileName:string -> DateTime
    abstract member GetTempPathShim : unit -> string
    abstract member IsInvalidPathShim : filename:string -> bool
    ...
  end
-
val fileName : string
-
IDictionary.TryGetValue(key: string, value: byref<string>) : bool
-
val text : string
-
Multiple items
type MemoryStream =
  inherit Stream
  new : unit -> MemoryStream + 6 overloads
  member CanRead : bool
  member CanSeek : bool
  member CanWrite : bool
  member Capacity : int with get, set
  member CopyTo : destination:Stream * bufferSize:int -> unit
  member CopyToAsync : destination:Stream * bufferSize:int * cancellationToken:CancellationToken -> Task
  member Flush : unit -> unit
  member FlushAsync : cancellationToken:CancellationToken -> Task
  member GetBuffer : unit -> byte[]
  ...

--------------------
MemoryStream() : MemoryStream
MemoryStream(capacity: int) : MemoryStream
MemoryStream(buffer: byte []) : MemoryStream
MemoryStream(buffer: byte [], writable: bool) : MemoryStream
MemoryStream(buffer: byte [], index: int, count: int) : MemoryStream
MemoryStream(buffer: byte [], index: int, count: int, writable: bool) : MemoryStream
MemoryStream(buffer: byte [], index: int, count: int, writable: bool, publiclyVisible: bool) : MemoryStream
-
type Encoding =
  member BodyName : string
  member Clone : unit -> obj
  member CodePage : int
  member DecoderFallback : DecoderFallback with get, set
  member EncoderFallback : EncoderFallback with get, set
  member EncodingName : string
  member Equals : value:obj -> bool
  member GetByteCount : chars:char[] -> int + 5 overloads
  member GetBytes : chars:char[] -> byte[] + 7 overloads
  member GetCharCount : bytes:byte[] -> int + 3 overloads
  ...
-
property Encoding.UTF8: Encoding with get
-
Encoding.GetBytes(s: string) : byte []
Encoding.GetBytes(chars: char []) : byte []
Encoding.GetBytes(chars: ReadOnlySpan<char>, bytes: Span<byte>) : int
Encoding.GetBytes(s: string, index: int, count: int) : byte []
Encoding.GetBytes(chars: char [], index: int, count: int) : byte []
Encoding.GetBytes(chars: nativeptr<char>, charCount: int, bytes: nativeptr<byte>, byteCount: int) : int
Encoding.GetBytes(s: string, charIndex: int, charCount: int, bytes: byte [], byteIndex: int) : int
Encoding.GetBytes(chars: char [], charIndex: int, charCount: int, bytes: byte [], byteIndex: int) : int
-
type Stream =
  inherit MarshalByRefObject
  member BeginRead : buffer:byte[] * offset:int * count:int * callback:AsyncCallback * state:obj -> IAsyncResult
  member BeginWrite : buffer:byte[] * offset:int * count:int * callback:AsyncCallback * state:obj -> IAsyncResult
  member CanRead : bool
  member CanSeek : bool
  member CanTimeout : bool
  member CanWrite : bool
  member Close : unit -> unit
  member CopyTo : destination:Stream -> unit + 1 overload
  member CopyToAsync : destination:Stream -> Task + 3 overloads
  member Dispose : unit -> unit
  ...
-
abstract member IFileSystem.FileStreamReadShim : fileName:string -> Stream
-
val __ : MyFileSystem
-
abstract member IFileSystem.FileStreamCreateShim : fileName:string -> Stream
-
abstract member IFileSystem.FileStreamWriteExistingShim : fileName:string -> Stream
-
abstract member IFileSystem.ReadAllBytesShim : fileName:string -> byte []
-
abstract member IFileSystem.GetTempPathShim : unit -> string
-
abstract member IFileSystem.GetLastWriteTimeShim : fileName:string -> DateTime
-
abstract member IFileSystem.GetFullPathShim : fileName:string -> string
-
abstract member IFileSystem.IsInvalidPathShim : filename:string -> bool
-
abstract member IFileSystem.IsPathRootedShim : path:string -> bool
-
abstract member IFileSystem.IsStableFileHeuristic : fileName:string -> bool
-
IDictionary.ContainsKey(key: string) : bool
-
abstract member IFileSystem.SafeExists : fileName:string -> bool
-
abstract member IFileSystem.FileDelete : fileName:string -> unit
-
abstract member IFileSystem.AssemblyLoadFrom : fileName:string -> Reflection.Assembly
-
val assemblyName : Reflection.AssemblyName
-
abstract member IFileSystem.AssemblyLoad : assemblyName:Reflection.AssemblyName -> Reflection.Assembly
-
val myFileSystem : MyFileSystem
-
namespace FSharp.Compiler.SourceCodeServices
-
val checker : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
val projectOptions : FSharpProjectOptions
-
val sysLib : (string -> string)
-
val nm : string
-
type Environment =
  static member CommandLine : string
  static member CurrentDirectory : string with get, set
  static member CurrentManagedThreadId : int
  static member Exit : exitCode:int -> unit
  static member ExitCode : int with get, set
  static member ExpandEnvironmentVariables : name:string -> string
  static member FailFast : message:string -> unit + 1 overload
  static member GetCommandLineArgs : unit -> string[]
  static member GetEnvironmentVariable : variable:string -> string + 1 overload
  static member GetEnvironmentVariables : unit -> IDictionary + 1 overload
  ...
  nested type SpecialFolder
  nested type SpecialFolderOption
-
property Environment.OSVersion: OperatingSystem with get
-
property OperatingSystem.Platform: PlatformID with get
-
type PlatformID =
  | Win32S = 0
  | Win32Windows = 1
  | Win32NT = 2
  | WinCE = 3
  | Unix = 4
  | Xbox = 5
  | MacOSX = 6
-
field PlatformID.Win32NT: PlatformID = 2
-
Environment.GetFolderPath(folder: Environment.SpecialFolder) : string
Environment.GetFolderPath(folder: Environment.SpecialFolder, option: Environment.SpecialFolderOption) : string
-
type SpecialFolder =
  | ApplicationData = 26
  | CommonApplicationData = 35
  | LocalApplicationData = 28
  | Cookies = 33
  | Desktop = 0
  | Favorites = 6
  | History = 34
  | InternetCache = 32
  | Programs = 2
  | MyComputer = 17
  ...
-
field Environment.SpecialFolder.ProgramFilesX86: Environment.SpecialFolder = 42
-
val sysDir : string
-
namespace System.Runtime
-
namespace System.Runtime.InteropServices
-
type RuntimeEnvironment =
  static member FromGlobalAccessCache : a:Assembly -> bool
  static member GetRuntimeDirectory : unit -> string
  static member GetRuntimeInterfaceAsIntPtr : clsid:Guid * riid:Guid -> nativeint
  static member GetRuntimeInterfaceAsObject : clsid:Guid * riid:Guid -> obj
  static member GetSystemVersion : unit -> string
  static member SystemConfigurationFile : string
-
Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() : string
-
val a : string
-
val b : string
-
type Path =
  static val DirectorySeparatorChar : char
  static val AltDirectorySeparatorChar : char
  static val VolumeSeparatorChar : char
  static val PathSeparator : char
  static val InvalidPathChars : char[]
  static member ChangeExtension : path:string * extension:string -> string
  static member Combine : [<ParamArray>] paths:string[] -> string + 3 overloads
  static member GetDirectoryName : path:string -> string + 1 overload
  static member GetExtension : path:string -> string + 1 overload
  static member GetFileName : path:string -> string + 1 overload
  ...
-
Path.Combine([<ParamArray>] paths: string []) : string
Path.Combine(path1: string, path2: string) : string
Path.Combine(path1: string, path2: string, path3: string) : string
Path.Combine(path1: string, path2: string, path3: string, path4: string) : string
-
val fsCore4300 : (unit -> string)
-
val allFlags : string []
-
val references : string list
-
val r : string
-
union case Option.None: Option<'T>
-
Multiple items
type DateTime =
  struct
    new : ticks:int64 -> DateTime + 10 overloads
    member Add : value:TimeSpan -> DateTime
    member AddDays : value:float -> DateTime
    member AddHours : value:float -> DateTime
    member AddMilliseconds : value:float -> DateTime
    member AddMinutes : value:float -> DateTime
    member AddMonths : months:int -> DateTime
    member AddSeconds : value:float -> DateTime
    member AddTicks : value:int64 -> DateTime
    member AddYears : value:int -> DateTime
    ...
  end

--------------------
DateTime ()
   (+0 other overloads)
DateTime(ticks: int64) : DateTime
   (+0 other overloads)
DateTime(ticks: int64, kind: DateTimeKind) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int, calendar: Globalization.Calendar) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, kind: DateTimeKind) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, calendar: Globalization.Calendar) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, kind: DateTimeKind) : DateTime
   (+0 other overloads)
-
property DateTime.Now: DateTime with get
-
val results : FSharpCheckProjectResults
-
member FSharpChecker.ParseAndCheckProject : options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpCheckProjectResults>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
property FSharpCheckProjectResults.Errors: FSharpErrorInfo [] with get
-
property FSharpCheckProjectResults.AssemblySignature: FSharpAssemblySignature with get
-
property FSharpAssemblySignature.Entities: IList<FSharpEntity> with get
-
property ICollection.Count: int with get
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/images/en.png b/docs/images/en.png deleted file mode 100644 index a6568bf968..0000000000 Binary files a/docs/images/en.png and /dev/null differ diff --git a/docs/images/ja.png b/docs/images/ja.png deleted file mode 100644 index 14639e2db0..0000000000 Binary files a/docs/images/ja.png and /dev/null differ diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index cbbd6ae863..0000000000 --- a/docs/index.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - F# Compiler Services - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

F# Compiler Services

-

The F# compiler services package is a component derived from the F# compiler source code that -exposes additional functionality for implementing F# language bindings, additional -tools based on the compiler or refactoring tools. The package also includes F# -interactive service that can be used for embedding F# scripting into your applications.

-
-
-
-
- The F# Compiler Services package can be installed from NuGet: -
PM> Install-Package FSharp.Compiler.Service
-
-
-
-
-

Available services

-

The project currently exposes the following services that are tested & documented on this page. -The libraries contain additional public API that can be used, but is not documented here.

-
    -
  • -

    F# Language tokenizer - turns any F# source code into a stream of tokens. -Useful for implementing source code colorization and basic tools. Correctly handle nested -comments, strings etc.

    -
  • -
  • -

    Processing untyped AST - allows accessing the untyped abstract syntax tree (AST). -This represents parsed F# syntax without type information and can be used to implement code formatting -and various simple processing tasks.

    -
  • -
  • -

    Using editor (IDE) services - expose functionality for auto-completion, tool-tips, -parameter information etc. These functions are useful for implementing F# support for editors -and for getting some type information for F# code.

    -
  • -
  • -

    Working with signatures, types, and resolved symbols - many services related to type checking -return resolved symbols, representing inferred types, and the signatures of whole assemblies.

    -
  • -
  • -

    Working with resolved expressions - services related to working with -type-checked expressions and declarations, where names have been resolved to symbols.

    -
  • -
  • -

    Working with projects and project-wide analysis - you can request a check of -an entire project, and ask for the results of whole-project analyses such as find-all-references.

    -
  • -
  • -

    Hosting F# interactive - allows calling F# interactive as a .NET library -from your .NET code. You can use this API to embed F# as a scripting language in your projects.

    -
  • -
  • Hosting the F# compiler - allows you to embed calls to the F# compiler.

  • -
  • -

    File system API - the FSharp.Compiler.Service component has a global variable -representing the file system. By setting this variable you can host the compiler in situations where a file system -is not available.

    -
  • -
-
-

NOTE: The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published

-
-

Projects using the F# Compiler Services

-

Some of the projects using the F# Compiler Services are:

- -

Contributing and copyright

-

This project is a fork of the fsharp/fsharp which has been -modified to expose additional internals useful for creating editors and F# tools and also for -embedding F# interactive.

-

The F# source code is copyright by Microsoft Corporation and contributors, the extensions have been -implemented by Dave Thomas, Anh-Dung Phan, Tomas Petricek and other contributors.

- - -
- -
-
- Fork me on GitHub - - diff --git a/docs/interactive.html b/docs/interactive.html deleted file mode 100644 index 74a5055138..0000000000 --- a/docs/interactive.html +++ /dev/null @@ -1,532 +0,0 @@ - - - - - Interactive Service: Embedding F# Interactive - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Interactive Service: Embedding F# Interactive

-

This tutorial demonstrates how to embed F# interactive in your application. F# interactive -is an interactive scripting environment that compiles F# code into highly efficient IL code -and executes it on the fly. The F# interactive service allows you to embed F# evaluation in -your application.

-
-

NOTE: There is a number of options for embedding F# Interactive. The easiest one is to use the -fsi.exe process and communicate with it using standard input and standard output. In this -tutorial, we look at calling F# Interactive directly through .NET API. However, if you have -no control over the input, it is a good idea to run F# interactive in a separate process. -One reason is that there is no way to handle StackOverflowException and so a poorly written -script can terminate the host process. Remember that while calling F# Interactive through .NET API, ---shadowcopyreferences option will be ignored. For detailed discussion, please take a look at -this thread. -NOTE: If FsiEvaluationSession.Create fails with an error saying that FSharp.Core.dll cannot be found, -add the FSharp.Core.sigdata and FSharp.Core.optdata files. More info here.

-
-

However, the F# interactive service is still useful, because you might want to wrap it in your -own executable that is then executed (and communicates with the rest of your application), or -if you only need to execute limited subset of F# code (e.g. generated by your own DSL).

-

Starting the F# interactive

-

First, we need to reference the libraries that contain F# interactive service:

- - - -
1: 
-2: 
-3: 
-
#r "FSharp.Compiler.Service.dll"
-open FSharp.Compiler.SourceCodeServices
-open FSharp.Compiler.Interactive.Shell
-
-

To communicate with F# interactive, we need to create streams that represent input and -output. We will use those later to read the output printed as a result of evaluating some -F# code that prints:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-
open System
-open System.IO
-open System.Text
-
-// Initialize output and input streams
-let sbOut = new StringBuilder()
-let sbErr = new StringBuilder()
-let inStream = new StringReader("")
-let outStream = new StringWriter(sbOut)
-let errStream = new StringWriter(sbErr)
-
-// Build command line arguments & start FSI session
-let argv = [| "C:\\fsi.exe" |]
-let allArgs = Array.append argv [|"--noninteractive"|]
-
-let fsiConfig = FsiEvaluationSession.GetDefaultConfiguration()
-let fsiSession = FsiEvaluationSession.Create(fsiConfig, allArgs, inStream, outStream, errStream)
-
-

Evaluating and executing code

-

The F# interactive service exposes several methods that can be used for evaluation. The first -is EvalExpression which evaluates an expression and returns its result. The result contains -the returned value (as obj) and the statically inferred type of the value:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-
/// Evaluate expression & return the result
-let evalExpression text =
-  match fsiSession.EvalExpression(text) with
-  | Some value -> printfn "%A" value.ReflectionValue
-  | None -> printfn "Got no result!"
-
-

This takes a string as an argument and evaluates (i.e. executes) it as F# code.

- - - -
1: 
-
evalExpression "42+1" // prints '43'
-
-

This can be used in a strongly typed way as follows:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
/// Evaluate expression & return the result, strongly typed
-let evalExpressionTyped<'T> (text) =
-    match fsiSession.EvalExpression(text) with
-    | Some value -> value.ReflectionValue |> unbox<'T>
-    | None -> failwith "Got no result!"
-
-evalExpressionTyped<int> "42+1"  // gives '43'
-
-

The EvalInteraction method can be used to evaluate side-effectful operations -such as printing, declarations, or other interactions that are not valid F# expressions, but can be entered in -the F# Interactive console. Such commands include #time "on" (and other directives), open System -all declarations and other top-level statements. The code -does not require ;; at the end. Just enter the code that you want to execute:

- - - -
1: 
-
fsiSession.EvalInteraction "printfn \"bye\""
-
-

The EvalScript method allows to evaluate a complete .fsx script.

- - - -
1: 
-2: 
-
File.WriteAllText("sample.fsx", "let twenty = 10 + 10")
-fsiSession.EvalScript "sample.fsx"
-
-

Catching errors

-

EvalExpression, EvalInteraction and EvalScript are awkward if the -code has type checking warnings or errors, or if evaluation fails with an exception. -In these cases you can use EvalExpressionNonThrowing, EvalInteractionNonThrowing -and EvalScriptNonThrowing. These return a tuple of a result and an array of FSharpErrorInfo values. -These represent the errors and warnings. The result part is a Choice<_,_> between an actual -result and an exception.

-

The result part of EvalExpression and EvalExpressionNonThrowing is an optional FSharpValue. -If that value is not present then it just indicates that the expression didn't have a tangible -result that could be represented as a .NET object. This situation shouldn't actually -occur for any normal input expressions, and only for primitives used in libraries.

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
File.WriteAllText("sample.fsx", "let twenty = 'a' + 10.0")
-let result, warnings = fsiSession.EvalScriptNonThrowing "sample.fsx"
-
-// show the result
-match result with
-| Choice1Of2 () -> printfn "checked and executed ok"
-| Choice2Of2 exn -> printfn "execution exception: %s" exn.Message
-
-

Gives:

- - - -
1: 
-
execution exception: Operation could not be completed due to earlier error
-
- - - -
1: 
-2: 
-3: 
-
// show the errors and warnings
-for w in warnings do
-   printfn "Warning %s at %d,%d" w.Message w.StartLineAlternate w.StartColumn
-
-

Gives:

- - - -
1: 
-2: 
-
Warning The type 'float' does not match the type 'char' at 1,19
-Warning The type 'float' does not match the type 'char' at 1,17
-
-

For expressions:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-
let evalExpressionTyped2<'T> text =
-   let res, warnings = fsiSession.EvalExpressionNonThrowing(text)
-   for w in warnings do
-       printfn "Warning %s at %d,%d" w.Message w.StartLineAlternate w.StartColumn
-   match res with
-   | Choice1Of2 (Some value) -> value.ReflectionValue |> unbox<'T>
-   | Choice1Of2 None -> failwith "null or no result"
-   | Choice2Of2 (exn:exn) -> failwith (sprintf "exception %s" exn.Message)
-
-evalExpressionTyped2<int> "42+1"  // gives '43'
-
-

Executing in parallel

-

By default the code passed to EvalExpression is executed immediately. To execute in parallel, submit a computation that starts a task:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-
open System.Threading.Tasks
-
-let sampleLongRunningExpr =
-    """
-async {
-    // The code of what you want to run
-    do System.Threading.Thread.Sleep 5000
-    return 10
-}
-  |> Async.StartAsTask"""
-
-let task1 = evalExpressionTyped<Task<int>>(sampleLongRunningExpr)
-let task2 = evalExpressionTyped<Task<int>>(sampleLongRunningExpr)
-
-

Both computations have now started. You can now fetch the results:

- - - -
1: 
-2: 
-
task1.Result // gives the result after completion (up to 5 seconds)
-task2.Result // gives the result after completion (up to 5 seconds)
-
-

Type checking in the evaluation context

-

Let's assume you have a situation where you would like to typecheck code -in the context of the F# Interactive scripting session. For example, you first -evaluation a declaration:

- - - -
1: 
-
fsiSession.EvalInteraction "let xxx = 1 + 1"
-
-

Now you want to typecheck the partially complete code xxx + xx

- - - -
1: 
-2: 
-3: 
-
let parseResults, checkResults, checkProjectResults =
-    fsiSession.ParseAndCheckInteraction("xxx + xx")
-    |> Async.RunSynchronously
-
-

The parseResults and checkResults have types ParseFileResults and CheckFileResults -explained in Editor. You can, for example, look at the type errors in the code:

- - - -
1: 
-
checkResults.Errors.Length // 1
-
-

The code is checked with respect to the logical type context available in the F# interactive session -based on the declarations executed so far.

-

You can also request declaration list information, tooltip text and symbol resolution:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-
open FSharp.Compiler
-
-// get a tooltip
-checkResults.GetToolTipText(1, 2, "xxx + xx", ["xxx"], FSharpTokenTag.IDENT)
-
-checkResults.GetSymbolUseAtLocation(1, 2, "xxx + xx", ["xxx"]) // symbol xxx
-
-

The 'fsi' object

-

If you want your scripting code to be able to access the 'fsi' object, you should pass in an implementation of this object explicitly. -Normally the one from FSharp.Compiler.Interactive.Settings.dll is used.

- - - -
1: 
-
let fsiConfig2 = FsiEvaluationSession.GetDefaultConfiguration(fsiSession)
-
-

Collectible code generation

-

Evaluating code in using FsiEvaluationSession generates a .NET dynamic assembly and uses other resources. -You can make generated code collectible by passing collectible=true. However code will only -be collected if there are no outstanding object references involving types, for example -FsiValue objects returned by EvalExpression, and you must have disposed the FsiEvaluationSession. -See also Restrictions on Collectible Assemblies.

-

The example below shows the creation of 200 evaluation sessions. Note that collectible=true and -use session = ... are both used.

-

If collectible code is working correctly, -overall resource usage will not increase linearly as the evaluation progresses.

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-
let collectionTest() =
-
-    for i in 1 .. 200 do
-        let defaultArgs = [|"fsi.exe";"--noninteractive";"--nologo";"--gui-"|]
-        use inStream = new StringReader("")
-        use outStream = new StringWriter()
-        use errStream = new StringWriter()
-
-        let fsiConfig = FsiEvaluationSession.GetDefaultConfiguration()
-        use session = FsiEvaluationSession.Create(fsiConfig, defaultArgs, inStream, outStream, errStream, collectible=true)
-
-        session.EvalInteraction (sprintf "type D = { v : int }")
-        let v = session.EvalExpression (sprintf "{ v = 42 * %d }" i)
-        printfn "iteration %d, result = %A" i v.Value.ReflectionValue
-
-// collectionTest()  <-- run the test like this
-
- -
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp

--------------------
type FSharpAttribute =
  member Format : context:FSharpDisplayContext -> string
  member AttributeType : FSharpEntity
  member ConstructorArguments : IList<FSharpType * obj>
  member IsUnresolved : bool
  member NamedArguments : IList<FSharpType * string * bool * obj>
-
namespace FSharp.Compiler.Interactive
-
module Shell

from FSharp.Compiler.Interactive
-
namespace System
-
namespace System.IO
-
namespace System.Text
-
val sbOut : StringBuilder
-
Multiple items
type StringBuilder =
  new : unit -> StringBuilder + 5 overloads
  member Append : value:string -> StringBuilder + 22 overloads
  member AppendFormat : format:string * arg0:obj -> StringBuilder + 7 overloads
  member AppendJoin : separator:string * [<ParamArray>] values:obj[] -> StringBuilder + 5 overloads
  member AppendLine : unit -> StringBuilder + 1 overload
  member Capacity : int with get, set
  member Chars : int -> char with get, set
  member Clear : unit -> StringBuilder
  member CopyTo : sourceIndex:int * destination:Span<char> * count:int -> unit + 1 overload
  member EnsureCapacity : capacity:int -> int
  ...

--------------------
StringBuilder() : StringBuilder
StringBuilder(capacity: int) : StringBuilder
StringBuilder(value: string) : StringBuilder
StringBuilder(value: string, capacity: int) : StringBuilder
StringBuilder(capacity: int, maxCapacity: int) : StringBuilder
StringBuilder(value: string, startIndex: int, length: int, capacity: int) : StringBuilder
-
val sbErr : StringBuilder
-
val inStream : StringReader
-
Multiple items
type StringReader =
  inherit TextReader
  new : s:string -> StringReader
  member Close : unit -> unit
  member Peek : unit -> int
  member Read : unit -> int + 2 overloads
  member ReadAsync : buffer:Memory<char> * ?cancellationToken:CancellationToken -> ValueTask<int> + 1 overload
  member ReadBlock : buffer:Span<char> -> int
  member ReadBlockAsync : buffer:Memory<char> * ?cancellationToken:CancellationToken -> ValueTask<int> + 1 overload
  member ReadLine : unit -> string
  member ReadLineAsync : unit -> Task<string>
  member ReadToEnd : unit -> string
  ...

--------------------
StringReader(s: string) : StringReader
-
val outStream : StringWriter
-
Multiple items
type StringWriter =
  inherit TextWriter
  new : unit -> StringWriter + 3 overloads
  member Close : unit -> unit
  member Encoding : Encoding
  member FlushAsync : unit -> Task
  member GetStringBuilder : unit -> StringBuilder
  member ToString : unit -> string
  member Write : value:char -> unit + 3 overloads
  member WriteAsync : value:char -> Task + 3 overloads
  member WriteLine : buffer:ReadOnlySpan<char> -> unit
  member WriteLineAsync : value:char -> Task + 3 overloads

--------------------
StringWriter() : StringWriter
StringWriter(formatProvider: IFormatProvider) : StringWriter
StringWriter(sb: StringBuilder) : StringWriter
StringWriter(sb: StringBuilder, formatProvider: IFormatProvider) : StringWriter
-
val errStream : StringWriter
-
val argv : string []
-
val allArgs : string []
-
type Array =
  member Clone : unit -> obj
  member CopyTo : array:Array * index:int -> unit + 1 overload
  member GetEnumerator : unit -> IEnumerator
  member GetLength : dimension:int -> int
  member GetLongLength : dimension:int -> int64
  member GetLowerBound : dimension:int -> int
  member GetUpperBound : dimension:int -> int
  member GetValue : [<ParamArray>] indices:int[] -> obj + 7 overloads
  member Initialize : unit -> unit
  member IsFixedSize : bool
  ...
-
val append : array1:'T [] -> array2:'T [] -> 'T []
-
val fsiConfig : FsiEvaluationSessionHostConfig
-
type FsiEvaluationSession =
  interface IDisposable
  member EvalExpression : code:string -> FsiValue option
  member EvalExpressionNonThrowing : code:string -> Choice<FsiValue option,exn> * FSharpErrorInfo []
  member EvalInteraction : code:string * ?cancellationToken:CancellationToken -> unit
  member EvalInteractionNonThrowing : code:string * ?cancellationToken:CancellationToken -> Choice<FsiValue option,exn> * FSharpErrorInfo []
  member EvalScript : filePath:string -> unit
  member EvalScriptNonThrowing : filePath:string -> Choice<unit,exn> * FSharpErrorInfo []
  member FormatValue : reflectionValue:obj * reflectionType:Type -> string
  member GetCompletions : longIdent:string -> seq<string>
  member Interrupt : unit -> unit
  ...
-
static member FsiEvaluationSession.GetDefaultConfiguration : unit -> FsiEvaluationSessionHostConfig
static member FsiEvaluationSession.GetDefaultConfiguration : fsiObj:obj -> FsiEvaluationSessionHostConfig
static member FsiEvaluationSession.GetDefaultConfiguration : fsiObj:obj * useFsiAuxLib:bool -> FsiEvaluationSessionHostConfig
-
val fsiSession : FsiEvaluationSession
-
static member FsiEvaluationSession.Create : fsiConfig:FsiEvaluationSessionHostConfig * argv:string [] * inReader:TextReader * outWriter:TextWriter * errorWriter:TextWriter * ?collectible:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver -> FsiEvaluationSession
-
val evalExpression : text:string -> unit


 Evaluate expression & return the result
-
val text : string
-
member FsiEvaluationSession.EvalExpression : code:string -> FsiValue option
-
union case Option.Some: Value: 'T -> Option<'T>
-
val value : FsiValue
-
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
-
property FsiValue.ReflectionValue: obj with get
-
union case Option.None: Option<'T>
-
val evalExpressionTyped : text:string -> 'T


 Evaluate expression & return the result, strongly typed
-
val unbox : value:obj -> 'T
-
val failwith : message:string -> 'T
-
Multiple items
val int : value:'T -> int (requires member op_Explicit)

--------------------
type int = int32

--------------------
type int<'Measure> = int
-
member FsiEvaluationSession.EvalInteraction : code:string * ?cancellationToken:Threading.CancellationToken -> unit
-
type File =
  static member AppendAllLines : path:string * contents:IEnumerable<string> -> unit + 1 overload
  static member AppendAllLinesAsync : path:string * contents:IEnumerable<string> * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendAllText : path:string * contents:string -> unit + 1 overload
  static member AppendAllTextAsync : path:string * contents:string * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendText : path:string -> StreamWriter
  static member Copy : sourceFileName:string * destFileName:string -> unit + 1 overload
  static member Create : path:string -> FileStream + 2 overloads
  static member CreateText : path:string -> StreamWriter
  static member Decrypt : path:string -> unit
  static member Delete : path:string -> unit
  ...
-
File.WriteAllText(path: string, contents: string) : unit
File.WriteAllText(path: string, contents: string, encoding: Encoding) : unit
-
member FsiEvaluationSession.EvalScript : filePath:string -> unit
-
val result : Choice<unit,exn>
-
val warnings : FSharpErrorInfo []
-
member FsiEvaluationSession.EvalScriptNonThrowing : filePath:string -> Choice<unit,exn> * FSharpErrorInfo []
-
union case Choice.Choice1Of2: 'T1 -> Choice<'T1,'T2>
-
union case Choice.Choice2Of2: 'T2 -> Choice<'T1,'T2>
-
Multiple items
val exn : exn

--------------------
type exn = Exception
-
property Exception.Message: string with get
-
val not : value:bool -> bool
-
val w : FSharpErrorInfo
-
property FSharpErrorInfo.Message: string with get
-
property FSharpErrorInfo.StartLineAlternate: int with get
-
property FSharpErrorInfo.StartColumn: int with get
-
val evalExpressionTyped2 : text:string -> 'T
-
val res : Choice<FsiValue option,exn>
-
member FsiEvaluationSession.EvalExpressionNonThrowing : code:string -> Choice<FsiValue option,exn> * FSharpErrorInfo []
-
val sprintf : format:Printf.StringFormat<'T> -> 'T
-
namespace System.Threading
-
namespace System.Threading.Tasks
-
val sampleLongRunningExpr : string
-
val task1 : Task<int>
-
Multiple items
type Task =
  new : action:Action -> Task + 7 overloads
  member AsyncState : obj
  member ConfigureAwait : continueOnCapturedContext:bool -> ConfiguredTaskAwaitable
  member ContinueWith : continuationAction:Action<Task> -> Task + 19 overloads
  member CreationOptions : TaskCreationOptions
  member Dispose : unit -> unit
  member Exception : AggregateException
  member GetAwaiter : unit -> TaskAwaiter
  member Id : int
  member IsCanceled : bool
  ...

--------------------
type Task<'TResult> =
  inherit Task
  new : function:Func<'TResult> -> Task<'TResult> + 7 overloads
  member ConfigureAwait : continueOnCapturedContext:bool -> ConfiguredTaskAwaitable<'TResult>
  member ContinueWith : continuationAction:Action<Task<'TResult>> -> Task + 19 overloads
  member GetAwaiter : unit -> TaskAwaiter<'TResult>
  member Result : 'TResult
  static member Factory : TaskFactory<'TResult>

--------------------
Task(action: Action) : Task
Task(action: Action, cancellationToken: Threading.CancellationToken) : Task
Task(action: Action, creationOptions: TaskCreationOptions) : Task
Task(action: Action<obj>, state: obj) : Task
Task(action: Action, cancellationToken: Threading.CancellationToken, creationOptions: TaskCreationOptions) : Task
Task(action: Action<obj>, state: obj, cancellationToken: Threading.CancellationToken) : Task
Task(action: Action<obj>, state: obj, creationOptions: TaskCreationOptions) : Task
Task(action: Action<obj>, state: obj, cancellationToken: Threading.CancellationToken, creationOptions: TaskCreationOptions) : Task

--------------------
Task(function: Func<'TResult>) : Task<'TResult>
Task(function: Func<'TResult>, cancellationToken: Threading.CancellationToken) : Task<'TResult>
Task(function: Func<'TResult>, creationOptions: TaskCreationOptions) : Task<'TResult>
Task(function: Func<obj,'TResult>, state: obj) : Task<'TResult>
Task(function: Func<'TResult>, cancellationToken: Threading.CancellationToken, creationOptions: TaskCreationOptions) : Task<'TResult>
Task(function: Func<obj,'TResult>, state: obj, cancellationToken: Threading.CancellationToken) : Task<'TResult>
Task(function: Func<obj,'TResult>, state: obj, creationOptions: TaskCreationOptions) : Task<'TResult>
Task(function: Func<obj,'TResult>, state: obj, cancellationToken: Threading.CancellationToken, creationOptions: TaskCreationOptions) : Task<'TResult>
-
val task2 : Task<int>
-
property Task.Result: int with get
-
val parseResults : FSharpParseFileResults
-
val checkResults : FSharpCheckFileResults
-
val checkProjectResults : FSharpCheckProjectResults
-
member FsiEvaluationSession.ParseAndCheckInteraction : code:string -> Async<FSharpParseFileResults * FSharpCheckFileResults * FSharpCheckProjectResults>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
property FSharpCheckFileResults.Errors: FSharpErrorInfo [] with get
-
property Array.Length: int with get
-
member FSharpCheckFileResults.GetToolTipText : line:int * colAtEndOfNames:int * lineText:string * names:string list * tokenTag:int * ?userOpName:string -> Async<FSharpToolTipText>
-
module FSharpTokenTag

from FSharp.Compiler.SourceCodeServices
-
val IDENT : int
-
member FSharpCheckFileResults.GetSymbolUseAtLocation : line:int * colAtEndOfNames:int * lineText:string * names:string list * ?userOpName:string -> Async<FSharpSymbolUse option>
-
val fsiConfig2 : FsiEvaluationSessionHostConfig
-
val collectionTest : unit -> unit
-
val i : int32
-
val defaultArgs : string []
-
val session : FsiEvaluationSession
-
static member FsiEvaluationSession.Create : fsiConfig:FsiEvaluationSessionHostConfig * argv:string [] * inReader:TextReader * outWriter:TextWriter * errorWriter:TextWriter * ?collectible:bool * ?legacyReferenceResolver:ReferenceResolver.Resolver -> FsiEvaluationSession
-
val v : FsiValue option
-
property Option.Value: FsiValue with get
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/ja/compiler.html b/docs/ja/compiler.html deleted file mode 100644 index 136adfafab..0000000000 --- a/docs/ja/compiler.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - コンパイラの組み込み - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

コンパイラの組み込み

-

このチュートリアルではF#コンパイラをホストする方法を紹介します。

-
-

注意: 以下で使用しているAPIは実験的なもので、 -新しいnugetパッケージの公開に伴って変更される可能性があります。 -注意: F#コンパイラをホストする方法はいくつかあります。 -一番簡単な方法は fsc.exe のプロセスを使って引数を渡す方法です。

-
-
-

まず、F# Interactiveサービスを含むライブラリへの参照を追加します:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-
#r "FSharp.Compiler.Service.dll"
-open FSharp.Compiler.SourceCodeServices
-open System.IO
-
-let scs = FSharpChecker.Create()
-
-

次に、一時ファイルへコンテンツを書き込みます:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-
let fn = Path.GetTempFileName()
-let fn2 = Path.ChangeExtension(fn, ".fs")
-let fn3 = Path.ChangeExtension(fn, ".dll")
-
-File.WriteAllText(fn2, """
-module M
-
-type C() = 
-   member x.P = 1
-
-let x = 3 + 4
-""")
-
-

そしてコンパイラを呼び出します:

- - - -
1: 
-
let errors1, exitCode1 = scs.Compile([| "fsc.exe"; "-o"; fn3; "-a"; fn2 |]) |> Async.RunSynchronously
-
-

エラーが発生した場合は「終了コード」とエラーの配列から原因を特定できます:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-
File.WriteAllText(fn2, """
-module M
-
-let x = 1.0 + "" // a type error
-""")
-
-let errors1b, exitCode1b = scs.Compile([| "fsc.exe"; "-o"; fn3; "-a"; fn2 |]) |> Async.RunSynchronously
-
-if exitCode1b <> 0 then
-    errors1b
-    |> Array.iter (printfn "%A")
-
-

動的アセンブリへのコンパイル

-

コードを動的アセンブリとしてコンパイルすることもできます。 -動的アセンブリはF# Interactiveコードジェネレータでも使用されています。

-

この機能はたとえばファイルシステムが必ずしも利用できないような状況で役に立ちます。

-

出力ファイルの名前を指定する "-o" オプションを指定することは可能ですが、 -実際には出力ファイルがディスク上に書き込まれることはありません。

-

'execute' 引数に 'None' を指定するとアセンブリ用の初期化コードが実行されません。

- - - -
1: 
-2: 
-
let errors2, exitCode2, dynAssembly2 = 
-    scs.CompileToDynamicAssembly([| "-o"; fn3; "-a"; fn2 |], execute=None) |> Async.RunSynchronously
-
-

'Some' を指定するとアセンブリ用の初期化コードが実行されます。

- - - -
1: 
-2: 
-
let errors3, exitCode3, dynAssembly3 = 
-    scs.CompileToDynamicAssembly([| "-o"; fn3; "-a"; fn2 |], Some(stdout,stderr)) |> Async.RunSynchronously
-
- -
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
namespace System
-
namespace System.IO
-
val scs : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
val fn : string
-
type Path =
  static val DirectorySeparatorChar : char
  static val AltDirectorySeparatorChar : char
  static val VolumeSeparatorChar : char
  static val PathSeparator : char
  static val InvalidPathChars : char[]
  static member ChangeExtension : path:string * extension:string -> string
  static member Combine : [<ParamArray>] paths:string[] -> string + 3 overloads
  static member GetDirectoryName : path:string -> string + 1 overload
  static member GetExtension : path:string -> string + 1 overload
  static member GetFileName : path:string -> string + 1 overload
  ...
-
Path.GetTempFileName() : string
-
val fn2 : string
-
Path.ChangeExtension(path: string, extension: string) : string
-
val fn3 : string
-
type File =
  static member AppendAllLines : path:string * contents:IEnumerable<string> -> unit + 1 overload
  static member AppendAllLinesAsync : path:string * contents:IEnumerable<string> * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendAllText : path:string * contents:string -> unit + 1 overload
  static member AppendAllTextAsync : path:string * contents:string * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendText : path:string -> StreamWriter
  static member Copy : sourceFileName:string * destFileName:string -> unit + 1 overload
  static member Create : path:string -> FileStream + 2 overloads
  static member CreateText : path:string -> StreamWriter
  static member Decrypt : path:string -> unit
  static member Delete : path:string -> unit
  ...
-
File.WriteAllText(path: string, contents: string) : unit
File.WriteAllText(path: string, contents: string, encoding: System.Text.Encoding) : unit
-
val errors1 : FSharpErrorInfo []
-
val exitCode1 : int
-
member FSharpChecker.Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
member FSharpChecker.Compile : ast:FSharp.Compiler.SyntaxTree.ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:System.Threading.CancellationToken -> 'T
-
val errors1b : FSharpErrorInfo []
-
val exitCode1b : int
-
module Array

from Microsoft.FSharp.Collections
-
val iter : action:('T -> unit) -> array:'T [] -> unit
-
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
-
val errors2 : FSharpErrorInfo []
-
val exitCode2 : int
-
val dynAssembly2 : System.Reflection.Assembly option
-
member FSharpChecker.CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * System.Reflection.Assembly option>
member FSharpChecker.CompileToDynamicAssembly : ast:FSharp.Compiler.SyntaxTree.ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * System.Reflection.Assembly option>
-
union case Option.None: Option<'T>
-
val errors3 : FSharpErrorInfo []
-
val exitCode3 : int
-
val dynAssembly3 : System.Reflection.Assembly option
-
union case Option.Some: Value: 'T -> Option<'T>
-
val stdout<'T> : TextWriter
-
val stderr<'T> : TextWriter
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/ja/corelib.html b/docs/ja/corelib.html deleted file mode 100644 index 2b795faaa2..0000000000 --- a/docs/ja/corelib.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - - コンパイラサービス: FSharp.Core.dll についてのメモ - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

コンパイラサービス: FSharp.Core.dll についてのメモ

-

あなたのアプリケーションとともに FSharp.Core を配布する

-

FSharp.Compiler.Service.dll を利用するアプリケーションまたはプラグイン・コンポーネントをビルドする際、普通はアプリの一部として FSharp.Core.dll のコピーも含めることになるでしょう。

-

例えば、 HostedCompiler.exe をビルドする場合、普通はあなたの HostedCompiler.exe と同じフォルダに FSharp.Core.dll (例えば 4.3.1.0)を配置します。

-

動的コンパイルや動的実行を行う場合、FSharp.Core.optdata と FSharp.Core.sigdata も含める必要があるかもしれませんが、これらについては下記の指針をご覧ください。

-

あなたのアプリケーションにリダイレクトをバインドする

-

FSharp.Compiler.Service.dll コンポーネントは FSharp.Core 4.3.0.0 に依存しています。通例、あなたのアプリケーションはこれより後のバージョンの FSharp.Core をターゲットにしており、FSharp.Core 4.3.0.0 をあなたのアプリケーションで用いる FSharp.Core.dll の最終バージョンにちゃんと転送させるようにバインド リダイレクトが必要になるでしょう。バインド リダイレクト ファイルは通常ビルドツールによって自動的に生成されます。そうでない場合、下記のようなファイル(あなたのツールが HostedCompiler.exe という名前で、バインド リダイレクト ファイルが HostedCompiler.exe.config という名前の場合)を使うことが出来ます。

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-
<?xml version="1.0" encoding="utf-8" ?>
-<configuration>
-    <runtime>
-      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
-        <dependentAssembly>
-          <assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
-          <bindingRedirect oldVersion="2.0.0.0-4.3.0.0" newVersion="4.3.1.0"/>
-        </dependentAssembly>
-        <dependentAssembly>
-          <assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
-          <bindingRedirect oldVersion="1.0.0.0-1.2.0.0" newVersion="1.2.1.0" />
-        </dependentAssembly>
-      </assemblyBinding>
-    </runtime>
-</configuration>
-
-

どの FSharp.Core と .NET フレームワークがコンパイル時に参照される?

-

FSharp.Combiler.Service コンポーネントは多かれ少なかれ、F#コードを コンパイルするために使われるに過ぎません。特に、コマンドライン引数(あなたのツールを実行するために使われる FSharp.Core や .NET フレームワークとは違います)に明示的に FSharp.Core および/またはフレームワークのアセンブリを参照することが出来ます。

-

特定の FSharp.Core および .NET フレームワーク アセンブリ、またはそのいずれかをターゲットにする場合、 --noframework 引数と適切なコマンドライン引数を使います:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-
[<Literal>]
-let fsharpCorePath =
-    @"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.1.0\FSharp.Core.dll"
-let errors2, exitCode2 =
-  scs.Compile(
-    [| "fsc.exe"; "--noframework";
-       "-r"; fsharpCorePath;
-       "-r"; @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll";
-       "-o"; fn3;
-       "-a"; fn2 |])
-
-

これらのアセンブリが配置されている場所を指定する必要があります。クロスプラットフォームに対応した方法でDLL を配置して、それらをコマンドライン引数に変換する最も簡単な方法は、F# プロジェクトファイルをクラックすることです。 -自分で SDK のパスを処理する代わりに、FSharp.Compiler.Service.dll 用のテストで使用しているようなヘルパー関数も用意されています。

-

スクリプトを処理しているか GetCheckOptionsFromScriptRoot を使っている場合

-

もし SDK 配置先にある FSharp.Core.dll を明示的に参照 していない 場合、または FsiEvaluationSessionGetCheckOptionsFromScriptRoot を使用してスクリプトを処理している場合、以下のいずれかの方法により、暗黙的にFSharp.Core が参照されます:

-
    -
  1. System.Reflection.Assembly.GetEntryAssembly() によって返されるホストアセンブリから静的に参照されたFSharp.Core.dll のバージョン

  2. -
  3. -

    ホストアセンブリに FSharp.Core への静的な参照がない場合、

    -
      -
    • FSharp.Compiler.Service 0.x シリーズでは、FSharp.Core バージョン 4.3.0.0 への参照が付与されます
    • -
    • FSharp.Compiler.Service 1.3.1.x (F# 3.1 シリーズ)では、FSharp.Core バージョン 4.3.1.0 への参照が付与されます
    • -
    • FSharp.Compiler.Service 1.4.0.x (F# 4.0 シリーズ)では、FSharp.Core バージョン 4.4.0.0 への参照が付与されます
    • -
    -
  4. -
-

FSharp.Core.optdata と FSharp.Core.sigdata を含める必要はありますか?

-

もしあなたのコンパイル引数が SDK 配置先にある FSharp.Core.dll を明示的に参照している場合、FSharp.Core.sigdata と FSharp.Core.optdata はその DLL と同じフォルダになければいけません(これらのファイルがインストールされていない場合、F# SDKの インストールに問題があります)。もしコンパイル引数で常に明示的に参照していたなら、FSharp.Core.optdata と FSharp.Core.sigdata はあなたのアプリケーションの一部として含める必要は ありません

-

もしあなたが暗黙的な参照(例えば、上記のスクリプト処理など)に頼っているのなら、これはあなたのツールがアプリケーションの一部として FSharp.Core.dll を参照しているかもしれない、ということです。この場合、FSharp.Core.optdata および FSharp.Core.sigdata が FSharp.Core.dll と同じフォルダに見つからないというエラーが発生するかもしれません。 もしあなたがアプリケーションに含めている FSharp.Core.dll を暗黙的に参照したいのであれば、FSharp.Core.sigdata と FSharp.Core.optdata もアプリケーションに追加する2つのファイルとして追加しましょう。 CombileToDynamicAssembly を使用する場合、この問題によってアセンブリ解決中のスタックオーバーフローも引き起こされるでしょう。

-

動的コンパイルと動的コード実行を行うツール(例: HostedExecution.exe)はしばしば FSharp.Core.dll を暗黙的に参照するようになっています。 -これはつまり通常 FSharp.Core.optdata と FSharp.Core.sigdata を含んでいるということです。

-

要約

-

このデザインノートでは3つのポイントを検討しました:

-
    -
  • どの FSharp.Core.dll があなたのコンパイルツールを実行するのに使われるか
  • -
  • あなたのコンパイルツールを実行するのに使われる FSharp.Core.dll へのバインド リダイレクトを設定する方法
  • -
  • あなたのツールによって実行されるチェック時およびコンパイル時にどの FSharp.Core.dll および/またはフレームワークのアセンブリが参照されるか
  • -
- -
Multiple items
type LiteralAttribute =
  inherit Attribute
  new : unit -> LiteralAttribute

--------------------
new : unit -> LiteralAttribute
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/ja/devnotes.html b/docs/ja/devnotes.html deleted file mode 100644 index f65d5a18e3..0000000000 --- a/docs/ja/devnotes.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - 開発者用メモ - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

開発者用メモ

-

F#コンパイラの修正版クローンではクライアントの編集機能やF#コンパイラの埋め込み、 -F# Interactiveをサービスとして動作させるための機能が追加されています。

-

コンポーネント

-

まず FSharp.Compiler.Service.dll というコンポーネントがあります。 -このコンポーネントにはリファクタリングやその他の編集ツールが完全なF# ASTやパーサ機能を利用できるように -可視性を変更するというマイナーな変更だけが加えられています。 -主な狙いとしては、メインコンパイラの安定版かつドキュメントが備えられたフォークを用意することにより、 -このコンポーネントにある共通コードを様々なツールで共有できるようにすることです。

-

2つ目のコンポーネントはF# Interactiveをサービスとして組み込めるようにするためのもので、 -fsi.exe のソースコードに多数の変更が加えられており、 -EvalExpressionEvalInteraction といった関数が追加されています。

-

このレポジトリは以下の点を除けば 'fsharp' と 同一 です:

-
    -
  • -

    FSharp.Compiler.Service.dll のビルド、特に以下の点に関する変更:

    -
      -
    • アセンブリ名の変更
    • -
    • FSharp.Compiler.Service.dll のみビルドされる

    • -
    • -

      ブートストラッパーやプロトコンパイラを使用しない。 -F#コンパイラがインストール済みであることを想定。

      -
    • -
    -
  • -
  • -

    FAKEを使用するビルドスクリプト。 -すべてのコードのビルドとNuGetパッケージ、ドキュメントの生成、 -NuGetパッケージの配布に必要なファイルの生成などがFAKEによって行われる。 -(F# プロジェクト スキャフォールド に準拠)

    -
  • -
  • -

    新機能追加のためにコンパイラのソースコードを変更。 -また、評価用関数を実装するためにF# Interactiveサービスに対する変更を追加。

    -
  • -
  • F#編集用クライアントで使用されるAPIを改善するためにコンパイラのソースコードを変更。
  • -
  • コンパイラサービスAPIに新機能を追加するためにコンパイラのソースコードを変更。
  • -
-

fsharp/fsharp のレポジトリに言語あるいはコンパイラが追加コミットされた場合、 -それらはこのレポジトリにもマージされるべきで、同時に新しいNuGetパッケージもリリースする必要があります。

-

ビルドとNuGet

-

ビルドの手順は F# プロジェクト スキャフォールド -で推奨されているものに準じます。 -プロジェクトを独自にビルドする場合、以下の手順に従ってください:

- -
1: 
-2: 
-
git clone https://github.com/fsharp/FSharp.Compiler.Service
-cd FSharp.Compiler.Service
-
-

次に、(Windowsであれば) build.cmd または(LinuxやMac OSであれば) build.sh を実行してすべてをビルドします。 -ファイルは bin ディレクトリ内に出力されます。 -ドキュメントやNuGetパッケージもビルドしたい場合には build Release を実行します -(このコマンドはGitHub上のドキュメントを更新しようとしますが、GitHubのレポジトリに適切な権限を持っている場合にのみ有効です)。

-

クライアント

-

このコンポーネントは以下のようなツールで使用されています:

- - - -
- -
-
- Fork me on GitHub - - diff --git a/docs/ja/editor.html b/docs/ja/editor.html deleted file mode 100644 index 3a46042f2b..0000000000 --- a/docs/ja/editor.html +++ /dev/null @@ -1,436 +0,0 @@ - - - - - コンパイラサービス: エディタサービス - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

コンパイラサービス: エディタサービス

-

このチュートリアルはF#コンパイラによって公開されるエディタサービスの -使用方法についてのデモです。 -このAPIにより、Visual StudioやXamarin Studio、EmacsなどのF#エディタ内において、 -自動補完機能やツールチップ表示、引数情報のヘルプ表示、括弧の補完などの機能を -実装することができます -(詳細については fsharpbindings のプロジェクトを参照してください)。 -型無しASTを使用するチュートリアル と同じく、 -今回も FSharpChecker オブジェクトを作成するところから始めます。

-
-

注意: 以下で使用しているAPIは試験的なもので、最新バージョンのnugetパッケージの -公開に伴って変更されることがあります。

-
-

サンプルソースコードの型チェック

-

前回の(型無しASTを使った)チュートリアル と同じく、 -FSharp.Compiler.Service.dll への参照を追加した後に特定の名前空間をオープンし、 -FSharpChecker のインスタンスを作成します:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-
// F#コンパイラAPIを参照
-#r "FSharp.Compiler.Service.dll"
-
-open System
-open FSharp.Compiler.SourceCodeServices
-
-// インタラクティブチェッカーのインスタンスを作成
-let checker = FSharpChecker.Create()
-
-

前回 同様、 -コンパイラに渡されるファイルとしては特定の入力値だけであるという -コンテキストを想定するため、 GetCheckOptionsFromScriptRoot を使います -(この入力値はコンパイラによってスクリプトファイル、 -あるいはスタンドアロンのF#ソースコードとみなされます)。

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-
// サンプルの入力となる複数行文字列
-let input = 
-    """
-open System
-
-let foo() = 
-let msg = String.Concat("Hello"," ","world")
-if true then 
-printfn "%s" msg.
-"""
-// 入力値の分割とファイル名の定義
-let inputLines = input.Split('\n')
-let file = "/home/user/Test.fsx"
-
-let projOptions, _errors1 = checker.GetProjectOptionsFromScript(file, input) |> Async.RunSynchronously
-
-let parsingOptions, _errors2 = checker.GetParsingOptionsFromProjectOptions(projOptions)
-
-

型チェックを実行するには、まず ParseFile を使って -入力値をパースする必要があります。 -このメソッドを使うと 型無しAST にアクセスできるようになります。 -しかし今回は完全な型チェックを実行するため、続けて CheckFileInProject -を呼び出す必要があります。 -このメソッドは ParseFile の結果も必要とするため、 -たいていの場合にはこれら2つのメソッドをセットで呼び出すことになります。

- - - -
1: 
-2: 
-3: 
-4: 
-
// パースを実行
-let parseFileResults =
-    checker.ParseFile(file, input, parsingOptions)
-    |> Async.RunSynchronously
-
-

TypeCheckResults に備えられた興味深い機能の紹介に入る前に、 -サンプル入力に対して型チェッカーを実行する必要があります。 -F#コードにエラーがあった場合も何らかの型チェックの結果が返されます -(ただし間違って「推測された」結果が含まれることがあります)。

- - - -
1: 
-2: 
-3: 
-4: 
-
// 型チェックを実行
-let checkFileAnswer = 
-    checker.CheckFileInProject(parseFileResults, file, 0, input, projOptions) 
-    |> Async.RunSynchronously
-
-

あるいは ParseAndCheckFileInProject を使用すれば1つの操作で両方のチェックを行うことができます:

- - - -
1: 
-2: 
-3: 
-
let parseResults2, checkFileAnswer2 =
-    checker.ParseAndCheckFileInProject(file, 0, input, projOptions)
-    |> Async.RunSynchronously
-
-

この返り値は CheckFileAnswer 型で、この型に機能的に興味深いものが揃えられています...

- - - -
1: 
-2: 
-3: 
-4: 
-
let checkFileResults = 
-    match checkFileAnswer with
-    | FSharpCheckFileAnswer.Succeeded(res) -> res
-    | res -> failwithf "パースが完了していません... (%A)" res
-
-

今回は単に(状況に応じて)「Hello world」と表示するだけの -単純な関数の型をチェックしています。 -最終行では値 msg に対する補完リストを表示することができるように、 -msg. というようにドットを追加している点に注意してください -(今回の場合は文字列型に対する様々なメソッドが期待されます)。

-

型チェックの結果を使用する

-

では TypeCheckResults 型で公開されているAPIをいくつか見ていきましょう。 -一般的に、F#ソースコードエディタサービスの実装に必要な機能は -ほとんどこの型に備えられています。

-

ツールチップの取得

-

ツールチップを取得するには GetToolTipTextAlternate メソッドを使用します。 -このメソッドには行数と文字オフセットを指定します。 -いずれも0から始まる数値です。 -サンプルコードでは3行目(0行目は空白行)、インデックス7にある文字 f から始まる関数 -foo のツールチップを取得しています -(ツールチップは識別子の中であれば任意の位置で機能します)。

-

またこのメソッドにはトークンタグを指定する必要もあります。 -トークンタグは一般的には IDENT を指定して、識別子に対する -ツールチップが取得できるようにします -(あるいは #r "..." を使用している場合にはアセンブリの完全パスを表示させるように -することもできるでしょう)。

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-
// 最後の引数に指定する、IDENTトークンのタグを取得
-open FSharp.Compiler
-
-// 特定の位置におけるツールチップを取得
-let tip = checkFileResults.GetToolTipText(4, 7, inputLines.[1], ["foo"], FSharpTokenTag.Identifier)
-printfn "%A" tip
-
-
-

注意: GetToolTipTextAlternate は古い関数 GetToolTipText に代わるものです。 -GetToolTipText は0から始まる行番号を受け取るようになっていたため、非推奨になりました。

-
-

この関数には位置とトークンの種類の他にも、 -(ソースコードの変更時に役立つように)特定行の現在の内容と、 -現時点における完全修飾された 名前 を表す文字列のリストを指定する必要があります。 -たとえば完全修飾名 System.Random という名前を持った識別子 Random に対する -ツールチップを取得する場合、 Random という文字列が現れる場所の他に、 -["System"; "Random"] という値を指定する必要があります。

-

返り値の型は ToolTipText で、この型には ToolTipElement という -判別共用体が含まれます。 -この共用体は、コンパイラによって返されたツールチップの種類に応じて異なります。

-

自動補完リストの取得

-

次に紹介する TypeCheckResults のメソッドを使用すると、 -特定の位置における自動補完機能を実装できます。 -この機能は任意の識別子上、 -あるいは(特定のスコープ内で利用可能な名前の一覧を取得する場合には)任意のスコープ、 -あるいは特定のオブジェクトにおけるメンバーリストを取得する場合には -. の直後で呼び出すことができます。 -今回は文字列の値 msg に対するメンバーリストを取得することにします。

-

そのためには最終行( printfn "%s" msg. で終わっている行)にある -シンボル . の位置を指定して GetDeclarationListInfo を呼び出します。 -オフセットは1から始まるため、位置は 7, 23 になります。 -また、テキストが変更されていないことを表す関数と、 -現時点において補完する必要がある識別子を指定する必要もあります。

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-9: 
-
// 特定の位置における宣言(自動補完)を取得する
-let decls = 
-    checkFileResults.GetDeclarationListInfo
-      (Some parseFileResults, 7, inputLines.[6], PartialLongName.Empty 23, (fun _ -> []), fun _ -> false)
-      |> Async.RunSynchronously
-
-// 利用可能な項目を表示
-for item in decls.Items do
-    printfn " - %s" item.Name
-
-
-

注意: GetDeclarationListInfo は古い関数 GetDeclarations に代わるものです。 -GetDeclarations は0から始まる行番号を受け取るようになっていたため、非推奨になりました。 -また、将来的には現在の GetDeclarations が削除され、 GetDeclarationListInfo が -GetDeclarations になる予定です。

-
-

コードを実行してみると、 SubstringToUpperToLower といった -文字列に対するいつものメソッドのリストが取得できていることでしょう。 -GetDeclarations の5,6番目の引数( [] および "msg" )には -自動補完用のコンテキストを指定します。 -今回の場合は完全名 msg に対する補完を行いましたが、 -たとえば ["System"; "Collections"]"Generic" というように -完全修飾された名前空間を指定して補完リストを取得することもできます。

-

引数の情報を取得する

-

次に一般的なエディタの機能としては、メソッドのオーバーロードに -関する情報を提供するというものでしょう。 -サンプルコード中では多数のオーバーロードを持った String.Concat を使っています。 -このオーバーロード一覧は GetMethods で取得できます。 -先ほどと同じく、このメソッドには対象とする項目の位置を0基準のオフセットで指定し -(今回は String.Concat 識別子の右側の終端)、 -識別子もやはり指定します -(これにより、コンパイラはソースコードが変更された場合でも最新の情報に追従できます):

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-9: 
-
//String.Concatメソッドのオーバーロードを取得する
-let methods = 
-    checkFileResults.GetMethods(5, 27, inputLines.[4], Some ["String"; "Concat"]) |> Async.RunSynchronously
-
-// 連結された引数リストを表示
-for mi in methods.Methods do
-    [ for p in mi.Parameters -> p.Display ]
-    |> String.concat ", " 
-    |> printfn "%s(%s)" methods.MethodName
-
-

ここでは Display プロパティを使用することで各引数に対する -アノテーションを取得しています。 -このプロパティは arg0: obj あるいは params args: obj[] 、 -str0: string, str1: string といった情報を返します。 -これらの引数を連結した後、メソッド名とメソッドの型情報とともに表示させています。

-

非同期操作と即時操作

-

CheckFileInProject が非同期操作であることを気にされる人もいるかもしれません。 -これはつまり、F#コードの型チェックにはある程度時間がかかることを示唆しています。 -F#コンパイラは型チェックを(自動的に)バックグラウンドで処理を進めているため、 -CheckFileInProject メソッドを呼び出すと非同期操作が返されることになります。

-

また、 CheckFileInProjectIfReady というメソッドもあります。 -このメソッドは、型チェックの操作が即座に開始できない場合、 -つまりプロジェクト内の他のファイルがまだ型チェックされていない場合には -処理が即座に返されます。 -この場合、バックグラウンドワーカーは一定期間他の作業を進めるか、 -FileTypeCheckStateIsDirty イベントが発生するまでは -ファイルに対する型チェックを諦めるか、どちらか選択することになります。

-
-

fsharpbinding プロジェクトには -1つのF#エージェント経由ですべてのリクエストをバックグラウンドワークとして -処理するような、より複雑な具体例も含まれています。 -エディタの機能を実装する方法としてはこちらのほうが適切です。

-
-

まとめ

-

CheckFileAnswer にはチュートリアルで紹介していないような便利なメソッドが -多数揃えられています。 -これらを使用すれば特定の識別子に対する宣言の位置を取得したり、 -付加的な色情報を取得したりすることができます -(F# 3.1では式ビルダーの識別子やクエリ演算子も着色表示されます)。

-

最後に、直接.NET APIを呼び出すことができないようなエディタに対するサポート機能を -実装する場合、ここで紹介した様々な機能を -FSharp.AutoComplete -プロジェクトのコマンドラインインターフェイス経由で呼び出すこともできます。

- -
namespace System
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
val checker : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
val input : string
-
val inputLines : string []
-
String.Split([<ParamArray>] separator: char []) : string []
String.Split(separator: string [], options: StringSplitOptions) : string []
String.Split(separator: string,?options: StringSplitOptions) : string []
String.Split(separator: char [], options: StringSplitOptions) : string []
String.Split(separator: char [], count: int) : string []
String.Split(separator: char,?options: StringSplitOptions) : string []
String.Split(separator: string [], count: int, options: StringSplitOptions) : string []
String.Split(separator: string, count: int,?options: StringSplitOptions) : string []
String.Split(separator: char [], count: int, options: StringSplitOptions) : string []
String.Split(separator: char, count: int,?options: StringSplitOptions) : string []
-
val file : string
-
val projOptions : FSharpProjectOptions
-
val _errors1 : FSharpErrorInfo list
-
member FSharpChecker.GetProjectOptionsFromScript : filename:string * sourceText:FSharp.Compiler.Text.ISourceText * ?previewEnabled:bool * ?loadedTimeStamp:DateTime * ?otherFlags:string [] * ?useFsiAuxLib:bool * ?useSdkRefs:bool * ?assumeDotNetFramework:bool * ?extraProjectInfo:obj * ?optionsStamp:int64 * ?userOpName:string -> Async<FSharpProjectOptions * FSharpErrorInfo list>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
val parsingOptions : FSharpParsingOptions
-
val _errors2 : FSharpErrorInfo list
-
member FSharpChecker.GetParsingOptionsFromProjectOptions : FSharpProjectOptions -> FSharpParsingOptions * FSharpErrorInfo list
-
val parseFileResults : FSharpParseFileResults
-
member FSharpChecker.ParseFile : filename:string * sourceText:FSharp.Compiler.Text.ISourceText * options:FSharpParsingOptions * ?userOpName:string -> Async<FSharpParseFileResults>
-
val checkFileAnswer : FSharpCheckFileAnswer
-
member FSharpChecker.CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:FSharp.Compiler.Text.ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
-
val parseResults2 : FSharpParseFileResults
-
val checkFileAnswer2 : FSharpCheckFileAnswer
-
member FSharpChecker.ParseAndCheckFileInProject : filename:string * fileversion:int * sourceText:FSharp.Compiler.Text.ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileAnswer>
-
val checkFileResults : FSharpCheckFileResults
-
type FSharpCheckFileAnswer =
  | Aborted
  | Succeeded of FSharpCheckFileResults
-
union case FSharpCheckFileAnswer.Succeeded: FSharpCheckFileResults -> FSharpCheckFileAnswer
-
val res : FSharpCheckFileResults
-
val res : FSharpCheckFileAnswer
-
val failwithf : format:Printf.StringFormat<'T,'Result> -> 'T
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp

--------------------
type FSharpAttribute =
  member Format : context:FSharpDisplayContext -> string
  member AttributeType : FSharpEntity
  member ConstructorArguments : IList<FSharpType * obj>
  member IsUnresolved : bool
  member NamedArguments : IList<FSharpType * string * bool * obj>
-
val tip : Async<FSharpToolTipText>
-
member FSharpCheckFileResults.GetToolTipText : line:int * colAtEndOfNames:int * lineText:string * names:string list * tokenTag:int * ?userOpName:string -> Async<FSharpToolTipText>
-
module FSharpTokenTag

from FSharp.Compiler.SourceCodeServices
-
val Identifier : int
-
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
-
val decls : FSharpDeclarationListInfo
-
member FSharpCheckFileResults.GetDeclarationListInfo : ParsedFileResultsOpt:FSharpParseFileResults option * line:int * lineText:string * partialName:PartialLongName * ?getAllEntities:(unit -> AssemblySymbol list) * ?hasTextChangedSinceLastTypecheck:(obj * Range.range -> bool) * ?userOpName:string -> Async<FSharpDeclarationListInfo>
-
union case Option.Some: Value: 'T -> Option<'T>
-
type PartialLongName =
  { QualifyingIdents: string list
    PartialIdent: string
    EndColumn: int
    LastDotPos: int option }
    static member Empty : endColumn:int -> PartialLongName
-
static member PartialLongName.Empty : endColumn:int -> PartialLongName
-
val item : FSharpDeclarationListItem
-
property FSharpDeclarationListInfo.Items: FSharpDeclarationListItem [] with get
-
property FSharpDeclarationListItem.Name: string with get
-
val methods : FSharpMethodGroup
-
member FSharpCheckFileResults.GetMethods : line:int * colAtEndOfNames:int * lineText:string * names:string list option * ?userOpName:string -> Async<FSharpMethodGroup>
-
val mi : FSharpMethodGroupItem
-
property FSharpMethodGroup.Methods: FSharpMethodGroupItem [] with get
-
val p : FSharpMethodGroupItemParameter
-
property FSharpMethodGroupItem.Parameters: FSharpMethodGroupItemParameter [] with get
-
property FSharpMethodGroupItemParameter.Display: string with get
-
Multiple items
type String =
  new : value:char[] -> string + 8 overloads
  member Chars : int -> char
  member Clone : unit -> obj
  member CompareTo : value:obj -> int + 1 overload
  member Contains : value:string -> bool + 3 overloads
  member CopyTo : sourceIndex:int * destination:char[] * destinationIndex:int * count:int -> unit
  member EndsWith : value:string -> bool + 3 overloads
  member Equals : obj:obj -> bool + 2 overloads
  member GetEnumerator : unit -> CharEnumerator
  member GetHashCode : unit -> int + 1 overload
  ...

--------------------
String(value: char []) : String
String(value: nativeptr<char>) : String
String(value: nativeptr<sbyte>) : String
String(value: ReadOnlySpan<char>) : String
String(c: char, count: int) : String
String(value: char [], startIndex: int, length: int) : String
String(value: nativeptr<char>, startIndex: int, length: int) : String
String(value: nativeptr<sbyte>, startIndex: int, length: int) : String
String(value: nativeptr<sbyte>, startIndex: int, length: int, enc: Text.Encoding) : String
-
val concat : sep:string -> strings:seq<string> -> string
-
property FSharpMethodGroup.MethodName: string with get
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/ja/filesystem.html b/docs/ja/filesystem.html deleted file mode 100644 index 5bc18269a2..0000000000 --- a/docs/ja/filesystem.html +++ /dev/null @@ -1,425 +0,0 @@ - - - - - コンパイラサービス: ファイルシステム仮想化 - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

コンパイラサービス: ファイルシステム仮想化

-

FSharp.Compiler.Service にはファイルシステムを表すグローバル変数があります。 -この変数を設定するこにより、ファイルシステムが利用できない状況でも -コンパイラをホストすることができるようになります。

-
-

注意: 以下で使用しているAPIは実験的なもので、 -新しいnugetパッケージの公開に伴って変更される可能性があります。

-
-

FileSystemの設定

-

以下の例ではディスクからの読み取りを行うような実装をファイルシステムに設定しています:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-21: 
-22: 
-23: 
-24: 
-25: 
-26: 
-27: 
-28: 
-29: 
-30: 
-31: 
-32: 
-33: 
-34: 
-35: 
-36: 
-37: 
-38: 
-39: 
-40: 
-41: 
-42: 
-43: 
-44: 
-45: 
-46: 
-47: 
-48: 
-49: 
-50: 
-51: 
-52: 
-53: 
-54: 
-55: 
-56: 
-57: 
-58: 
-59: 
-60: 
-61: 
-62: 
-63: 
-64: 
-65: 
-66: 
-67: 
-68: 
-69: 
-70: 
-71: 
-72: 
-73: 
-74: 
-75: 
-76: 
-
#r "FSharp.Compiler.Service.dll"
-open System
-open System.IO
-open System.Collections.Generic
-open System.Text
-open FSharp.Compiler.AbstractIL.Internal.Library
-
-let defaultFileSystem = Shim.FileSystem
-
-let fileName1 = @"c:\mycode\test1.fs" // 注意: 実際には存在しないファイルのパス
-let fileName2 = @"c:\mycode\test2.fs" // 注意: 実際には存在しないファイルのパス
-
-type MyFileSystem() = 
-    let file1 = """
-module File1
-
-let A = 1"""
-    let file2 = """
-module File2
-let B = File1.A + File1.A"""
-    let files = dict [(fileName1, file1); (fileName2, file2)]
-
-    interface IFileSystem with
-        // 読み取りおよび書き込み用にファイルをオープンする機能を実装
-        member __.FileStreamReadShim(fileName) = 
-            match files.TryGetValue fileName with
-            | true, text -> new MemoryStream(Encoding.UTF8.GetBytes(text)) :> Stream
-            | _ -> defaultFileSystem.FileStreamReadShim(fileName)
-
-        member __.FileStreamCreateShim(fileName) = 
-            defaultFileSystem.FileStreamCreateShim(fileName)
-
-        member __.IsStableFileHeuristic(fileName) = 
-            defaultFileSystem.IsStableFileHeuristic(fileName)
-
-        member __.FileStreamWriteExistingShim(fileName) = 
-            defaultFileSystem.FileStreamWriteExistingShim(fileName)
-
-        member __.ReadAllBytesShim(fileName) = 
-            match files.TryGetValue fileName with
-            | true, text -> Encoding.UTF8.GetBytes(text)
-            | _ -> defaultFileSystem.ReadAllBytesShim(fileName)
-
-        // 一時パスおよびファイルのタイムスタンプに関連する機能を実装
-        member __.GetTempPathShim() = 
-            defaultFileSystem.GetTempPathShim()
-
-        member __.GetLastWriteTimeShim(fileName) = 
-            defaultFileSystem.GetLastWriteTimeShim(fileName)
-
-        member __.GetFullPathShim(fileName) = 
-            defaultFileSystem.GetFullPathShim(fileName)
-
-        member __.IsInvalidPathShim(fileName) = 
-            defaultFileSystem.IsInvalidPathShim(fileName)
-
-        member __.IsPathRootedShim(fileName) = 
-            defaultFileSystem.IsPathRootedShim(fileName)
-
-        // ファイルの存在確認および削除に関連する機能を実装
-        member __.SafeExists(fileName) = 
-            files.ContainsKey(fileName) || defaultFileSystem.SafeExists(fileName)
-
-        member __.FileDelete(fileName) = 
-            defaultFileSystem.FileDelete(fileName)
-
-        // アセンブリのロードに関連する機能を実装。
-        // 型プロバイダやF# Interactiveで使用される。
-        member __.AssemblyLoadFrom(fileName) = 
-            defaultFileSystem.AssemblyLoadFrom fileName
-
-        member __.AssemblyLoad(assemblyName) = 
-            defaultFileSystem.AssemblyLoad assemblyName 
-
-let myFileSystem = MyFileSystem()
-Shim.FileSystem <- MyFileSystem() 
-
-

FileSystemによるコンパイルの実行

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-21: 
-22: 
-23: 
-24: 
-25: 
-26: 
-27: 
-28: 
-29: 
-30: 
-31: 
-32: 
-33: 
-34: 
-35: 
-36: 
-37: 
-38: 
-39: 
-40: 
-41: 
-42: 
-
open FSharp.Compiler.SourceCodeServices
-
-let checker = FSharpChecker.Create()
-let projectOptions = 
-    let allFlags = 
-        [| yield "--simpleresolution"; 
-           yield "--noframework"; 
-           yield "--debug:full"; 
-           yield "--define:DEBUG"; 
-           yield "--optimize-"; 
-           yield "--doc:test.xml"; 
-           yield "--warn:3"; 
-           yield "--fullpaths"; 
-           yield "--flaterrors"; 
-           yield "--target:library"; 
-           let references =
-             [ @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll"; 
-               @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll"; 
-               @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll"; 
-               @"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll"]
-           for r in references do 
-                 yield "-r:" + r |]
- 
-    { ProjectFileName = @"c:\mycode\compilation.fsproj" // 現在のディレクトリで一意な名前を指定
-      ProjectId = None
-      SourceFiles = [| fileName1; fileName2 |]
-      OriginalLoadReferences = []
-      ExtraProjectInfo=None
-      Stamp = None
-      OtherOptions = allFlags 
-      ReferencedProjects=[| |]
-      IsIncompleteTypeCheckEnvironment = false
-      UseScriptResolutionRules = true 
-      LoadTime = System.DateTime.Now // 'Now' を指定して強制的に再読込させている点に注意
-      UnresolvedReferences = None }
-
-let results = checker.ParseAndCheckProject(projectOptions) |> Async.RunSynchronously
-
-results.Errors
-results.AssemblySignature.Entities.Count //2
-results.AssemblySignature.Entities.[0].MembersFunctionsAndValues.Count //1
-results.AssemblySignature.Entities.[0].MembersFunctionsAndValues.[0].DisplayName // "B"
-
-

まとめ

-

このチュートリアルでは FSharp.Compiler.Service コンポーネントで使用される -ファイルシステムに注目して、グローバルな設定を変更する方法について紹介しました。

-

このチュートリアルの執筆時点では、以下に列挙したSystem.IOの操作に対しては -仮想化されたファイルシステムAPIが用意されない予定になっています。 -将来のバージョンのコンパイラサービスではこれらのAPIが追加されるかもしれません。

-
    -
  • Path.Combine
  • -
  • Path.DirectorySeparatorChar
  • -
  • Path.GetDirectoryName
  • -
  • Path.GetFileName
  • -
  • Path.GetFileNameWithoutExtension
  • -
  • Path.HasExtension
  • -
  • Path.GetRandomFileName (アセンブリ内にコンパイル済みwin32リソースを生成する場合にのみ使用される)
  • -
-

注意: SourceCodeServices API内の一部の操作では、 -引数にファイルの内容だけでなくファイル名を指定する必要があります。 -これらのAPIにおいて、ファイル名はエラーの報告のためだけに使用されます。

-

注意: 型プロバイダーコンポーネントは仮想化されたファイルシステムを使用しません。

-

注意: コンパイラサービスは --simpleresolution が指定されていない場合、 -MSBuildを使ってアセンブリの解決を試みることがあります。 -FileSystem APIを使用する場合、通常はコンパイラへのフラグとして ---simpleresolution を指定することになります。 -それと同時に --noframework を指定します。 -.NETアセンブリに対するすべての参照を明示的に指定する必要があるでしょう。

- -
namespace System
-
namespace System.IO
-
namespace System.Collections
-
namespace System.Collections.Generic
-
namespace System.Text
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.AbstractIL
-
namespace FSharp.Compiler.AbstractIL.Internal
-
module Library

from FSharp.Compiler.AbstractIL.Internal
-
val defaultFileSystem : IFileSystem
-
module Shim

from FSharp.Compiler.AbstractIL.Internal.Library
-
val mutable FileSystem : IFileSystem
-
val fileName1 : string
-
val fileName2 : string
-
Multiple items
type MyFileSystem =
  interface IFileSystem
  new : unit -> MyFileSystem

--------------------
new : unit -> MyFileSystem
-
val file1 : string
-
val file2 : string
-
val files : IDictionary<string,string>
-
val dict : keyValuePairs:seq<'Key * 'Value> -> IDictionary<'Key,'Value> (requires equality)
-
type IFileSystem =
  interface
    abstract member AssemblyLoad : assemblyName:AssemblyName -> Assembly
    abstract member AssemblyLoadFrom : fileName:string -> Assembly
    abstract member FileDelete : fileName:string -> unit
    abstract member FileStreamCreateShim : fileName:string -> Stream
    abstract member FileStreamReadShim : fileName:string -> Stream
    abstract member FileStreamWriteExistingShim : fileName:string -> Stream
    abstract member GetFullPathShim : fileName:string -> string
    abstract member GetLastWriteTimeShim : fileName:string -> DateTime
    abstract member GetTempPathShim : unit -> string
    abstract member IsInvalidPathShim : filename:string -> bool
    ...
  end
-
val fileName : string
-
IDictionary.TryGetValue(key: string, value: byref<string>) : bool
-
val text : string
-
Multiple items
type MemoryStream =
  inherit Stream
  new : unit -> MemoryStream + 6 overloads
  member CanRead : bool
  member CanSeek : bool
  member CanWrite : bool
  member Capacity : int with get, set
  member CopyTo : destination:Stream * bufferSize:int -> unit
  member CopyToAsync : destination:Stream * bufferSize:int * cancellationToken:CancellationToken -> Task
  member Flush : unit -> unit
  member FlushAsync : cancellationToken:CancellationToken -> Task
  member GetBuffer : unit -> byte[]
  ...

--------------------
MemoryStream() : MemoryStream
MemoryStream(capacity: int) : MemoryStream
MemoryStream(buffer: byte []) : MemoryStream
MemoryStream(buffer: byte [], writable: bool) : MemoryStream
MemoryStream(buffer: byte [], index: int, count: int) : MemoryStream
MemoryStream(buffer: byte [], index: int, count: int, writable: bool) : MemoryStream
MemoryStream(buffer: byte [], index: int, count: int, writable: bool, publiclyVisible: bool) : MemoryStream
-
type Encoding =
  member BodyName : string
  member Clone : unit -> obj
  member CodePage : int
  member DecoderFallback : DecoderFallback with get, set
  member EncoderFallback : EncoderFallback with get, set
  member EncodingName : string
  member Equals : value:obj -> bool
  member GetByteCount : chars:char[] -> int + 5 overloads
  member GetBytes : chars:char[] -> byte[] + 7 overloads
  member GetCharCount : bytes:byte[] -> int + 3 overloads
  ...
-
property Encoding.UTF8: Encoding with get
-
Encoding.GetBytes(s: string) : byte []
Encoding.GetBytes(chars: char []) : byte []
Encoding.GetBytes(chars: ReadOnlySpan<char>, bytes: Span<byte>) : int
Encoding.GetBytes(s: string, index: int, count: int) : byte []
Encoding.GetBytes(chars: char [], index: int, count: int) : byte []
Encoding.GetBytes(chars: nativeptr<char>, charCount: int, bytes: nativeptr<byte>, byteCount: int) : int
Encoding.GetBytes(s: string, charIndex: int, charCount: int, bytes: byte [], byteIndex: int) : int
Encoding.GetBytes(chars: char [], charIndex: int, charCount: int, bytes: byte [], byteIndex: int) : int
-
type Stream =
  inherit MarshalByRefObject
  member BeginRead : buffer:byte[] * offset:int * count:int * callback:AsyncCallback * state:obj -> IAsyncResult
  member BeginWrite : buffer:byte[] * offset:int * count:int * callback:AsyncCallback * state:obj -> IAsyncResult
  member CanRead : bool
  member CanSeek : bool
  member CanTimeout : bool
  member CanWrite : bool
  member Close : unit -> unit
  member CopyTo : destination:Stream -> unit + 1 overload
  member CopyToAsync : destination:Stream -> Task + 3 overloads
  member Dispose : unit -> unit
  ...
-
abstract member IFileSystem.FileStreamReadShim : fileName:string -> Stream
-
val __ : MyFileSystem
-
abstract member IFileSystem.FileStreamCreateShim : fileName:string -> Stream
-
abstract member IFileSystem.IsStableFileHeuristic : fileName:string -> bool
-
abstract member IFileSystem.FileStreamWriteExistingShim : fileName:string -> Stream
-
abstract member IFileSystem.ReadAllBytesShim : fileName:string -> byte []
-
abstract member IFileSystem.GetTempPathShim : unit -> string
-
abstract member IFileSystem.GetLastWriteTimeShim : fileName:string -> DateTime
-
abstract member IFileSystem.GetFullPathShim : fileName:string -> string
-
abstract member IFileSystem.IsInvalidPathShim : filename:string -> bool
-
abstract member IFileSystem.IsPathRootedShim : path:string -> bool
-
IDictionary.ContainsKey(key: string) : bool
-
abstract member IFileSystem.SafeExists : fileName:string -> bool
-
abstract member IFileSystem.FileDelete : fileName:string -> unit
-
abstract member IFileSystem.AssemblyLoadFrom : fileName:string -> Reflection.Assembly
-
val assemblyName : Reflection.AssemblyName
-
abstract member IFileSystem.AssemblyLoad : assemblyName:Reflection.AssemblyName -> Reflection.Assembly
-
val myFileSystem : MyFileSystem
-
namespace FSharp.Compiler.SourceCodeServices
-
val checker : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
val projectOptions : FSharpProjectOptions
-
val allFlags : string []
-
val references : string list
-
val r : string
-
union case Option.None: Option<'T>
-
Multiple items
type DateTime =
  struct
    new : ticks:int64 -> DateTime + 10 overloads
    member Add : value:TimeSpan -> DateTime
    member AddDays : value:float -> DateTime
    member AddHours : value:float -> DateTime
    member AddMilliseconds : value:float -> DateTime
    member AddMinutes : value:float -> DateTime
    member AddMonths : months:int -> DateTime
    member AddSeconds : value:float -> DateTime
    member AddTicks : value:int64 -> DateTime
    member AddYears : value:int -> DateTime
    ...
  end

--------------------
DateTime ()
   (+0 other overloads)
DateTime(ticks: int64) : DateTime
   (+0 other overloads)
DateTime(ticks: int64, kind: DateTimeKind) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int, calendar: Globalization.Calendar) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, kind: DateTimeKind) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, calendar: Globalization.Calendar) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int) : DateTime
   (+0 other overloads)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, kind: DateTimeKind) : DateTime
   (+0 other overloads)
-
property DateTime.Now: DateTime with get
-
val results : FSharpCheckProjectResults
-
member FSharpChecker.ParseAndCheckProject : options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpCheckProjectResults>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
property FSharpCheckProjectResults.Errors: FSharpErrorInfo [] with get
-
property FSharpCheckProjectResults.AssemblySignature: FSharpAssemblySignature with get
-
property FSharpAssemblySignature.Entities: IList<FSharpEntity> with get
-
property ICollection.Count: int with get
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/ja/index.html b/docs/ja/index.html deleted file mode 100644 index 51e9b71433..0000000000 --- a/docs/ja/index.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - F# コンパイラサービス - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

F# コンパイラサービス

-

F# コンパイラサービスパッケージはF# コンパイラのソースコードから派生したコンポーネントです。 -このソースコードにはF# 言語バインディングを実装するための機能や、 -コンパイラやリファクタリングツールを元にしたツールを作成するための機能が追加されています。 -また、パッケージには自身のアプリケーションにF# スクリプトを埋め込む際に利用できるような -F# インタラクティブサービスも含まれています。

-
-
-
-
- F# コンパイラサービスパッケージは NuGet経由でインストールできます: -
PM> Install-Package FSharp.Compiler.Service
-
-
-
-
-

利用可能なサービス

-

プロジェクトには現在以下のサービスがあり、いずれもテストされ、 -このページから参照可能なドキュメントがあります。 -ライブラリには他にも使用可能な公開APIがありますが、 -ここではドキュメント化されていません。

-
    -
  • -

    F# 言語トークナイザ - F#ソースコードをトークンのストリームへと変換します。 -この機能はソースコードを色つき表示したり、基本的なツールを作成するような場合に有効です。 -ネストされたコメントや文字列なども適切に処理できます。

    -
  • -
  • -

    型無しASTの処理 - この機能を使うことで型無し抽象構文木(AST: abstract syntax tree)にアクセスできます。 -型無しASTとは型情報を含まない解析済みのF#の文法を表すもので、 -コードフォーマットやその他様々な単純処理に利用できます。

    -
  • -
  • -

    エディタ (IDE) サービスの使用 - 自動補完やツールチップ、 -引数の情報などを表示するための機能があります。 -この機能を使うと、F#サポート機能をエディタに追加したり、F#コードから -何らかの型情報を取得したりすることができるようになります。

    -
  • -
  • -

    シグネチャや型、解決済みのシンボルの処理 - -解決済みのシンボルや推測された型の表現、アセンブリ全体のシグネチャなどを -型のチェック時に返すような多数のサービスがあります。

    -
  • -
  • -

    複数プロジェクトやプロジェクト全体の処理 - -すべてのプロジェクトに対するチェックを実行することにより、 -プロジェクト全体の解析結果を使って[すべての参照の検索] のような -機能を実現できます。

    -
  • -
  • -

    F# Interactive のホスティング - 自身の.NETコードから -F# Interactiveを.NETライブラリとして呼び出すことができるようになります。 -このAPIを使用すると、自身のプロジェクト内でF#をスクリプト言語として -埋め込むことができるようになります。

    -
  • -
  • -

    F#コンパイラのホスティング - F# コンパイラを -呼び出すコードを組み込むことができます。

    -
  • -
  • -

    ファイルシステムAPI - FSharp.Compiler.Service コンポーネントには -ファイルシステムを表すグローバル変数が定義されています。 -この変数を設定することによって、ファイルシステムが使用できない状況であっても -コンパイラをホストすることができるようになります。

    -
  • -
-
-

注釈: FSharp.Compiler.Service.dll には既存のものと重複する機能が多数あるため、 -将来的にはもっときちんとした形に変更されます。 -そのため、これらのサービスを使用するAPIには破壊的変更が加えられる可能性があります。

-
-

貢献および著作権について

-

このプロジェクトは fsharp/fsharp からフォークしたもので、 -そこへさらにエディタやF#用ツール、F# Interactiveの組み込みに必要となる機能を -追加したものです。

-

F# ソースコードの著作権はMicrosoft Corporationおよび貢献者に、 -拡張機能の著作権は Dave Thomas, Anh-Dung Phan, Tomas Petricek および -その他の貢献者にあります。 -ソースコードは MIT ライセンス の元に公開されています。

- - -
- -
-
- Fork me on GitHub - - diff --git a/docs/ja/interactive.html b/docs/ja/interactive.html deleted file mode 100644 index 5588c53b97..0000000000 --- a/docs/ja/interactive.html +++ /dev/null @@ -1,547 +0,0 @@ - - - - - インタラクティブサービス: F# Interactiveの組み込み - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

インタラクティブサービス: F# Interactiveの組み込み

-

このチュートリアルでは、独自のアプリケーションに -F# Interactiveを組み込む方法について紹介します。 -F# Interactiveは対話式のスクリプティング環境で、 -F#コードを高度に最適化されたILコードへとコンパイルしつつ、 -それを即座に実行することができます。 -F# Interactiveサービスを使用すると、独自のアプリケーションに -F#の評価機能を追加できます。

-
-

注意: F# Interactiveは様々な方法で組み込むことができます。 -最も簡単な方法は fsi.exe プロセスとの間で標準入出力経由でやりとりする方法です。 -このチュートリアルではF# Interactiveの機能を.NET APIで -直接呼び出す方法について紹介します。 -ただし入力用のコントロールを備えていない場合、別プロセスでF# Interactiveを -起動するのはよい方法だといえます。 -理由の1つとしては StackOverflowException を処理する方法がないため、 -出来の悪いスクリプトによってはホストプロセスが停止させられてしまう -場合があるからです。 -.NET APIを通じてF# Interactiveを呼び出すとしても、 --shadowcopyreferences -オプションは無視されることを覚えておきましょう。 -詳細な議論については、このスレッド -に目を通してみてください。 -注意: もしFSharp.Core.dll が見つからないというエラーが出て FsiEvaluationSession.Create -に失敗した場合、 FSharp.Core.sigdataFSharp.Core.optdata というファイルを追加してください。 -詳しい内容はこちら -にあります。

-
-

しかしそれでもF# InteractiveサービスにはF# Interactiveを実行ファイルに埋め込んで -実行出来る(そしてアプリケーションの各機能とやりとり出来る)、あるいは -機能限定されたF#コード(たとえば独自のDSLによって生成されたコード)だけを -実行させることが出来るという便利さがあります。

-

F# Interactiveの開始

-

まずF# Interactiveサービスを含むライブラリへの参照を追加します:

- - - -
1: 
-2: 
-3: 
-
#r "FSharp.Compiler.Service.dll"
-open FSharp.Compiler.SourceCodeServices
-open FSharp.Compiler.Interactive.Shell
-
-

F# Interactiveとやりとりするには、入出力を表すストリームを作成する必要があります。 -これらのストリームを使用することで、 -いくつかのF#コードに対する評価結果を後から出力することができます:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-
open System
-open System.IO
-open System.Text
-
-// 入出力のストリームを初期化
-let sbOut = new StringBuilder()
-let sbErr = new StringBuilder()
-let inStream = new StringReader("")
-let outStream = new StringWriter(sbOut)
-let errStream = new StringWriter(sbErr)
-
-// コマンドライン引数を組み立てて、FSIセッションを開始する
-let argv = [| "C:\\fsi.exe" |]
-let allArgs = Array.append argv [|"--noninteractive"|]
-
-let fsiConfig = FsiEvaluationSession.GetDefaultConfiguration()
-let fsiSession = FsiEvaluationSession.Create(fsiConfig, allArgs, inStream, outStream, errStream)  
-
-

コードの評価および実行

-

F# Interactiveサービスにはコードを評価するためのメソッドがいくつか用意されています。 -最初の1つは EvalExpression で、式を評価してその結果を返します。 -結果には戻り値が( obj として)含まれる他、値に対して静的に推論された型も含まれます:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-
/// 式を評価して結果を返す
-let evalExpression text =
-  match fsiSession.EvalExpression(text) with
-  | Some value -> printfn "%A" value.ReflectionValue
-  | None -> printfn "結果が得られませんでした!"
-
-

これは引数に文字列を取り、それをF#コードとして評価(つまり実行)します。

- - - -
1: 
-
evalExpression "42+1" // '43' を表示する
-
-

これは以下のように強く型付けされた方法で使うことができます:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
/// 式を評価して、強く型付けされた結果を返す
-let evalExpressionTyped<'T> (text) =
-    match fsiSession.EvalExpression(text) with
-    | Some value -> value.ReflectionValue |> unbox<'T>
-    | None -> failwith "結果が得られませんでした!"
-
-evalExpressionTyped<int> "42+1"  // '43' になる
-
-

EvalInteraction メソッドは画面出力機能や宣言、 -F#の式としては不正なものの、F# Interactiveコンソールには入力できるようなものなど、 -副作用を伴う命令を評価する場合に使用できます。 -たとえば #time "on" (あるいはその他のディレクティブ)や open System 、 -その他の宣言やトップレベルステートメントなどが該当します。 -指定するコードの終端に ;; を入力する必要はありません。 -実行したいコードだけを入力します:

- - - -
1: 
-
fsiSession.EvalInteraction "printfn \"bye\""
-
-

EvalScript メソッドを使用すると、完全な .fsx スクリプトを評価することができます。

- - - -
1: 
-2: 
-
File.WriteAllText("sample.fsx", "let twenty = 10 + 10")
-fsiSession.EvalScript "sample.fsx"
-
-

例外処理

-

コードに型チェックの警告やエラーがあった場合、または評価して例外で失敗した場合、 -EvalExpressionEvalInteraction そして EvalScript ではあまりうまく処理されません。 -これらのケースでは、 EvalExpressionNonThrowingEvalInteractionNonThrowing -そして EvalScriptNonThrowing を使うことが出来ます。 -これらは結果と FSharpErrorInfo 値の配列の組を返します。 -これらはエラーと警告を表します。結果の部分は実際の結果と例外のいずれかを表す -Choice<_,_> です。

-

EvalExpression および EvalExpressionNonThrowing の結果部分は -オプションの FSharpValue 値です。 -その値が存在しない場合、式が .NET オブジェクトとして表現できる具体的な結果を -持っていなかったということを指し示しています。 -この状況は実際には入力されたどんな通常の式に対しても発生すべきではなく、 -ライブラリ内で使われるプリミティブ値に対してのみ発生すべきです。

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
File.WriteAllText("sample.fsx", "let twenty = 'a' + 10.0")
-let result, warnings = fsiSession.EvalScriptNonThrowing "sample.fsx"
-
-// 結果を表示する
-match result with 
-| Choice1Of2 () -> printfn "チェックと実行はOKでした"
-| Choice2Of2 exn -> printfn "実行例外: %s" exn.Message
-
-

は次のようになります:

- - - -
1: 
-
実行例外: Operation could not be completed due to earlier error
-
- - - -
1: 
-2: 
-3: 
-
// エラーと警告を表示する
-for w in warnings do 
-   printfn "警告 %s 場所 %d,%d" w.Message w.StartLineAlternate w.StartColumn
-
-

は次のようになります:

- - - -
1: 
-2: 
-
警告 The type 'float' does not match the type 'char' 場所 1,19
-警告 The type 'float' does not match the type 'char' 場所 1,17
-
-

式に対しては:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-
let evalExpressionTyped2<'T> text =
-   let res, warnings = fsiSession.EvalExpressionNonThrowing(text)
-   for w in warnings do 
-       printfn "警告 %s 場所 %d,%d" w.Message w.StartLineAlternate w.StartColumn 
-   match res with 
-   | Choice1Of2 (Some value) -> value.ReflectionValue |> unbox<'T>
-   | Choice1Of2 None -> failwith "null または結果がありません"
-   | Choice2Of2 (exn:exn) -> failwith (sprintf "例外 %s" exn.Message)
-
-evalExpressionTyped2<int> "42+1"  // '43' になる
-
-

並列実行

-

デフォルトでは EvalExpression に渡したコードは即時実行されます。 -並列に実行するために、タスクを開始する計算を投入します:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-
open System.Threading.Tasks
-
-let sampleLongRunningExpr = 
-    """
-async { 
-    // 実行したいコード
-    do System.Threading.Thread.Sleep 5000
-    return 10 
-}
-  |> Async.StartAsTask"""
-
-let task1 = evalExpressionTyped<Task<int>>(sampleLongRunningExpr)  
-let task2 = evalExpressionTyped<Task<int>>(sampleLongRunningExpr)
-
-

両方の計算がいま開始しました。結果を取得することが出来ます:

- - - -
1: 
-2: 
-
task1.Result // 完了後に結果が出てくる (最大5秒)
-task2.Result // 完了後に結果が出てくる (最大5秒)
-
-

評価コンテキスト内での型チェック

-

F# Interactiveの一連のスクリプティングセッション中で -コードの型チェックを実行したいような状況を考えてみましょう。 -たとえばまず宣言を評価します:

- - - -
1: 
-
fsiSession.EvalInteraction "let xxx = 1 + 1"
-
-

次に部分的に完全な xxx + xx というコードの型チェックを実行したいとします:

- - - -
1: 
-2: 
-
let parseResults, checkResults, checkProjectResults = 
-    fsiSession.ParseAndCheckInteraction("xxx + xx") |> Async.RunSynchronously
-
-

parseResultscheckResults はそれぞれ エディタ -のページで説明している ParseFileResultsCheckFileResults 型です。 -たとえば以下のようなコードでエラーを確認出来ます:

- - - -
1: 
-
checkResults.Errors.Length // 1
-
-

コードはF# Interactiveセッション内において、その時点までに実行された -有効な宣言からなる論理的な型コンテキストと結びつく形でチェックされます。

-

また、宣言リスト情報やツールチップテキスト、シンボルの解決といった処理を -要求することもできます:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
open FSharp.Compiler
-
-// ツールチップを取得する
-checkResults.GetToolTipText(1, 2, "xxx + xx", ["xxx"], FSharpTokenTag.IDENT) 
-
-checkResults.GetSymbolUseAtLocation(1, 2, "xxx + xx", ["xxx"]) // シンボル xxx
-  
-
-

'fsi'オブジェクト

-

スクリプトのコードが'fsi'オブジェクトにアクセスできるようにしたい場合、 -このオブジェクトの実装を明示的に渡さなければなりません。 -通常、FSharp.Compiler.Interactive.Settings.dll由来の1つが使われます。

- - - -
1: 
-
let fsiConfig2 = FsiEvaluationSession.GetDefaultConfiguration(fsi)
-
-

収集可能なコード生成

-

FsiEvaluationSessionを使用してコードを評価すると、 -.NET の動的アセンブリを生成し、他のリソースを使用します。 -collectible=true を渡すことで、生成されたコードを収集可能に出来ます。 -しかしながら、例えば EvalExpression から返される FsiValue のような型を必要とする未解放のオブジェクト参照が無く、 -かつ FsiEvaluationSession を破棄したに違いない場合に限ってコードが収集されます。 -収集可能なアセンブリに対する制限 -も参照してください。

-

以下の例は200個の評価セッションを生成しています。 collectible=trueuse session = ... -の両方を使っていることに気をつけてください。

-

収集可能なコードが正しく動いた場合、全体としてのリソース使用量は -評価が進んでも線形には増加しないでしょう。

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-
let collectionTest() = 
-
-    for i in 1 .. 200 do
-        let defaultArgs = [|"fsi.exe";"--noninteractive";"--nologo";"--gui-"|]
-        use inStream = new StringReader("")
-        use outStream = new StringWriter()
-        use errStream = new StringWriter()
-
-        let fsiConfig = FsiEvaluationSession.GetDefaultConfiguration()
-        use session = FsiEvaluationSession.Create(fsiConfig, defaultArgs, inStream, outStream, errStream, collectible=true)
-        
-        session.EvalInteraction (sprintf "type D = { v : int }")
-        let v = session.EvalExpression (sprintf "{ v = 42 * %d }" i)
-        printfn "その %d, 結果 = %A" i v.Value.ReflectionValue
-
-// collectionTest()  <-- このようにテストを実行する
-
- -
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp

--------------------
type FSharpAttribute =
  member Format : context:FSharpDisplayContext -> string
  member AttributeType : FSharpEntity
  member ConstructorArguments : IList<FSharpType * obj>
  member IsUnresolved : bool
  member NamedArguments : IList<FSharpType * string * bool * obj>
-
namespace FSharp.Compiler.Interactive
-
module Shell

from FSharp.Compiler.Interactive
-
namespace System
-
namespace System.IO
-
namespace System.Text
-
val sbOut : StringBuilder
-
Multiple items
type StringBuilder =
  new : unit -> StringBuilder + 5 overloads
  member Append : value:string -> StringBuilder + 22 overloads
  member AppendFormat : format:string * arg0:obj -> StringBuilder + 7 overloads
  member AppendJoin : separator:string * [<ParamArray>] values:obj[] -> StringBuilder + 5 overloads
  member AppendLine : unit -> StringBuilder + 1 overload
  member Capacity : int with get, set
  member Chars : int -> char with get, set
  member Clear : unit -> StringBuilder
  member CopyTo : sourceIndex:int * destination:Span<char> * count:int -> unit + 1 overload
  member EnsureCapacity : capacity:int -> int
  ...

--------------------
StringBuilder() : StringBuilder
StringBuilder(capacity: int) : StringBuilder
StringBuilder(value: string) : StringBuilder
StringBuilder(value: string, capacity: int) : StringBuilder
StringBuilder(capacity: int, maxCapacity: int) : StringBuilder
StringBuilder(value: string, startIndex: int, length: int, capacity: int) : StringBuilder
-
val sbErr : StringBuilder
-
val inStream : StringReader
-
Multiple items
type StringReader =
  inherit TextReader
  new : s:string -> StringReader
  member Close : unit -> unit
  member Peek : unit -> int
  member Read : unit -> int + 2 overloads
  member ReadAsync : buffer:Memory<char> * ?cancellationToken:CancellationToken -> ValueTask<int> + 1 overload
  member ReadBlock : buffer:Span<char> -> int
  member ReadBlockAsync : buffer:Memory<char> * ?cancellationToken:CancellationToken -> ValueTask<int> + 1 overload
  member ReadLine : unit -> string
  member ReadLineAsync : unit -> Task<string>
  member ReadToEnd : unit -> string
  ...

--------------------
StringReader(s: string) : StringReader
-
val outStream : StringWriter
-
Multiple items
type StringWriter =
  inherit TextWriter
  new : unit -> StringWriter + 3 overloads
  member Close : unit -> unit
  member Encoding : Encoding
  member FlushAsync : unit -> Task
  member GetStringBuilder : unit -> StringBuilder
  member ToString : unit -> string
  member Write : value:char -> unit + 3 overloads
  member WriteAsync : value:char -> Task + 3 overloads
  member WriteLine : buffer:ReadOnlySpan<char> -> unit
  member WriteLineAsync : value:char -> Task + 3 overloads

--------------------
StringWriter() : StringWriter
StringWriter(formatProvider: IFormatProvider) : StringWriter
StringWriter(sb: StringBuilder) : StringWriter
StringWriter(sb: StringBuilder, formatProvider: IFormatProvider) : StringWriter
-
val errStream : StringWriter
-
val argv : string []
-
val allArgs : string []
-
type Array =
  member Clone : unit -> obj
  member CopyTo : array:Array * index:int -> unit + 1 overload
  member GetEnumerator : unit -> IEnumerator
  member GetLength : dimension:int -> int
  member GetLongLength : dimension:int -> int64
  member GetLowerBound : dimension:int -> int
  member GetUpperBound : dimension:int -> int
  member GetValue : [<ParamArray>] indices:int[] -> obj + 7 overloads
  member Initialize : unit -> unit
  member IsFixedSize : bool
  ...
-
val append : array1:'T [] -> array2:'T [] -> 'T []
-
val fsiConfig : FsiEvaluationSessionHostConfig
-
type FsiEvaluationSession =
  interface IDisposable
  member EvalExpression : code:string -> FsiValue option
  member EvalExpressionNonThrowing : code:string -> Choice<FsiValue option,exn> * FSharpErrorInfo []
  member EvalInteraction : code:string * ?cancellationToken:CancellationToken -> unit
  member EvalInteractionNonThrowing : code:string * ?cancellationToken:CancellationToken -> Choice<FsiValue option,exn> * FSharpErrorInfo []
  member EvalScript : filePath:string -> unit
  member EvalScriptNonThrowing : filePath:string -> Choice<unit,exn> * FSharpErrorInfo []
  member FormatValue : reflectionValue:obj * reflectionType:Type -> string
  member GetCompletions : longIdent:string -> seq<string>
  member Interrupt : unit -> unit
  ...
-
static member FsiEvaluationSession.GetDefaultConfiguration : unit -> FsiEvaluationSessionHostConfig
static member FsiEvaluationSession.GetDefaultConfiguration : fsiObj:obj -> FsiEvaluationSessionHostConfig
static member FsiEvaluationSession.GetDefaultConfiguration : fsiObj:obj * useFsiAuxLib:bool -> FsiEvaluationSessionHostConfig
-
val fsiSession : FsiEvaluationSession
-
static member FsiEvaluationSession.Create : fsiConfig:FsiEvaluationSessionHostConfig * argv:string [] * inReader:TextReader * outWriter:TextWriter * errorWriter:TextWriter * ?collectible:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver -> FsiEvaluationSession
-
val evalExpression : text:string -> unit


 式を評価して結果を返す
-
val text : string
-
member FsiEvaluationSession.EvalExpression : code:string -> FsiValue option
-
union case Option.Some: Value: 'T -> Option<'T>
-
val value : FsiValue
-
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
-
property FsiValue.ReflectionValue: obj with get
-
union case Option.None: Option<'T>
-
val evalExpressionTyped : text:string -> 'T


 式を評価して、強く型付けされた結果を返す
-
val unbox : value:obj -> 'T
-
val failwith : message:string -> 'T
-
Multiple items
val int : value:'T -> int (requires member op_Explicit)

--------------------
type int = int32

--------------------
type int<'Measure> = int
-
member FsiEvaluationSession.EvalInteraction : code:string * ?cancellationToken:Threading.CancellationToken -> unit
-
type File =
  static member AppendAllLines : path:string * contents:IEnumerable<string> -> unit + 1 overload
  static member AppendAllLinesAsync : path:string * contents:IEnumerable<string> * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendAllText : path:string * contents:string -> unit + 1 overload
  static member AppendAllTextAsync : path:string * contents:string * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendText : path:string -> StreamWriter
  static member Copy : sourceFileName:string * destFileName:string -> unit + 1 overload
  static member Create : path:string -> FileStream + 2 overloads
  static member CreateText : path:string -> StreamWriter
  static member Decrypt : path:string -> unit
  static member Delete : path:string -> unit
  ...
-
File.WriteAllText(path: string, contents: string) : unit
File.WriteAllText(path: string, contents: string, encoding: Encoding) : unit
-
member FsiEvaluationSession.EvalScript : filePath:string -> unit
-
val result : Choice<unit,exn>
-
val warnings : FSharpErrorInfo []
-
member FsiEvaluationSession.EvalScriptNonThrowing : filePath:string -> Choice<unit,exn> * FSharpErrorInfo []
-
union case Choice.Choice1Of2: 'T1 -> Choice<'T1,'T2>
-
union case Choice.Choice2Of2: 'T2 -> Choice<'T1,'T2>
-
Multiple items
val exn : exn

--------------------
type exn = Exception
-
property Exception.Message: string with get
-
val not : value:bool -> bool
-
val w : FSharpErrorInfo
-
property FSharpErrorInfo.Message: string with get
-
property FSharpErrorInfo.StartLineAlternate: int with get
-
property FSharpErrorInfo.StartColumn: int with get
-
val evalExpressionTyped2 : text:string -> 'T
-
val res : Choice<FsiValue option,exn>
-
member FsiEvaluationSession.EvalExpressionNonThrowing : code:string -> Choice<FsiValue option,exn> * FSharpErrorInfo []
-
val sprintf : format:Printf.StringFormat<'T> -> 'T
-
namespace System.Threading
-
namespace System.Threading.Tasks
-
val sampleLongRunningExpr : string
-
val task1 : Task<int>
-
Multiple items
type Task =
  new : action:Action -> Task + 7 overloads
  member AsyncState : obj
  member ConfigureAwait : continueOnCapturedContext:bool -> ConfiguredTaskAwaitable
  member ContinueWith : continuationAction:Action<Task> -> Task + 19 overloads
  member CreationOptions : TaskCreationOptions
  member Dispose : unit -> unit
  member Exception : AggregateException
  member GetAwaiter : unit -> TaskAwaiter
  member Id : int
  member IsCanceled : bool
  ...

--------------------
type Task<'TResult> =
  inherit Task
  new : function:Func<'TResult> -> Task<'TResult> + 7 overloads
  member ConfigureAwait : continueOnCapturedContext:bool -> ConfiguredTaskAwaitable<'TResult>
  member ContinueWith : continuationAction:Action<Task<'TResult>> -> Task + 19 overloads
  member GetAwaiter : unit -> TaskAwaiter<'TResult>
  member Result : 'TResult
  static member Factory : TaskFactory<'TResult>

--------------------
Task(action: Action) : Task
Task(action: Action, cancellationToken: Threading.CancellationToken) : Task
Task(action: Action, creationOptions: TaskCreationOptions) : Task
Task(action: Action<obj>, state: obj) : Task
Task(action: Action, cancellationToken: Threading.CancellationToken, creationOptions: TaskCreationOptions) : Task
Task(action: Action<obj>, state: obj, cancellationToken: Threading.CancellationToken) : Task
Task(action: Action<obj>, state: obj, creationOptions: TaskCreationOptions) : Task
Task(action: Action<obj>, state: obj, cancellationToken: Threading.CancellationToken, creationOptions: TaskCreationOptions) : Task

--------------------
Task(function: Func<'TResult>) : Task<'TResult>
Task(function: Func<'TResult>, cancellationToken: Threading.CancellationToken) : Task<'TResult>
Task(function: Func<'TResult>, creationOptions: TaskCreationOptions) : Task<'TResult>
Task(function: Func<obj,'TResult>, state: obj) : Task<'TResult>
Task(function: Func<'TResult>, cancellationToken: Threading.CancellationToken, creationOptions: TaskCreationOptions) : Task<'TResult>
Task(function: Func<obj,'TResult>, state: obj, cancellationToken: Threading.CancellationToken) : Task<'TResult>
Task(function: Func<obj,'TResult>, state: obj, creationOptions: TaskCreationOptions) : Task<'TResult>
Task(function: Func<obj,'TResult>, state: obj, cancellationToken: Threading.CancellationToken, creationOptions: TaskCreationOptions) : Task<'TResult>
-
val task2 : Task<int>
-
property Task.Result: int with get
-
val parseResults : FSharpParseFileResults
-
val checkResults : FSharpCheckFileResults
-
val checkProjectResults : FSharpCheckProjectResults
-
member FsiEvaluationSession.ParseAndCheckInteraction : code:string -> Async<FSharpParseFileResults * FSharpCheckFileResults * FSharpCheckProjectResults>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
property FSharpCheckFileResults.Errors: FSharpErrorInfo [] with get
-
property Array.Length: int with get
-
member FSharpCheckFileResults.GetToolTipText : line:int * colAtEndOfNames:int * lineText:string * names:string list * tokenTag:int * ?userOpName:string -> Async<FSharpToolTipText>
-
module FSharpTokenTag

from FSharp.Compiler.SourceCodeServices
-
val IDENT : int
-
member FSharpCheckFileResults.GetSymbolUseAtLocation : line:int * colAtEndOfNames:int * lineText:string * names:string list * ?userOpName:string -> Async<FSharpSymbolUse option>
-
val fsiConfig2 : FsiEvaluationSessionHostConfig
-
val collectionTest : unit -> unit
-
val i : int32
-
val defaultArgs : string []
-
val session : FsiEvaluationSession
-
static member FsiEvaluationSession.Create : fsiConfig:FsiEvaluationSessionHostConfig * argv:string [] * inReader:TextReader * outWriter:TextWriter * errorWriter:TextWriter * ?collectible:bool * ?legacyReferenceResolver:ReferenceResolver.Resolver -> FsiEvaluationSession
-
val v : FsiValue option
-
property Option.Value: FsiValue with get
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/ja/project.html b/docs/ja/project.html deleted file mode 100644 index 3e7de41cdc..0000000000 --- a/docs/ja/project.html +++ /dev/null @@ -1,559 +0,0 @@ - - - - - コンパイラサービス: プロジェクトの分析 - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

コンパイラサービス: プロジェクトの分析

-

このチュートリアルではF#コンパイラによって提供されるサービスを使用して -プロジェクト全体を分析する方法について紹介します。

-
-

注意: 以下で使用しているAPIは試験的なもので、 -最新のnugetパッケージの公開に伴って変更されることがあります。

-
-

プロジェクト全体の結果を取得する

-

以前の(型無しASTを使った)チュートリアル と同じく、 -まずは FSharp.Compiler.Service.dll への参照追加と、適切な名前空間のオープン、 -FSharpChecker インスタンスの作成を行います:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-9: 
-
// F#コンパイラAPIへの参照
-#r "FSharp.Compiler.Service.dll"
-
-open System
-open System.Collections.Generic
-open FSharp.Compiler.SourceCodeServices
-
-// インタラクティブチェッカーのインスタンスを作成
-let checker = FSharpChecker.Create()
-
-

今回のサンプル入力は以下の通りです:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-21: 
-22: 
-23: 
-24: 
-25: 
-26: 
-27: 
-28: 
-29: 
-30: 
-31: 
-32: 
-33: 
-34: 
-35: 
-
module Inputs = 
-    open System.IO
-
-    let base1 = Path.GetTempFileName()
-    let fileName1 = Path.ChangeExtension(base1, ".fs")
-    let base2 = Path.GetTempFileName()
-    let fileName2 = Path.ChangeExtension(base2, ".fs")
-    let dllName = Path.ChangeExtension(base2, ".dll")
-    let projFileName = Path.ChangeExtension(base2, ".fsproj")
-    let fileSource1 = """
-module M
-
-type C() = 
-    member x.P = 1
-
-let xxx = 3 + 4
-let fff () = xxx + xxx
-    """
-    File.WriteAllText(fileName1, fileSource1)
-
-    let fileSource2 = """
-module N
-
-open M
-
-type D1() = 
-    member x.SomeProperty = M.xxx
-
-type D2() = 
-    member x.SomeProperty = M.fff()
-
-// 警告を発生させる
-let y2 = match 1 with 1 -> M.xxx
-    """
-    File.WriteAllText(fileName2, fileSource2)
-
-

GetProjectOptionsFromCommandLineArgs を使用して、 -2つのファイルを1つのプロジェクトとして扱えるようにします:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-21: 
-22: 
-23: 
-
let projectOptions = 
-    checker.GetProjectOptionsFromCommandLineArgs
-       (Inputs.projFileName,
-        [| yield "--simpleresolution" 
-           yield "--noframework" 
-           yield "--debug:full" 
-           yield "--define:DEBUG" 
-           yield "--optimize-" 
-           yield "--out:" + Inputs.dllName
-           yield "--doc:test.xml" 
-           yield "--warn:3" 
-           yield "--fullpaths" 
-           yield "--flaterrors" 
-           yield "--target:library" 
-           yield Inputs.fileName1
-           yield Inputs.fileName2
-           let references = 
-             [ @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" 
-               @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" 
-               @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" 
-               @"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll"]  
-           for r in references do
-                 yield "-r:" + r |])
-
-

そして(ディスク上に保存されたファイルを使用して) -プロジェクト全体をチェックします:

- - - -
1: 
-
let wholeProjectResults = checker.ParseAndCheckProject(projectOptions) |> Async.RunSynchronously
-
-

発生したエラーと警告は以下のようにしてチェックできます:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
wholeProjectResults.Errors.Length // 1
-wholeProjectResults.Errors.[0].Message.Contains("Incomplete pattern matches on this expression") // true
-
-wholeProjectResults.Errors.[0].StartLineAlternate // 13
-wholeProjectResults.Errors.[0].EndLineAlternate // 13
-wholeProjectResults.Errors.[0].StartColumn // 15
-wholeProjectResults.Errors.[0].EndColumn // 16
-
-

推測されたプロジェクトのシグネチャをチェックします:

- - - -
1: 
-2: 
-3: 
-4: 
-
[ for x in wholeProjectResults.AssemblySignature.Entities -> x.DisplayName ] // ["N"; "M"]
-[ for x in wholeProjectResults.AssemblySignature.Entities.[0].NestedEntities -> x.DisplayName ] // ["D1"; "D2"]
-[ for x in wholeProjectResults.AssemblySignature.Entities.[1].NestedEntities -> x.DisplayName ] // ["C"]
-[ for x in wholeProjectResults.AssemblySignature.Entities.[0].MembersFunctionsAndValues -> x.DisplayName ] // ["y2"]
-
-

プロジェクト内の全シンボルを取得することもできます:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-
let rec allSymbolsInEntities (entities: IList<FSharpEntity>) = 
-    [ for e in entities do 
-          yield (e :> FSharpSymbol) 
-          for x in e.MembersFunctionsAndValues do
-             yield (x :> FSharpSymbol)
-          for x in e.UnionCases do
-             yield (x :> FSharpSymbol)
-          for x in e.FSharpFields do
-             yield (x :> FSharpSymbol)
-          yield! allSymbolsInEntities e.NestedEntities ]
-
-let allSymbols = allSymbolsInEntities wholeProjectResults.AssemblySignature.Entities
-
-

プロジェクト全体のチェックが完了した後は、 -プロジェクト内の各ファイルに対する個別の結果を取得することもできます。 -この処理は即座に完了し、改めてチェックが実行されることもありません。

- - - -
1: 
-2: 
-3: 
-
let backgroundParseResults1, backgroundTypedParse1 = 
-    checker.GetBackgroundCheckResultsForFileInProject(Inputs.fileName1, projectOptions) 
-    |> Async.RunSynchronously
-
-

そしてそれぞれのファイル内にあるシンボルを解決できます:

- - - -
1: 
-2: 
-3: 
-
let xSymbol = 
-    backgroundTypedParse1.GetSymbolUseAtLocation(9,9,"",["xxx"])
-    |> Async.RunSynchronously
-
-

それぞれのシンボルに対して、シンボルへの参照を検索することもできます:

- - - -
1: 
-
let usesOfXSymbol = wholeProjectResults.GetUsesOfSymbol(xSymbol.Value.Symbol)
-
-

推測されたシグネチャ内にあるすべての定義済みシンボルに対して、 -それらがどこで使用されているのかを探し出すこともできます:

- - - -
1: 
-2: 
-3: 
-
let allUsesOfAllSignatureSymbols = 
-    [ for s in allSymbols do 
-         yield s.ToString(), wholeProjectResults.GetUsesOfSymbol(s) ]
-
-

(ローカルスコープで使用されているものも含めて) -プロジェクト全体で使用されているすべてのシンボルを確認することもできます:

- - - -
1: 
-
let allUsesOfAllSymbols = wholeProjectResults.GetAllUsesOfAllSymbols()
-
-

また、プロジェクト内のファイルに対して、更新後のバージョンに対して -チェックを実行するようにリクエストすることもできます -(なお FileSystem API を使用していない場合には、 -プロジェクト内のその他のファイルがまだディスクから -読み取り中であることに注意してください):

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-
let parseResults1, checkAnswer1 = 
-    checker.ParseAndCheckFileInProject(Inputs.fileName1, 0, Inputs.fileSource1, projectOptions) 
-    |> Async.RunSynchronously
-
-let checkResults1 = 
-    match checkAnswer1 with 
-    | FSharpCheckFileAnswer.Succeeded x ->  x 
-    | _ -> failwith "想定外の終了状態です"
-
-let parseResults2, checkAnswer2 = 
-    checker.ParseAndCheckFileInProject(Inputs.fileName2, 0, Inputs.fileSource2, projectOptions)
-    |> Async.RunSynchronously
-
-let checkResults2 = 
-    match checkAnswer2 with 
-    | FSharpCheckFileAnswer.Succeeded x ->  x 
-    | _ -> failwith "想定外の終了状態です"
-
-

そして再びシンボルを解決したり、参照を検索したりすることができます:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-
let xSymbol2 = 
-    checkResults1.GetSymbolUseAtLocation(9,9,"",["xxx"]) 
-    |> Async.RunSynchronously
-
-let usesOfXSymbol2 = wholeProjectResults.GetUsesOfSymbol(xSymbol2.Value.Symbol)
-
-

あるいは(ローカルスコープで使用されているシンボルも含めて) -ファイル中で使用されているすべてのシンボルを検索することもできます:

- - - -
1: 
-
let allUsesOfAllSymbolsInFile1 = checkResults1.GetAllUsesOfAllSymbolsInFile()
-
-

あるいは特定のファイル中で使用されているシンボルを検索することもできます:

- - - -
1: 
-2: 
-3: 
-
let allUsesOfXSymbolInFile1 = checkResults1.GetUsesOfSymbolInFile(xSymbol2.Value.Symbol)
-
-let allUsesOfXSymbolInFile2 = checkResults2.GetUsesOfSymbolInFile(xSymbol2.Value.Symbol)
-
-

複数プロジェクトの分析

-

複数のプロジェクトにまたがった参照があるような、 -複数のF# プロジェクトを分析したい場合、 -それらのプロジェクトを一旦ビルドして、 -ProjectOptionsで -r:プロジェクト-出力-までの-パス.dll 引数を指定して -プロジェクトの相互参照を設定すると一番簡単です。 -しかしこの場合、それぞれのプロジェクトが正しくビルド出来、 -DLLファイルが参照可能なディスク上に生成されなければいけません。

-

たとえばIDEを操作している場合など、状況によっては -DLLのコンパイルが通るようになる前に -プロジェクトを参照したいことがあるでしょう。 -この場合はProjectOptionsのReferencedProjectsを設定します。 -この値には依存するプロジェクトのオプションを再帰的に指定します。 -それぞれのプロジェクト参照にはやはり、 -ReferencedProjectsのエントリそれぞれに対応する --r:プロジェクト-出力-までの-パス.dll というコマンドライン引数を -ProjectOptionsに設定する必要があります。

-

プロジェクト参照が設定されると、ソースファイルからのF#プロジェクト分析処理が -インクリメンタル分析の結果を使用して行われるようになります。 -その際にはソースファイルファイルをDLLへとコンパイルする必要はありません。

-

相互参照を含むようなF#プロジェクトを効率よく分析するには、 -ReferencedProjectsを正しく設定した後、 -それぞれのプロジェクトを順番通りに分析していくとよいでしょう。

-
-

注意: プロジェクトの参照機能は試作段階です。 -プロジェクトの参照を使用すると、依存先のプロジェクトがまだ分析中で、 -要求したサービスがまだ利用できないことがあるため、 -コンパイラサービスの性能が低下することがあります。 -注意: アセンブリが型プロバイダーのコンポーネントを含む場合、 -プロジェクト参照機能は利用できません。 -プロジェクトの分析処理を強制しない限りはプロジェクト参照を設定しても -効果がありません。 -また、分析を強制する場合にはディスク上にDLLが存在しなければいけません。

-
-

まとめ

-

これまで説明してきた通り、 ParseAndCheckProject を使用すると -シンボルの参照などのようなプロジェクト全体の解析結果にアクセスできるようになります。 -シンボルに対する処理の詳細については シンボル のページを参照してください。

- -
namespace System
-
namespace System.Collections
-
namespace System.Collections.Generic
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
val checker : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
namespace System.IO
-
val base1 : string
-
type Path =
  static val DirectorySeparatorChar : char
  static val AltDirectorySeparatorChar : char
  static val VolumeSeparatorChar : char
  static val PathSeparator : char
  static val InvalidPathChars : char[]
  static member ChangeExtension : path:string * extension:string -> string
  static member Combine : [<ParamArray>] paths:string[] -> string + 3 overloads
  static member GetDirectoryName : path:string -> string + 1 overload
  static member GetExtension : path:string -> string + 1 overload
  static member GetFileName : path:string -> string + 1 overload
  ...
-
Path.GetTempFileName() : string
-
val fileName1 : string
-
Path.ChangeExtension(path: string, extension: string) : string
-
val base2 : string
-
val fileName2 : string
-
val dllName : string
-
val projFileName : string
-
val fileSource1 : string
-
type File =
  static member AppendAllLines : path:string * contents:IEnumerable<string> -> unit + 1 overload
  static member AppendAllLinesAsync : path:string * contents:IEnumerable<string> * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendAllText : path:string * contents:string -> unit + 1 overload
  static member AppendAllTextAsync : path:string * contents:string * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendText : path:string -> StreamWriter
  static member Copy : sourceFileName:string * destFileName:string -> unit + 1 overload
  static member Create : path:string -> FileStream + 2 overloads
  static member CreateText : path:string -> StreamWriter
  static member Decrypt : path:string -> unit
  static member Delete : path:string -> unit
  ...
-
File.WriteAllText(path: string, contents: string) : unit
File.WriteAllText(path: string, contents: string, encoding: Text.Encoding) : unit
-
val fileSource2 : string
-
val projectOptions : FSharpProjectOptions
-
member FSharpChecker.GetProjectOptionsFromCommandLineArgs : projectFileName:string * argv:string [] * ?loadedTimeStamp:DateTime * ?extraProjectInfo:obj -> FSharpProjectOptions
-
module Inputs

from Project
-
val references : string list
-
val r : string
-
val wholeProjectResults : FSharpCheckProjectResults
-
member FSharpChecker.ParseAndCheckProject : options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpCheckProjectResults>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
property FSharpCheckProjectResults.Errors: FSharpErrorInfo [] with get
-
property Array.Length: int with get
-
val x : FSharpEntity
-
property FSharpCheckProjectResults.AssemblySignature: FSharpAssemblySignature with get
-
property FSharpAssemblySignature.Entities: IList<FSharpEntity> with get
-
property FSharpEntity.DisplayName: string with get
-
val x : FSharpMemberOrFunctionOrValue
-
property FSharpMemberOrFunctionOrValue.DisplayName: string with get
-
val allSymbolsInEntities : entities:IList<FSharpEntity> -> FSharpSymbol list
-
val entities : IList<FSharpEntity>
-
type IList<'T> =
  inherit ICollection<'T>
  inherit IEnumerable<'T>
  inherit IEnumerable
  member IndexOf : item:'T -> int
  member Insert : index:int * item:'T -> unit
  member Item : int -> 'T with get, set
  member RemoveAt : index:int -> unit
-
type FSharpEntity =
  inherit FSharpSymbol
  private new : SymbolEnv * EntityRef -> FSharpEntity
  member AbbreviatedType : FSharpType
  member AccessPath : string
  member Accessibility : FSharpAccessibility
  member ActivePatternCases : FSharpActivePatternCase list
  member AllCompilationPaths : string list
  member AllInterfaces : IList<FSharpType>
  member ArrayRank : int
  member Attributes : IList<FSharpAttribute>
  ...
-
val e : FSharpEntity
-
type FSharpSymbol =
  member GetEffectivelySameAsHash : unit -> int
  member IsAccessible : FSharpAccessibilityRights -> bool
  member IsEffectivelySameAs : other:FSharpSymbol -> bool
  member Assembly : FSharpAssembly
  member DeclarationLocation : range option
  member DisplayName : string
  member FullName : string
  member ImplementationLocation : range option
  member IsExplicitlySuppressed : bool
  member private Item : Item
  ...
-
property FSharpEntity.MembersFunctionsAndValues: IList<FSharpMemberOrFunctionOrValue> with get
-
val x : FSharpUnionCase
-
property FSharpEntity.UnionCases: IList<FSharpUnionCase> with get
-
val x : FSharpField
-
property FSharpEntity.FSharpFields: IList<FSharpField> with get
-
property FSharpEntity.NestedEntities: IList<FSharpEntity> with get
-
val allSymbols : FSharpSymbol list
-
val backgroundParseResults1 : FSharpParseFileResults
-
val backgroundTypedParse1 : FSharpCheckFileResults
-
member FSharpChecker.GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
-
val xSymbol : FSharpSymbolUse option
-
member FSharpCheckFileResults.GetSymbolUseAtLocation : line:int * colAtEndOfNames:int * lineText:string * names:string list * ?userOpName:string -> Async<FSharpSymbolUse option>
-
val usesOfXSymbol : Async<FSharpSymbolUse []>
-
member FSharpCheckProjectResults.GetUsesOfSymbol : symbol:FSharpSymbol -> Async<FSharpSymbolUse []>
-
property Option.Value: FSharpSymbolUse with get
-
property FSharpSymbolUse.Symbol: FSharpSymbol with get
-
val allUsesOfAllSignatureSymbols : (string * Async<FSharpSymbolUse []>) list
-
val s : FSharpSymbol
-
Object.ToString() : string
-
val allUsesOfAllSymbols : Async<FSharpSymbolUse []>
-
member FSharpCheckProjectResults.GetAllUsesOfAllSymbols : unit -> Async<FSharpSymbolUse []>
-
val parseResults1 : FSharpParseFileResults
-
val checkAnswer1 : FSharpCheckFileAnswer
-
member FSharpChecker.ParseAndCheckFileInProject : filename:string * fileversion:int * sourceText:FSharp.Compiler.Text.ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileAnswer>
-
val checkResults1 : FSharpCheckFileResults
-
type FSharpCheckFileAnswer =
  | Aborted
  | Succeeded of FSharpCheckFileResults
-
union case FSharpCheckFileAnswer.Succeeded: FSharpCheckFileResults -> FSharpCheckFileAnswer
-
val x : FSharpCheckFileResults
-
val failwith : message:string -> 'T
-
val parseResults2 : FSharpParseFileResults
-
val checkAnswer2 : FSharpCheckFileAnswer
-
val checkResults2 : FSharpCheckFileResults
-
val xSymbol2 : FSharpSymbolUse option
-
val usesOfXSymbol2 : Async<FSharpSymbolUse []>
-
val allUsesOfAllSymbolsInFile1 : Async<FSharpSymbolUse []>
-
member FSharpCheckFileResults.GetAllUsesOfAllSymbolsInFile : unit -> Async<FSharpSymbolUse []>
-
val allUsesOfXSymbolInFile1 : Async<FSharpSymbolUse []>
-
member FSharpCheckFileResults.GetUsesOfSymbolInFile : symbol:FSharpSymbol -> Async<FSharpSymbolUse []>
-
val allUsesOfXSymbolInFile2 : Async<FSharpSymbolUse []>
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/ja/symbols.html b/docs/ja/symbols.html deleted file mode 100644 index 0eb2cb26c1..0000000000 --- a/docs/ja/symbols.html +++ /dev/null @@ -1,518 +0,0 @@ - - - - - コンパイラサービス: シンボルの処理 - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

コンパイラサービス: シンボルの処理

-

このチュートリアルでは、F#コンパイラによって提供される -シンボルの扱い方についてのデモを紹介します。 -シンボルの参照に関する情報については プロジェクト全体の分析 -も参考にしてください。

-
-

注意: 以下で使用しているAPIは試験的なもので、 -最新のnugetパッケージの公開に伴って変更されることがあります。

-
-

これまでと同じく、 FSharp.Compiler.Service.dll への参照を追加した後、 -適切な名前空間をオープンし、 FSharpChecker のインスタンスを作成します:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-9: 
-
// F#コンパイラAPIへの参照
-#r "FSharp.Compiler.Service.dll"
-
-open System
-open System.IO
-open FSharp.Compiler.SourceCodeServices
-
-// インタラクティブチェッカーのインスタンスを作成
-let checker = FSharpChecker.Create()
-
-

そして特定の入力値に対して型チェックを行います:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-
let parseAndTypeCheckSingleFile (file, input) = 
-    // スタンドアロンの(スクリプト)ファイルを表すコンテキストを取得
-    let projOptions, _errors = 
-        checker.GetProjectOptionsFromScript(file, input)
-        |> Async.RunSynchronously
-
-    let parseFileResults, checkFileResults = 
-        checker.ParseAndCheckFileInProject(file, 0, input, projOptions) 
-        |> Async.RunSynchronously
-
-    // 型チェックが成功(あるいは100%に到達)するまで待機
-    match checkFileResults with
-    | FSharpCheckFileAnswer.Succeeded(res) -> parseFileResults, res
-    | res -> failwithf "Parsing did not finish... (%A)" res
-
-let file = "/home/user/Test.fsx"
-
-

ファイルに対する解決済みのシグネチャ情報を取得する

-

ファイルに対する型チェックが完了すると、 -TypeCheckResultsPartialAssemblySignature プロパティを参照することにより、 -チェック中の特定のファイルを含む、推論されたプロジェクトのシグネチャに -アクセスすることができます。

-

モジュールや型、属性、メンバ、値、関数、共用体、レコード型、測定単位、 -およびその他のF#言語要素に対する完全なシグネチャ情報が参照できます。

-

ただし型付き式ツリーに対する情報は(今のところ)この方法では利用できません。

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-
let input2 = 
-      """
-[<System.CLSCompliant(true)>]
-let foo(x, y) = 
-    let msg = String.Concat("Hello"," ","world")
-    if true then 
-        printfn "x = %d, y = %d" x y 
-        printfn "%s" msg
-
-type C() = 
-    member x.P = 1
-      """
-let parseFileResults, checkFileResults = 
-    parseAndTypeCheckSingleFile(file, input2)
-
-

これでコードに対する部分的なアセンブリのシグネチャが取得できるようになります:

- - - -
1: 
-2: 
-3: 
-
let partialAssemblySignature = checkFileResults.PartialAssemblySignature
-
-partialAssemblySignature.Entities.Count = 1  // エンティティは1つ
-
-

そしてコードを含むモジュールに関連したエンティティを取得します:

- - - -
1: 
-2: 
-3: 
-
let moduleEntity = partialAssemblySignature.Entities.[0]
-
-moduleEntity.DisplayName = "Test"
-
-

そしてコード内の型定義に関連したエンティティを取得します:

- - - -
1: 
-
let classEntity = moduleEntity.NestedEntities.[0]
-
-

そしてコード内で定義された関数に関連した値を取得します:

- - - -
1: 
-
let fnVal = moduleEntity.MembersFunctionsAndValues.[0]
-
-

関数値に関するプロパティの値を確認してみましょう。

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-21: 
-22: 
-23: 
-
fnVal.Attributes.Count // 1
-fnVal.CurriedParameterGroups.Count // 1
-fnVal.CurriedParameterGroups.[0].Count // 2
-fnVal.CurriedParameterGroups.[0].[0].Name // "x"
-fnVal.CurriedParameterGroups.[0].[1].Name // "y"
-fnVal.DeclarationLocation.StartLine // 3
-fnVal.DisplayName // "foo"
-fnVal.DeclaringEntity.Value.DisplayName // "Test"
-fnVal.DeclaringEntity.Value.DeclarationLocation.StartLine // 1
-fnVal.GenericParameters.Count // 0
-fnVal.InlineAnnotation // FSharpInlineAnnotation.OptionalInline
-fnVal.IsActivePattern // false
-fnVal.IsCompilerGenerated // false
-fnVal.IsDispatchSlot // false
-fnVal.IsExtensionMember // false
-fnVal.IsPropertyGetterMethod // false
-fnVal.IsImplicitConstructor // false
-fnVal.IsInstanceMember // false
-fnVal.IsMember // false
-fnVal.IsModuleValueOrMember // true
-fnVal.IsMutable // false
-fnVal.IsPropertySetterMethod // false
-fnVal.IsTypeFunction // false
-
-

次に、この関数の型がファーストクラスの値として使用されているかどうかチェックします。 -(ちなみに CurriedParameterGroups プロパティには引数の名前など、 -より多くの情報も含まれています)

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
fnVal.FullType // int * int -> unit
-fnVal.FullType.IsFunctionType // true
-fnVal.FullType.GenericArguments.[0] // int * int 
-fnVal.FullType.GenericArguments.[0].IsTupleType // true
-let argTy1 = fnVal.FullType.GenericArguments.[0].GenericArguments.[0]
-
-argTy1.TypeDefinition.DisplayName // int
-
-

というわけで int * int -> unit という型を表現するオブジェクトが取得できて、 -その1つめの 'int' を確認できたわけです。 -また、以下のようにすると 'int' 型についてのより詳細な情報が取得でき、 -それが名前付きの型であり、F#の型省略形 type int = int32 であることがわかります:

- - - -
1: 
-2: 
-
argTy1.HasTypeDefinition // true
-argTy1.TypeDefinition.IsFSharpAbbreviation // true
-
-

型省略形の右辺、つまり int32 についてもチェックしてみましょう:

- - - -
1: 
-2: 
-3: 
-
let argTy1b = argTy1.TypeDefinition.AbbreviatedType
-argTy1b.TypeDefinition.Namespace // Some "Microsoft.FSharp.Core" 
-argTy1b.TypeDefinition.CompiledName // "int32" 
-
-

そして再び型省略形 type int32 = System.Int32 から型に関する完全な情報が取得できます:

- - - -
1: 
-2: 
-3: 
-
let argTy1c = argTy1b.TypeDefinition.AbbreviatedType
-argTy1c.TypeDefinition.Namespace // Some "System" 
-argTy1c.TypeDefinition.CompiledName // "Int32" 
-
-

ファイルに対する型チェックの結果には、 -コンパイル時に使用されたプロジェクト(あるいはスクリプト)のオプションに関する -ProjectContext と呼ばれる情報も含まれています:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-
let projectContext = checkFileResults.ProjectContext
-
-for assembly in projectContext.GetReferencedAssemblies() do
-    match assembly.FileName with 
-    | None -> printfn "コンパイル時にファイルの存在しないアセンブリを参照しました"
-    | Some s -> printfn "コンパイル時にアセンブリ '%s' を参照しました" s
-
-

注意:

-
    -
  • -不完全なコードが存在する場合、一部あるいはすべての属性が意図したとおりには -並ばないことがあります。 -
  • -
  • -(実際には非常によくあることですが)一部のアセンブリが見つからない場合、 -外部アセンブリに関連する値やメンバ、エンティティにおける 'IsUnresolved' が -trueになることがあります。 -IsUnresolvedによる例外に対処できるよう、堅牢なコードにしておくべきです。 -
  • -
-

プロジェクト全体に対するシンボル情報を取得する

-

プロジェクト全体をチェックする場合、チェッカーを作成した後に parseAndCheckScript -を呼び出します。 -今回の場合は単に1つのスクリプトだけが含まれたプロジェクトをチェックします。 -異なる "projOptions" を指定すると、巨大なプロジェクトに対する設定を -構成することもできます。

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-
let parseAndCheckScript (file, input) = 
-    let projOptions, errors = 
-        checker.GetProjectOptionsFromScript(file, input)
-        |> Async.RunSynchronously
-
-    let projResults = 
-        checker.ParseAndCheckProject(projOptions) 
-        |> Async.RunSynchronously
-
-    projResults
-
-

そして特定の入力に対してこの関数を呼び出します:

- - - -
1: 
-2: 
-3: 
-4: 
-
let tmpFile = Path.ChangeExtension(System.IO.Path.GetTempFileName() , "fs")
-File.WriteAllText(tmpFile, input2)
-
-let projectResults = parseAndCheckScript(tmpFile, input2)
-
-

結果は以下の通りです:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
let assemblySig = projectResults.AssemblySignature
-
-assemblySig.Entities.Count = 1  // エンティティは1つ
-assemblySig.Entities.[0].Namespace  // null
-assemblySig.Entities.[0].DisplayName // "Tmp28D0"
-assemblySig.Entities.[0].MembersFunctionsAndValues.Count // 1 
-assemblySig.Entities.[0].MembersFunctionsAndValues.[0].DisplayName // "foo" 
-
- -
namespace System
-
namespace System.IO
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
val checker : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
val parseAndTypeCheckSingleFile : file:string * input:FSharp.Compiler.Text.ISourceText -> FSharpParseFileResults * FSharpCheckFileResults
-
val file : string
-
val input : FSharp.Compiler.Text.ISourceText
-
val projOptions : FSharpProjectOptions
-
val _errors : FSharpErrorInfo list
-
member FSharpChecker.GetProjectOptionsFromScript : filename:string * sourceText:FSharp.Compiler.Text.ISourceText * ?previewEnabled:bool * ?loadedTimeStamp:DateTime * ?otherFlags:string [] * ?useFsiAuxLib:bool * ?useSdkRefs:bool * ?assumeDotNetFramework:bool * ?extraProjectInfo:obj * ?optionsStamp:int64 * ?userOpName:string -> Async<FSharpProjectOptions * FSharpErrorInfo list>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
val parseFileResults : FSharpParseFileResults
-
val checkFileResults : FSharpCheckFileAnswer
-
member FSharpChecker.ParseAndCheckFileInProject : filename:string * fileversion:int * sourceText:FSharp.Compiler.Text.ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileAnswer>
-
type FSharpCheckFileAnswer =
  | Aborted
  | Succeeded of FSharpCheckFileResults
-
union case FSharpCheckFileAnswer.Succeeded: FSharpCheckFileResults -> FSharpCheckFileAnswer
-
val res : FSharpCheckFileResults
-
val res : FSharpCheckFileAnswer
-
val failwithf : format:Printf.StringFormat<'T,'Result> -> 'T
-
val input2 : string
-
val checkFileResults : FSharpCheckFileResults
-
val partialAssemblySignature : FSharpAssemblySignature
-
property FSharpCheckFileResults.PartialAssemblySignature: FSharpAssemblySignature with get
-
property FSharpAssemblySignature.Entities: Collections.Generic.IList<FSharpEntity> with get
-
property Collections.Generic.ICollection.Count: int with get
-
val moduleEntity : FSharpEntity
-
property FSharpEntity.DisplayName: string with get
-
val classEntity : FSharpEntity
-
property FSharpEntity.NestedEntities: Collections.Generic.IList<FSharpEntity> with get
-
val fnVal : FSharpMemberOrFunctionOrValue
-
property FSharpEntity.MembersFunctionsAndValues: Collections.Generic.IList<FSharpMemberOrFunctionOrValue> with get
-
property FSharpMemberOrFunctionOrValue.Attributes: Collections.Generic.IList<FSharpAttribute> with get
-
property FSharpMemberOrFunctionOrValue.CurriedParameterGroups: Collections.Generic.IList<Collections.Generic.IList<FSharpParameter>> with get
-
property FSharpMemberOrFunctionOrValue.DeclarationLocation: FSharp.Compiler.Range.range with get
-
property FSharp.Compiler.Range.range.StartLine: int with get
-
property FSharpMemberOrFunctionOrValue.DisplayName: string with get
-
property FSharpMemberOrFunctionOrValue.DeclaringEntity: FSharpEntity option with get
-
property Option.Value: FSharpEntity with get
-
property FSharpEntity.DeclarationLocation: FSharp.Compiler.Range.range with get
-
property FSharpMemberOrFunctionOrValue.GenericParameters: Collections.Generic.IList<FSharpGenericParameter> with get
-
property FSharpMemberOrFunctionOrValue.InlineAnnotation: FSharpInlineAnnotation with get
-
property FSharpMemberOrFunctionOrValue.IsActivePattern: bool with get
-
property FSharpMemberOrFunctionOrValue.IsCompilerGenerated: bool with get
-
property FSharpMemberOrFunctionOrValue.IsDispatchSlot: bool with get
-
property FSharpMemberOrFunctionOrValue.IsExtensionMember: bool with get
-
property FSharpMemberOrFunctionOrValue.IsPropertyGetterMethod: bool with get
-
property FSharpMemberOrFunctionOrValue.IsImplicitConstructor: bool with get
-
property FSharpMemberOrFunctionOrValue.IsInstanceMember: bool with get
-
property FSharpMemberOrFunctionOrValue.IsMember: bool with get
-
property FSharpMemberOrFunctionOrValue.IsModuleValueOrMember: bool with get
-
property FSharpMemberOrFunctionOrValue.IsMutable: bool with get
-
property FSharpMemberOrFunctionOrValue.IsPropertySetterMethod: bool with get
-
property FSharpMemberOrFunctionOrValue.IsTypeFunction: bool with get
-
property FSharpMemberOrFunctionOrValue.FullType: FSharpType with get
-
property FSharpType.IsFunctionType: bool with get
-
property FSharpType.GenericArguments: Collections.Generic.IList<FSharpType> with get
-
val argTy1 : FSharpType
-
property FSharpType.TypeDefinition: FSharpEntity with get
-
property FSharpType.HasTypeDefinition: bool with get
-
property FSharpEntity.IsFSharpAbbreviation: bool with get
-
val argTy1b : FSharpType
-
property FSharpEntity.AbbreviatedType: FSharpType with get
-
property FSharpEntity.Namespace: string option with get
-
property FSharpEntity.CompiledName: string with get
-
val argTy1c : FSharpType
-
val projectContext : FSharpProjectContext
-
property FSharpCheckFileResults.ProjectContext: FSharpProjectContext with get
-
val assembly : FSharpAssembly
-
member FSharpProjectContext.GetReferencedAssemblies : unit -> FSharpAssembly list
-
property FSharpAssembly.FileName: string option with get
-
union case Option.None: Option<'T>
-
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
-
union case Option.Some: Value: 'T -> Option<'T>
-
val s : string
-
val parseAndCheckScript : file:string * input:FSharp.Compiler.Text.ISourceText -> FSharpCheckProjectResults
-
val errors : FSharpErrorInfo list
-
val projResults : FSharpCheckProjectResults
-
member FSharpChecker.ParseAndCheckProject : options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpCheckProjectResults>
-
val tmpFile : string
-
type Path =
  static val DirectorySeparatorChar : char
  static val AltDirectorySeparatorChar : char
  static val VolumeSeparatorChar : char
  static val PathSeparator : char
  static val InvalidPathChars : char[]
  static member ChangeExtension : path:string * extension:string -> string
  static member Combine : [<ParamArray>] paths:string[] -> string + 3 overloads
  static member GetDirectoryName : path:string -> string + 1 overload
  static member GetExtension : path:string -> string + 1 overload
  static member GetFileName : path:string -> string + 1 overload
  ...
-
Path.ChangeExtension(path: string, extension: string) : string
-
Path.GetTempFileName() : string
-
type File =
  static member AppendAllLines : path:string * contents:IEnumerable<string> -> unit + 1 overload
  static member AppendAllLinesAsync : path:string * contents:IEnumerable<string> * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendAllText : path:string * contents:string -> unit + 1 overload
  static member AppendAllTextAsync : path:string * contents:string * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendText : path:string -> StreamWriter
  static member Copy : sourceFileName:string * destFileName:string -> unit + 1 overload
  static member Create : path:string -> FileStream + 2 overloads
  static member CreateText : path:string -> StreamWriter
  static member Decrypt : path:string -> unit
  static member Delete : path:string -> unit
  ...
-
File.WriteAllText(path: string, contents: string) : unit
File.WriteAllText(path: string, contents: string, encoding: Text.Encoding) : unit
-
val projectResults : FSharpCheckProjectResults
-
val assemblySig : FSharpAssemblySignature
-
property FSharpCheckProjectResults.AssemblySignature: FSharpAssemblySignature with get
-
union case ScopeKind.Namespace: ScopeKind
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/ja/tokenizer.html b/docs/ja/tokenizer.html deleted file mode 100644 index 09e7021dc8..0000000000 --- a/docs/ja/tokenizer.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - コンパイラサービス:F#トークナイザを使用する - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

コンパイラサービス:F#トークナイザを使用する

-

このチュートリアルではF#言語トークナイザの呼び出し方を紹介します。 -F#のソースコードに対して、トークナイザは -コードの各行にあるトークンに関する情報を含んだソースコード行のリストを生成します。 -各トークンに対してはトークンの種類や位置を取得したり、 -トークンの種類(キーワード、識別子、数値、演算子など)に応じた -色を取得したりすることができます。

-
-

注意: 以下で使用しているAPIは実験的なもので、 -新しいnugetパッケージの公開に伴って変更される可能性があります。

-
-

トークナイザの作成

-

トークナイザを使用するには、 FSharp.Compiler.Service.dll への参照を追加した後に -SourceCodeServices 名前空間をオープンします:

- - - -
1: 
-2: 
-
#r "FSharp.Compiler.Service.dll"
-open FSharp.Compiler.SourceCodeServices
-
-

すると FSharpSourceTokenizer のインスタンスを作成できるようになります。 -このクラスには2つの引数を指定します。 -最初の引数には定義済みのシンボルのリスト、 -2番目の引数にはソースコードのファイル名を指定します。 -定義済みのシンボルのリストを指定するのは、 -トークナイザが #if ディレクティブを処理する必要があるからです。 -ファイル名はソースコードの位置を特定する場合にのみ指定する必要があります -(存在しないファイル名でも指定できます):

- - - -
1: 
-
let sourceTok = FSharpSourceTokenizer([], "C:\\test.fsx")
-
-

sourceTok オブジェクトを使用することでF#ソースコードの各行を -(繰り返し)トークン化することができます。

-

F#コードのトークン化

-

トークナイザはソースファイル全体ではなく、行単位で処理を行います。 -トークンを取得した後、トークナイザは新しいステートを( int64 値として)返します。 -この値を使うとF#コードをより効率的にトークン化できます。 -つまり、ソースコードが変更された場合もファイル全体を -再度トークン化する必要はありません。 -変更された部分だけをトークン化すればよいのです。

-

1行をトークン化する

-

1行をトークン化するには、先ほど作成した FSharpSourceTokenizer オブジェクトに対して -CreateLineTokenizer を呼び、 FSharpLineTokenizer を作成します:

- - - -
1: 
-
let tokenizer = sourceTok.CreateLineTokenizer("let answer=42")
-
-

そして tokenizerScanToken を繰り返し None を返すまで -(つまり最終行に到達するまで)繰り返し呼び出すような単純な再帰関数を用意します。 -この関数が成功すると、必要な詳細情報をすべて含んだ FSharpTokenInfo オブジェクトが -返されます:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-9: 
-
/// F#コード1行をトークン化します
-let rec tokenizeLine (tokenizer:FSharpLineTokenizer) state =
-  match tokenizer.ScanToken(state) with
-  | Some tok, state ->
-      // トークン名を表示
-      printf "%s " tok.TokenName
-      // 新しい状態で残りをトークン化
-      tokenizeLine tokenizer state
-  | None, state -> state
-
-

この関数は、複数行コードや複数行コメント内の前方の行をトークン化する場合に -必要となるような新しい状態を返します。 -初期値としては 0L を指定します:

- - - -
1: 
-
tokenizeLine tokenizer FSharpTokenizerLexState.Initial
-
-

この結果は LET WHITESPACE IDENT EQUALS INT32 という -トークン名のシーケンスになります。 -FSharpTokenInfo にはたとえば以下のような興味深いプロパティが多数あります:

-
    -
  • -CharClass および ColorClass はF#コードを色づけする場合に使用できるような、 -トークンのカテゴリに関する情報を返します。 -
  • -
  • LeftColumn および RightColumn は行内におけるトークンの位置を返します。
  • -
  • TokenName は(F# レキサ内で定義された)トークンの名前を返します。
  • -
-

なおトークナイザはステートフルであることに注意してください。 -つまり、1行を複数回トークン化したい場合にはその都度 CreateLineTokenizer を -呼び出す必要があります。

-

サンプルコードのトークン化

-

トークナイザをもっと長いサンプルコードやファイル全体に対して実行する場合、 -サンプル入力を string のコレクションとして読み取る必要があります:

- - - -
1: 
-2: 
-3: 
-4: 
-
let lines = """
-  // Hello world
-  let hello() =
-     printfn "Hello world!" """.Split('\r','\n')
-
-

複数行の入力値をトークン化する場合も、現在の状態を保持するような -再帰関数が必要になります。 -以下の関数はソースコード行を文字列のリストとして受け取ります -(また、行番号および現在の状態も受け取ります)。 -各行に対して新しいトークナイザを作成して、 -直前の行における 最後 の状態を使って tokenizeLine を呼び出します:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-
/// 複数行のコードに対してトークンの名前を表示します
-let rec tokenizeLines state count lines = 
-  match lines with
-  | line::lines ->
-      // トークナイザを作成して1行をトークン化
-      printfn "\nLine %d" count
-      let tokenizer = sourceTok.CreateLineTokenizer(line)
-      let state = tokenizeLine tokenizer state
-      // 新しい状態を使って残りをトークン化
-      tokenizeLines state (count+1) lines
-  | [] -> ()
-
-

ここでは単に(先ほど定義した) tokenizeLine を呼び出して、 -各行にあるすべてのトークンの名前を表示しています。 -この関数は先と同じく、初期状態の値 0L と、1行目を表す 1 を -指定して呼び出すことができます:

- - - -
1: 
-2: 
-3: 
-
lines
-|> List.ofSeq
-|> tokenizeLines FSharpTokenizerLexState.Initial 1
-
-

重要ではない部分(各行の先頭にある空白文字や、1行目のように空白文字しかない行) -を除けば、このコードを実行すると以下のような出力になります:

- -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-
Line 1
-  LINE_COMMENT LINE_COMMENT (...) LINE_COMMENT 
-Line 2
-  LET WHITESPACE IDENT LPAREN RPAREN WHITESPACE EQUALS 
-Line 3
-  IDENT WHITESPACE STRING_TEXT (...) STRING_TEXT STRING 
-
-

注目すべきは、単一行コメントや文字列に対して、 -トークナイザが複数回(大まかにいって単語単位で) LINE_COMMENT や -STRING_TEXT を返しているところです。 -したがって、コメントや文字列全体をテキストとして取得したい場合には -それぞれのトークンを連結する必要があります。

- -
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
val sourceTok : FSharpSourceTokenizer
-
Multiple items
type FSharpSourceTokenizer =
  new : conditionalDefines:string list * fileName:string option -> FSharpSourceTokenizer
  member CreateBufferTokenizer : bufferFiller:(char [] * int * int -> int) -> FSharpLineTokenizer
  member CreateLineTokenizer : lineText:string -> FSharpLineTokenizer

--------------------
new : conditionalDefines:string list * fileName:string option -> FSharpSourceTokenizer
-
val tokenizer : FSharpLineTokenizer
-
member FSharpSourceTokenizer.CreateLineTokenizer : lineText:string -> FSharpLineTokenizer
-
val tokenizeLine : tokenizer:FSharpLineTokenizer -> state:FSharpTokenizerLexState -> FSharpTokenizerLexState


 F#コード1行をトークン化します
-
type FSharpLineTokenizer =
  member ScanToken : lexState:FSharpTokenizerLexState -> FSharpTokenInfo option * FSharpTokenizerLexState
  static member ColorStateOfLexState : FSharpTokenizerLexState -> FSharpTokenizerColorState
  static member LexStateOfColorState : FSharpTokenizerColorState -> FSharpTokenizerLexState
-
[<Struct>]
val state : FSharpTokenizerLexState
-
member FSharpLineTokenizer.ScanToken : lexState:FSharpTokenizerLexState -> FSharpTokenInfo option * FSharpTokenizerLexState
-
union case Option.Some: Value: 'T -> Option<'T>
-
val tok : FSharpTokenInfo
-
val printf : format:Printf.TextWriterFormat<'T> -> 'T
-
FSharpTokenInfo.TokenName: string
-
union case Option.None: Option<'T>
-
[<Struct>]
type FSharpTokenizerLexState =
  { PosBits: int64
    OtherBits: int64 }
    member Equals : FSharpTokenizerLexState -> bool
    static member Initial : FSharpTokenizerLexState
-
property FSharpTokenizerLexState.Initial: FSharpTokenizerLexState with get
-
val lines : string []
-
val tokenizeLines : state:FSharpTokenizerLexState -> count:int -> lines:string list -> unit


 複数行のコードに対してトークンの名前を表示します
-
val count : int
-
val lines : string list
-
val line : string
-
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
-
Multiple items
module List

from Microsoft.FSharp.Collections

--------------------
type List<'T> =
  | ( [] )
  | ( :: ) of Head: 'T * Tail: 'T list
    interface IReadOnlyList<'T>
    interface IReadOnlyCollection<'T>
    interface IEnumerable
    interface IEnumerable<'T>
    member GetSlice : startIndex:int option * endIndex:int option -> 'T list
    member Head : 'T
    member IsEmpty : bool
    member Item : index:int -> 'T with get
    member Length : int
    member Tail : 'T list
    ...
-
val ofSeq : source:seq<'T> -> 'T list
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/ja/untypedtree.html b/docs/ja/untypedtree.html deleted file mode 100644 index bf3ff51852..0000000000 --- a/docs/ja/untypedtree.html +++ /dev/null @@ -1,487 +0,0 @@ - - - - - コンパイラサービス:型無し構文木の処理 - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

コンパイラサービス:型無し構文木の処理

-

このチュートリアルではF#コードに対する型無し抽象構文木 -(untyped abstract syntax tree: untyped AST) -を取得する方法、および木全体を走査する方法を紹介します。 -この処理を行うことによって、コードフォーマットツールや -基本的なリファクタリングツール、コードナビゲーションツールなどを作成できます。 -型無し構文木にはコードの構造に関する情報が含まれていますが、 -型情報が含まれていないだけでなく、後で型チェッカーを通すまでは -解決されないような曖昧さも残されています。 -また、 エディタサービス として提供されているAPIと -型無しASTの情報を組み合わせることもできます。

-
-

注釈: 以下で使用しているAPIは試験的なもので、将来的に変更される場合があります。 -つまりFSharp.Compiler.Service.dll には既存のものと重複する機能が多数あるため、 -将来的にはもっときちんとした形に変更されます。 -そのため、これらのサービスを使用するAPIには破壊的変更が加えられる可能性があります。

-
-

型無しASTの取得

-

型無しASTにアクセスするには、 FSharpChecker のインスタンスを作成します。 -これは型チェックおよびパース用のコンテキストを表す型で、、 -スタンドアロンのF#スクリプトファイル(たとえばVisual Studioで開いたファイル)、 -あるいは複数ファイルで構成されたロード済みのプロジェクトファイルの -いずれかと結びつきます。 -このインスタンスを作成すると、型チェックの最初のステップである -「型無しパース」を実行できます。 -次のフェーズは「型有りパース」で、これは エディタサービス で -使用されるものです。

-

インタラクティブチェッカーを使用するには、 -FSharp.Compiler.Service.dll への参照を追加した後、 -SourceCodeServices 名前空間をオープンします:

- - - -
1: 
-2: 
-3: 
-
#r "FSharp.Compiler.Service.dll"
-open System
-open FSharp.Compiler.SourceCodeServices
-
-

型無しパースの実行

-

型無しパース処理は(それなりの時間がかかる型チェック処理と比較すると) -かなり高速なため、同期的に実行できます。 -まず FSharpChecker を作成します。

- - - -
1: 
-2: 
-
// インタラクティブチェッカーのインスタンスを作成
-let checker = FSharpChecker.Create()
-
-

ASTを取得するために、ファイル名とソースコードを受け取る関数を用意します -(ファイル名は位置情報のためだけに使用されるもので、存在しなくても構いません)。 -まず、コンテキストを表す「インタラクティブチェッカーオプション」を -用意する必要があります。 -単純な処理に対しては、 GetCheckOptionsFromScriptRoot を使えば -スクリプトファイルのコンテキストを推測させることができます。 -そして UntypedParse メソッドを呼び出した後、 -ParseTree プロパティの値を返します:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-
/// 特定の入力に対する型無し構文木を取得する
-let getUntypedTree (file, input) = 
-  // 1つのスクリプトファイルから推測される「プロジェクト」用の
-  // コンパイラオプションを取得する
-  let projOptions, errors =
-      checker.GetProjectOptionsFromScript(file, input) 
-      |> Async.RunSynchronously
-
-  let parsingOptions, _errors = checker.GetParsingOptionsFromProjectOptions(projectOptions)
-
-  // コンパイラの第1フェーズを実行する
-  let untypedRes = 
-      checker.ParseFile(file, input, parsingOptions) 
-      |> Async.RunSynchronously
-
-  match untypedRes.ParseTree with
-  | Some tree -> tree
-  | None -> failwith "パース中に何らかの問題が発生しました!"
-
-

FSharpChecker の詳細については - APIドキュメント -の他に、F# ソースコードのインラインコメントも参考になるでしょう -( service.fsi のソースコードを参照 )。

-

ASTの走査

-

抽象構文木は(式やパターン、宣言など)それぞれ異なる文法的要素を表現する、 -多数の判別共用体として定義されています。 -ASTを理解するには -ast.fs内にあるソースコード -の定義を確認する方法が一番よいでしょう。

-

ASTに関連する要素は以下の名前空間に含まれています:

- - - -
1: 
-
open FSharp.Compiler.Ast
-
-

ASTを処理する場合、異なる文法的要素に対するパターンマッチを行うような -相互再帰関数を多数用意することになります。 -サポートすべき要素は非常に多種多様です。 -たとえばトップレベル要素としてはモジュールや名前空間の宣言、 -モジュール内における(letバインディングや型などの)宣言などがあります。 -モジュール内のlet宣言には式が含まれ、さらにこの式に -パターンが含まれていることもあります。

-

パターンと式を走査する

-

まずは式とパターンを走査する関数から始めます。 -この関数は要素を走査しつつ、要素に関する情報を画面に表示します。 -パターンの場合、入力は SynPat 型であり、この型には Wild ( _ パターンを表す)や -Named ( <pat> という名前 のパターン)、 -LongIdent ( Foo.Bar 形式の名前)など、多数のケースがあります。 -なお、基本的にパース後のパターンは元のソースコードの見た目よりも複雑になります -(具体的には Named がかなり多数現れます):

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-
/// パターンの走査
-/// これは let <pat> = <expr> あるいは 'match' 式に対する例です
-let rec visitPattern = function
-  | SynPat.Wild(_) -> 
-      printfn "  .. アンダースコアパターン"
-  | SynPat.Named(pat, name, _, _, _) ->
-      visitPattern pat
-      printfn "  .. 名前 '%s' のパターン" name.idText
-  | SynPat.LongIdent(LongIdentWithDots(ident, _), _, _, _, _, _) ->
-      let names = String.concat "." [ for i in ident -> i.idText ]
-      printfn "  .. 識別子: %s" names
-  | pat -> printfn "  .. その他のパターン: %A" pat
-
-

この関数は (bar という名前の (foo, _) のような、 -ネストされたパターンに対応するために) 再帰関数になっていますが、 -以降で定義するいずれの関数も呼び出しません -(パターンはその他の文法的な要素を含むことができないからです)。

-

次の関数は式全体を走査するものです。 -これは処理の大部分が行われる関数で、 -20以上のケースをカバーすることになるでしょう -( SynExpr と入力するとその他のオプションが確認できます)。 -以下のコードでは if .. then ..let .. = ... という式を -処理する方法だけを紹介しています:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-21: 
-22: 
-23: 
-24: 
-
/// 式を走査する。
-/// 式に2つあるいは3つの部分式が含まれていた場合('else'の分岐がない場合は2つ)、
-/// let式にはパターンおよび2つの部分式が含まれる
-let rec visitExpression = function
-  | SynExpr.IfThenElse(cond, trueBranch, falseBranchOpt, _, _, _, _) ->
-      // すべての部分式を走査
-      printfn "条件部:"
-      visitExpression cond
-      visitExpression trueBranch
-      falseBranchOpt |> Option.iter visitExpression 
-
-  | SynExpr.LetOrUse(_, _, bindings, body, _) ->
-      // バインディングを走査
-      // ('let .. = .. and .. = .. in ...' に対しては複数回走査されることがある)
-      printfn "以下のバインディングを含むLetOrUse:"
-      for binding in bindings do
-        let (Binding(access, kind, inlin, mutabl, attrs, xmlDoc, 
-                     data, pat, retInfo, init, m, sp)) = binding
-        visitPattern pat 
-        visitExpression init
-      // 本体の式を走査
-      printfn "本体は以下:"
-      visitExpression body
-  | expr -> printfn " - サポート対象外の式: %A" expr
-
-

visitExpression 関数はモジュール内のすべてのトップレベル宣言を走査するような -関数から呼ばれることになります。 -今回のチュートリアルでは型やメンバーを無視していますが、 -これらを走査する場合も visitExpression を呼び出すことになるでしょう。

-

宣言を走査する

-

既に説明したように、1つのファイルに対するASTには多数のモジュールや -名前空間の宣言が(トップレベルノードとして)含まれ、 -モジュール内にも(letバインディングや型の)宣言が、 -名前空間にも(こちらは単に型だけの)宣言が含まれます。 -以下の関数はそれぞれの宣言を走査します。 -ただし今回は型やネストされたモジュール、その他の要素については無視して、 -トップレベルの(値および関数に対する) let バインディングだけを対象にしています:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-
/// モジュール内の宣言リストを走査する。
-/// モジュール内のトップレベルに記述できるすべての要素
-/// (letバインディングやネストされたモジュール、型の宣言など)が対象になる。
-let visitDeclarations decls = 
-  for declaration in decls do
-    match declaration with
-    | SynModuleDecl.Let(isRec, bindings, range) ->
-        // 宣言としてのletバインディングは
-        // (visitExpressionで処理したような)式としてのletバインディングと
-        // 似ているが、本体を持たない
-        for binding in bindings do
-          let (Binding(access, kind, inlin, mutabl, attrs, xmlDoc, 
-                       data, pat, retInfo, body, m, sp)) = binding
-          visitPattern pat 
-          visitExpression body         
-    | _ -> printfn " - サポート対象外の宣言: %A" declaration
-
-

visitDeclarations 関数はモジュールや名前空間の宣言のシーケンスを走査する -関数から呼ばれることになります。 -このシーケンスはたとえば複数の namespace Foo 宣言を含むようなファイルに対応します:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-9: 
-
/// すべてのモジュールや名前空間の宣言を走査する
-/// (基本的には 'module Foo =' または 'namespace Foo.Bar' というコード)
-/// なおファイル中で明示的に定義されていない場合であっても
-/// 暗黙的にモジュールまたは名前空間の宣言が存在することに注意。
-let visitModulesAndNamespaces modulesOrNss =
-  for moduleOrNs in modulesOrNss do
-    let (SynModuleOrNamespace(lid, isRec, isMod, decls, xml, attrs, _, m)) = moduleOrNs
-    printfn "名前空間またはモジュール: %A" lid
-    visitDeclarations decls
-
-

以上でASTの要素を(宣言から始まって式やパターンに至るまで)走査するための -関数がそろったので、サンプル入力からASTを取得した後、 -上記の関数を実行することができるようになりました。

-

すべてを組み合わせる

-

既に説明したように、 getUntypedTree 関数では FSharpChecker を使って -ASTに対する第1フェーズ(パース)を行ってツリーを返しています。 -この関数にはF#のソースコードとともに、ファイルのパスを指定する必要があります。 -(単に位置情報として利用されるだけなので) -指定先のパスにファイルが存在している必要はなく、 -UnixとWindowsどちらの形式でも指定できます:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-
// コンパイラサービスへのサンプル入力
-let input = """
-  let foo() = 
-    let msg = "Hello world"
-    if true then 
-      printfn "%s" msg """
-// Unix形式のファイル名
-let file = "/home/user/Test.fsx"
-
-// サンプルF#コードに対するASTを取得
-let tree = getUntypedTree(file, input) 
-
-

このコードをF# Interactiveで実行した場合、コンソールに tree;; と入力すると、 -データ構造に対する文字列表現が表示されることが確認できます。 -ツリーには大量の情報が含まれているため、あまり読みやすいものではありませんが、 -木が動作する様子を想像することはできるでしょう。

-

tree の返値はやはり判別共用体で、2つのケースに分かれます。 -1つはF#のシグネチャファイル( *.fsi )を表す ParsedInput.SigFile で、 -もう1つは通常のソースコード( *.fsx または *.fs )を表す -ParsedInput.ImplFile です。 -上記の手順で作成した関数に渡すことができるモジュールや名前空間のシーケンスは -実装ファイルに含まれています:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
// 実装ファイルの詳細をチェックする
-match tree with
-| ParsedInput.ImplFile(implFile) ->
-    // 宣言を展開してそれぞれを走査する
-    let (ParsedImplFileInput(fn, script, name, _, _, modules, _)) = implFile
-    visitModulesAndNamespaces modules
-| _ -> failwith "F# インターフェイスファイル (*.fsi) は未サポートです。"
-
-

まとめ

-

このチュートリアルでは型無し抽象構文木に対する基本的な走査方法を紹介しました。 -このトピックは包括的なものであるため、1つの記事ですべてを説明することは不可能です。 -さらに深く理解するためには、型無しASTを活用するツールのよい例として -Fantomas project を参考にするとよいでしょう。 -実際には今回参照したような情報と、次のチュートリアルで説明する -エディタサービス から得られる情報とを -組み合わせて利用することになるでしょう。

- -
namespace System
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
val checker : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
val getUntypedTree : file:string * input:FSharp.Compiler.Text.ISourceText -> FSharp.Compiler.SyntaxTree.ParsedInput


 特定の入力に対する型無し構文木を取得する
-
val file : string
-
val input : FSharp.Compiler.Text.ISourceText
-
val projOptions : FSharpProjectOptions
-
val errors : FSharpErrorInfo list
-
member FSharpChecker.GetProjectOptionsFromScript : filename:string * sourceText:FSharp.Compiler.Text.ISourceText * ?previewEnabled:bool * ?loadedTimeStamp:DateTime * ?otherFlags:string [] * ?useFsiAuxLib:bool * ?useSdkRefs:bool * ?assumeDotNetFramework:bool * ?extraProjectInfo:obj * ?optionsStamp:int64 * ?userOpName:string -> Async<FSharpProjectOptions * FSharpErrorInfo list>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
val parsingOptions : FSharpParsingOptions
-
val _errors : FSharpErrorInfo list
-
member FSharpChecker.GetParsingOptionsFromProjectOptions : FSharpProjectOptions -> FSharpParsingOptions * FSharpErrorInfo list
-
val untypedRes : FSharpParseFileResults
-
member FSharpChecker.ParseFile : filename:string * sourceText:FSharp.Compiler.Text.ISourceText * options:FSharpParsingOptions * ?userOpName:string -> Async<FSharpParseFileResults>
-
property FSharpParseFileResults.ParseTree: FSharp.Compiler.SyntaxTree.ParsedInput option with get
-
union case Option.Some: Value: 'T -> Option<'T>
-
val tree : FSharp.Compiler.SyntaxTree.ParsedInput
-
union case Option.None: Option<'T>
-
val failwith : message:string -> 'T
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp

--------------------
type FSharpAttribute =
  member Format : context:FSharpDisplayContext -> string
  member AttributeType : FSharpEntity
  member ConstructorArguments : IList<FSharpType * obj>
  member IsUnresolved : bool
  member NamedArguments : IList<FSharpType * string * bool * obj>
-
val visitPattern : (obj -> obj)


 パターンの走査
 これは let <pat> = <expr> あるいは 'match' 式に対する例です
-
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
-
Multiple items
type String =
  new : value:char[] -> string + 8 overloads
  member Chars : int -> char
  member Clone : unit -> obj
  member CompareTo : value:obj -> int + 1 overload
  member Contains : value:string -> bool + 3 overloads
  member CopyTo : sourceIndex:int * destination:char[] * destinationIndex:int * count:int -> unit
  member EndsWith : value:string -> bool + 3 overloads
  member Equals : obj:obj -> bool + 2 overloads
  member GetEnumerator : unit -> CharEnumerator
  member GetHashCode : unit -> int + 1 overload
  ...

--------------------
String(value: char []) : String
String(value: nativeptr<char>) : String
String(value: nativeptr<sbyte>) : String
String(value: ReadOnlySpan<char>) : String
String(c: char, count: int) : String
String(value: char [], startIndex: int, length: int) : String
String(value: nativeptr<char>, startIndex: int, length: int) : String
String(value: nativeptr<sbyte>, startIndex: int, length: int) : String
String(value: nativeptr<sbyte>, startIndex: int, length: int, enc: Text.Encoding) : String
-
val concat : sep:string -> strings:seq<string> -> string
-
val visitExpression : (obj -> obj)


 式を走査する。
 式に2つあるいは3つの部分式が含まれていた場合('else'の分岐がない場合は2つ)、
 let式にはパターンおよび2つの部分式が含まれる
-
module Option

from Microsoft.FSharp.Core
-
val iter : action:('T -> unit) -> option:'T option -> unit
-
val visitDeclarations : decls:seq<'a> -> unit


 モジュール内の宣言リストを走査する。
 モジュール内のトップレベルに記述できるすべての要素
 (letバインディングやネストされたモジュール、型の宣言など)が対象になる。
-
val decls : seq<'a>
-
val declaration : 'a
-
val visitModulesAndNamespaces : modulesOrNss:seq<'a> -> unit


 すべてのモジュールや名前空間の宣言を走査する
 (基本的には 'module Foo =' または 'namespace Foo.Bar' というコード)
 なおファイル中で明示的に定義されていない場合であっても
 暗黙的にモジュールまたは名前空間の宣言が存在することに注意。
-
val modulesOrNss : seq<'a>
-
val moduleOrNs : 'a
-
val input : string
-
module ParsedInput

from FSharp.Compiler.SourceCodeServices
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/project.html b/docs/project.html deleted file mode 100644 index 23d7bd183f..0000000000 --- a/docs/project.html +++ /dev/null @@ -1,667 +0,0 @@ - - - - - Compiler Services: Project Analysis - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Compiler Services: Project Analysis

-

This tutorial demonstrates how to can analyze a whole project using services provided by the F# compiler.

-
-

NOTE: The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published.

-
-

Getting whole-project results

-

As in the previous tutorial (using untyped AST), we start by referencing -FSharp.Compiler.Service.dll, opening the relevant namespace and creating an instance -of InteractiveChecker:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-
// Reference F# compiler API
-#r "FSharp.Compiler.Service.dll"
-
-open System
-open System.Collections.Generic
-open FSharp.Compiler.SourceCodeServices
-open FSharp.Compiler.Text
-
-// Create an interactive checker instance 
-let checker = FSharpChecker.Create()
-
-

Here are our sample inputs:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-21: 
-22: 
-23: 
-24: 
-25: 
-26: 
-27: 
-28: 
-29: 
-30: 
-31: 
-32: 
-33: 
-34: 
-35: 
-
module Inputs = 
-    open System.IO
-
-    let base1 = Path.GetTempFileName()
-    let fileName1 = Path.ChangeExtension(base1, ".fs")
-    let base2 = Path.GetTempFileName()
-    let fileName2 = Path.ChangeExtension(base2, ".fs")
-    let dllName = Path.ChangeExtension(base2, ".dll")
-    let projFileName = Path.ChangeExtension(base2, ".fsproj")
-    let fileSource1 = """
-module M
-
-type C() = 
-    member x.P = 1
-
-let xxx = 3 + 4
-let fff () = xxx + xxx
-    """
-    File.WriteAllText(fileName1, fileSource1)
-
-    let fileSource2 = """
-module N
-
-open M
-
-type D1() = 
-    member x.SomeProperty = M.xxx
-
-type D2() = 
-    member x.SomeProperty = M.fff() + D1().P
-
-// Generate a warning
-let y2 = match 1 with 1 -> M.xxx
-    """
-    File.WriteAllText(fileName2, fileSource2)
-
-

We use GetProjectOptionsFromCommandLineArgs to treat two files as a project:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-21: 
-22: 
-23: 
-24: 
-25: 
-26: 
-27: 
-28: 
-29: 
-30: 
-31: 
-32: 
-33: 
-34: 
-35: 
-36: 
-37: 
-38: 
-39: 
-40: 
-41: 
-
let projectOptions = 
-    let sysLib nm = 
-        if System.Environment.OSVersion.Platform = System.PlatformID.Win32NT then
-            // file references only valid on Windows
-            System.Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFilesX86) +
-            @"\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\" + nm + ".dll"
-        else
-            let sysDir = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()
-            let (++) a b = System.IO.Path.Combine(a,b)
-            sysDir ++ nm + ".dll" 
-
-    let fsCore4300() = 
-        if System.Environment.OSVersion.Platform = System.PlatformID.Win32NT then
-            // file references only valid on Windows
-            System.Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFilesX86) +
-            @"\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll"  
-        else 
-            sysLib "FSharp.Core"
-
-    checker.GetProjectOptionsFromCommandLineArgs
-       (Inputs.projFileName,
-        [| yield "--simpleresolution" 
-           yield "--noframework" 
-           yield "--debug:full" 
-           yield "--define:DEBUG" 
-           yield "--optimize-" 
-           yield "--out:" + Inputs.dllName
-           yield "--doc:test.xml" 
-           yield "--warn:3" 
-           yield "--fullpaths" 
-           yield "--flaterrors" 
-           yield "--target:library" 
-           yield Inputs.fileName1
-           yield Inputs.fileName2
-           let references =
-             [ sysLib "mscorlib" 
-               sysLib "System"
-               sysLib "System.Core"
-               fsCore4300() ]
-           for r in references do 
-                 yield "-r:" + r |])
-
-

Now check the entire project (using the files saved on disk):

- - - -
1: 
-
let wholeProjectResults = checker.ParseAndCheckProject(projectOptions) |> Async.RunSynchronously
-
-

Now look at the errors and warnings:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
wholeProjectResults .Errors.Length // 1
-wholeProjectResults.Errors.[0].Message.Contains("Incomplete pattern matches on this expression") // yes it does
-
-wholeProjectResults.Errors.[0].StartLineAlternate // 13
-wholeProjectResults.Errors.[0].EndLineAlternate // 13
-wholeProjectResults.Errors.[0].StartColumn // 15
-wholeProjectResults.Errors.[0].EndColumn // 16
-
-

Now look at the inferred signature for the project:

- - - -
1: 
-2: 
-3: 
-4: 
-
[ for x in wholeProjectResults.AssemblySignature.Entities -> x.DisplayName ] // ["N"; "M"]
-[ for x in wholeProjectResults.AssemblySignature.Entities.[0].NestedEntities -> x.DisplayName ] // ["D1"; "D2"]
-[ for x in wholeProjectResults.AssemblySignature.Entities.[1].NestedEntities -> x.DisplayName ] // ["C"]
-[ for x in wholeProjectResults.AssemblySignature.Entities.[0].MembersFunctionsAndValues -> x.DisplayName ] // ["y"; "y2"]
-
-

You can also get all symbols in the project:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-
let rec allSymbolsInEntities (entities: IList<FSharpEntity>) = 
-    [ for e in entities do 
-          yield (e :> FSharpSymbol) 
-          for x in e.MembersFunctionsAndValues do
-             yield (x :> FSharpSymbol)
-          for x in e.UnionCases do
-             yield (x :> FSharpSymbol)
-          for x in e.FSharpFields do
-             yield (x :> FSharpSymbol)
-          yield! allSymbolsInEntities e.NestedEntities ]
-
-let allSymbols = allSymbolsInEntities wholeProjectResults.AssemblySignature.Entities
-
-

After checking the whole project, you can access the background results for individual files -in the project. This will be fast and will not involve any additional checking.

- - - -
1: 
-2: 
-3: 
-
let backgroundParseResults1, backgroundTypedParse1 = 
-    checker.GetBackgroundCheckResultsForFileInProject(Inputs.fileName1, projectOptions) 
-    |> Async.RunSynchronously
-
-

You can now resolve symbols in each file:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
let xSymbolUseOpt = 
-    backgroundTypedParse1.GetSymbolUseAtLocation(9,9,"",["xxx"])
-    |> Async.RunSynchronously
-
-let xSymbolUse = xSymbolUseOpt.Value
-
-let xSymbol = xSymbolUse.Symbol
-
-

You can find out more about a symbol by doing type checks on various symbol kinds:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-
let xSymbolAsValue = 
-    match xSymbol with 
-    | :? FSharpMemberOrFunctionOrValue as xSymbolAsVal -> xSymbolAsVal
-    | _ -> failwith "we expected this to be a member, function or value"
-       
-
-

For each symbol, you can look up the references to that symbol:

- - - -
1: 
-2: 
-3: 
-
let usesOfXSymbol = 
-    wholeProjectResults.GetUsesOfSymbol(xSymbol) 
-    |> Async.RunSynchronously
-
-

You can iterate all the defined symbols in the inferred signature and find where they are used:

- - - -
1: 
-2: 
-3: 
-4: 
-
let allUsesOfAllSignatureSymbols = 
-    [ for s in allSymbols do 
-         let uses = wholeProjectResults.GetUsesOfSymbol(s) |> Async.RunSynchronously 
-         yield s.ToString(), uses ]
-
-

You can also look at all the symbols uses in the whole project (including uses of symbols with local scope)

- - - -
1: 
-2: 
-3: 
-
let allUsesOfAllSymbols =  
-    wholeProjectResults.GetAllUsesOfAllSymbols()
-    |> Async.RunSynchronously
-
-

You can also request checks of updated versions of files within the project (note that the other files -in the project are still read from disk, unless you are using the FileSystem API):

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-
let parseResults1, checkAnswer1 = 
-    checker.ParseAndCheckFileInProject(Inputs.fileName1, 0, SourceText.ofString Inputs.fileSource1, projectOptions)
-    |> Async.RunSynchronously
-
-let checkResults1 = 
-    match checkAnswer1 with 
-    | FSharpCheckFileAnswer.Succeeded x ->  x 
-    | _ -> failwith "unexpected aborted"
-
-let parseResults2, checkAnswer2 = 
-    checker.ParseAndCheckFileInProject(Inputs.fileName2, 0, SourceText.ofString Inputs.fileSource2, projectOptions)
-    |> Async.RunSynchronously
-
-let checkResults2 = 
-    match checkAnswer2 with 
-    | FSharpCheckFileAnswer.Succeeded x ->  x 
-    | _ -> failwith "unexpected aborted"
-
-

Again, you can resolve symbols and ask for references:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-
let xSymbolUse2Opt = 
-    checkResults1.GetSymbolUseAtLocation(9,9,"",["xxx"])
-    |> Async.RunSynchronously
-
-let xSymbolUse2 = xSymbolUse2Opt.Value
-
-let xSymbol2 = xSymbolUse2.Symbol
-
-let usesOfXSymbol2 = 
-    wholeProjectResults.GetUsesOfSymbol(xSymbol2) 
-    |> Async.RunSynchronously
-
-

Or ask for all the symbols uses in the file (including uses of symbols with local scope)

- - - -
1: 
-2: 
-3: 
-
let allUsesOfAllSymbolsInFile1 = 
-    checkResults1.GetAllUsesOfAllSymbolsInFile()
-    |> Async.RunSynchronously
-
-

Or ask for all the uses of one symbol in one file:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
let allUsesOfXSymbolInFile1 = 
-    checkResults1.GetUsesOfSymbolInFile(xSymbol2)
-    |> Async.RunSynchronously
-
-let allUsesOfXSymbolInFile2 = 
-    checkResults2.GetUsesOfSymbolInFile(xSymbol2)
-    |> Async.RunSynchronously
-
-

Analyzing multiple projects

-

If you have multiple F# projects to analyze which include references from some projects to others, -then the simplest way to do this is to build the projects and specify the cross-project references using -a -r:path-to-output-of-project.dll argument in the ProjectOptions. However, this requires the build -of each project to succeed, producing the DLL file on disk which can be referred to.

-

In some situations, e.g. in an IDE, you may wish to allow references to other F# projects prior to successful compilation to -a DLL. To do this, fill in the ProjectReferences entry in ProjectOptions, which recursively specifies the project -options for dependent projects. Each project reference still needs a corresponding -r:path-to-output-of-project.dll -command line argument in ProjectOptions, along with an entry in ProjectReferences. -The first element of each tuple in the ProjectReferences entry should be the DLL name, i.e. path-to-output-of-project.dll. -This should be the same as the text used in the -r project reference.

-

When a project reference is used, the analysis will make use of the results of incremental -analysis of the referenced F# project from source files, without requiring the compilation of these files to DLLs.

-

To efficiently analyze a set of F# projects which include cross-references, you should populate the ProjectReferences -correctly and then analyze each project in turn.

-
-

NOTE: Project references are disabled if the assembly being referred to contains type provider components - -specifying the project reference will have no effect beyond forcing the analysis of the project, and the DLL will -still be required on disk.

-
-

Summary

-

As you have seen, the ParseAndCheckProject lets you access results of project-wide analysis -such as symbol references. To learn more about working with symbols, see Symbols.

-

Using the FSharpChecker component in multi-project, incremental and interactive editing situations may involve -knowledge of the FSharpChecker operations queue and the FSharpChecker caches.

- -
namespace System
-
namespace System.Collections
-
namespace System.Collections.Generic
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp

--------------------
type FSharpAttribute =
  member Format : context:FSharpDisplayContext -> string
  member AttributeType : FSharpEntity
  member ConstructorArguments : IList<FSharpType * obj>
  member IsUnresolved : bool
  member NamedArguments : IList<FSharpType * string * bool * obj>
-
namespace FSharp.Compiler.Text
-
val checker : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
namespace System.IO
-
val base1 : string
-
type Path =
  static val DirectorySeparatorChar : char
  static val AltDirectorySeparatorChar : char
  static val VolumeSeparatorChar : char
  static val PathSeparator : char
  static val InvalidPathChars : char[]
  static member ChangeExtension : path:string * extension:string -> string
  static member Combine : [<ParamArray>] paths:string[] -> string + 3 overloads
  static member GetDirectoryName : path:string -> string + 1 overload
  static member GetExtension : path:string -> string + 1 overload
  static member GetFileName : path:string -> string + 1 overload
  ...
-
Path.GetTempFileName() : string
-
val fileName1 : string
-
Path.ChangeExtension(path: string, extension: string) : string
-
val base2 : string
-
val fileName2 : string
-
val dllName : string
-
val projFileName : string
-
val fileSource1 : string
-
type File =
  static member AppendAllLines : path:string * contents:IEnumerable<string> -> unit + 1 overload
  static member AppendAllLinesAsync : path:string * contents:IEnumerable<string> * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendAllText : path:string * contents:string -> unit + 1 overload
  static member AppendAllTextAsync : path:string * contents:string * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendText : path:string -> StreamWriter
  static member Copy : sourceFileName:string * destFileName:string -> unit + 1 overload
  static member Create : path:string -> FileStream + 2 overloads
  static member CreateText : path:string -> StreamWriter
  static member Decrypt : path:string -> unit
  static member Delete : path:string -> unit
  ...
-
File.WriteAllText(path: string, contents: string) : unit
File.WriteAllText(path: string, contents: string, encoding: Text.Encoding) : unit
-
val fileSource2 : string
-
val projectOptions : FSharpProjectOptions
-
val sysLib : (string -> string)
-
val nm : string
-
type Environment =
  static member CommandLine : string
  static member CurrentDirectory : string with get, set
  static member CurrentManagedThreadId : int
  static member Exit : exitCode:int -> unit
  static member ExitCode : int with get, set
  static member ExpandEnvironmentVariables : name:string -> string
  static member FailFast : message:string -> unit + 1 overload
  static member GetCommandLineArgs : unit -> string[]
  static member GetEnvironmentVariable : variable:string -> string + 1 overload
  static member GetEnvironmentVariables : unit -> IDictionary + 1 overload
  ...
  nested type SpecialFolder
  nested type SpecialFolderOption
-
property Environment.OSVersion: OperatingSystem with get
-
property OperatingSystem.Platform: PlatformID with get
-
type PlatformID =
  | Win32S = 0
  | Win32Windows = 1
  | Win32NT = 2
  | WinCE = 3
  | Unix = 4
  | Xbox = 5
  | MacOSX = 6
-
field PlatformID.Win32NT: PlatformID = 2
-
Environment.GetFolderPath(folder: Environment.SpecialFolder) : string
Environment.GetFolderPath(folder: Environment.SpecialFolder, option: Environment.SpecialFolderOption) : string
-
type SpecialFolder =
  | ApplicationData = 26
  | CommonApplicationData = 35
  | LocalApplicationData = 28
  | Cookies = 33
  | Desktop = 0
  | Favorites = 6
  | History = 34
  | InternetCache = 32
  | Programs = 2
  | MyComputer = 17
  ...
-
field Environment.SpecialFolder.ProgramFilesX86: Environment.SpecialFolder = 42
-
val sysDir : string
-
namespace System.Runtime
-
namespace System.Runtime.InteropServices
-
type RuntimeEnvironment =
  static member FromGlobalAccessCache : a:Assembly -> bool
  static member GetRuntimeDirectory : unit -> string
  static member GetRuntimeInterfaceAsIntPtr : clsid:Guid * riid:Guid -> nativeint
  static member GetRuntimeInterfaceAsObject : clsid:Guid * riid:Guid -> obj
  static member GetSystemVersion : unit -> string
  static member SystemConfigurationFile : string
-
Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() : string
-
val a : string
-
val b : string
-
IO.Path.Combine([<ParamArray>] paths: string []) : string
IO.Path.Combine(path1: string, path2: string) : string
IO.Path.Combine(path1: string, path2: string, path3: string) : string
IO.Path.Combine(path1: string, path2: string, path3: string, path4: string) : string
-
val fsCore4300 : (unit -> string)
-
member FSharpChecker.GetProjectOptionsFromCommandLineArgs : projectFileName:string * argv:string [] * ?loadedTimeStamp:DateTime * ?extraProjectInfo:obj -> FSharpProjectOptions
-
module Inputs

from Project
-
val references : string list
-
val r : string
-
val wholeProjectResults : FSharpCheckProjectResults
-
member FSharpChecker.ParseAndCheckProject : options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpCheckProjectResults>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
property FSharpCheckProjectResults.Errors: FSharpErrorInfo [] with get
-
val x : FSharpEntity
-
property FSharpCheckProjectResults.AssemblySignature: FSharpAssemblySignature with get
-
property FSharpAssemblySignature.Entities: IList<FSharpEntity> with get
-
property FSharpEntity.DisplayName: string with get
-
val x : FSharpMemberOrFunctionOrValue
-
property FSharpMemberOrFunctionOrValue.DisplayName: string with get
-
val allSymbolsInEntities : entities:IList<FSharpEntity> -> FSharpSymbol list
-
val entities : IList<FSharpEntity>
-
type IList<'T> =
  inherit ICollection<'T>
  inherit IEnumerable<'T>
  inherit IEnumerable
  member IndexOf : item:'T -> int
  member Insert : index:int * item:'T -> unit
  member Item : int -> 'T with get, set
  member RemoveAt : index:int -> unit
-
type FSharpEntity =
  inherit FSharpSymbol
  private new : SymbolEnv * EntityRef -> FSharpEntity
  member AbbreviatedType : FSharpType
  member AccessPath : string
  member Accessibility : FSharpAccessibility
  member ActivePatternCases : FSharpActivePatternCase list
  member AllCompilationPaths : string list
  member AllInterfaces : IList<FSharpType>
  member ArrayRank : int
  member Attributes : IList<FSharpAttribute>
  ...
-
val e : FSharpEntity
-
type FSharpSymbol =
  member GetEffectivelySameAsHash : unit -> int
  member IsAccessible : FSharpAccessibilityRights -> bool
  member IsEffectivelySameAs : other:FSharpSymbol -> bool
  member Assembly : FSharpAssembly
  member DeclarationLocation : range option
  member DisplayName : string
  member FullName : string
  member ImplementationLocation : range option
  member IsExplicitlySuppressed : bool
  member private Item : Item
  ...
-
property FSharpEntity.MembersFunctionsAndValues: IList<FSharpMemberOrFunctionOrValue> with get
-
val x : FSharpUnionCase
-
property FSharpEntity.UnionCases: IList<FSharpUnionCase> with get
-
val x : FSharpField
-
property FSharpEntity.FSharpFields: IList<FSharpField> with get
-
property FSharpEntity.NestedEntities: IList<FSharpEntity> with get
-
val allSymbols : FSharpSymbol list
-
val backgroundParseResults1 : FSharpParseFileResults
-
val backgroundTypedParse1 : FSharpCheckFileResults
-
member FSharpChecker.GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
-
val xSymbolUseOpt : FSharpSymbolUse option
-
member FSharpCheckFileResults.GetSymbolUseAtLocation : line:int * colAtEndOfNames:int * lineText:string * names:string list * ?userOpName:string -> Async<FSharpSymbolUse option>
-
val xSymbolUse : FSharpSymbolUse
-
property Option.Value: FSharpSymbolUse with get
-
val xSymbol : FSharpSymbol
-
property FSharpSymbolUse.Symbol: FSharpSymbol with get
-
val xSymbolAsValue : FSharpMemberOrFunctionOrValue
-
type FSharpMemberOrFunctionOrValue =
  inherit FSharpSymbol
  private new : SymbolEnv * MethInfo -> FSharpMemberOrFunctionOrValue
  private new : SymbolEnv * ValRef -> FSharpMemberOrFunctionOrValue
  member FormatLayout : context:FSharpDisplayContext -> Layout
  member Overloads : bool -> IList<FSharpMemberOrFunctionOrValue> option
  member Accessibility : FSharpAccessibility
  member ApparentEnclosingEntity : FSharpEntity
  member Attributes : IList<FSharpAttribute>
  member CompiledName : string
  member CurriedParameterGroups : IList<IList<FSharpParameter>>
  ...
-
val xSymbolAsVal : FSharpMemberOrFunctionOrValue
-
val failwith : message:string -> 'T
-
val usesOfXSymbol : FSharpSymbolUse []
-
member FSharpCheckProjectResults.GetUsesOfSymbol : symbol:FSharpSymbol -> Async<FSharpSymbolUse []>
-
val allUsesOfAllSignatureSymbols : (string * FSharpSymbolUse []) list
-
val s : FSharpSymbol
-
val uses : FSharpSymbolUse []
-
Object.ToString() : string
-
val allUsesOfAllSymbols : FSharpSymbolUse []
-
member FSharpCheckProjectResults.GetAllUsesOfAllSymbols : unit -> Async<FSharpSymbolUse []>
-
val parseResults1 : FSharpParseFileResults
-
val checkAnswer1 : FSharpCheckFileAnswer
-
member FSharpChecker.ParseAndCheckFileInProject : filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileAnswer>
-
module SourceText

from FSharp.Compiler.Text
-
val ofString : string -> ISourceText
-
val checkResults1 : FSharpCheckFileResults
-
type FSharpCheckFileAnswer =
  | Aborted
  | Succeeded of FSharpCheckFileResults
-
union case FSharpCheckFileAnswer.Succeeded: FSharpCheckFileResults -> FSharpCheckFileAnswer
-
val x : FSharpCheckFileResults
-
val parseResults2 : FSharpParseFileResults
-
val checkAnswer2 : FSharpCheckFileAnswer
-
val checkResults2 : FSharpCheckFileResults
-
val xSymbolUse2Opt : FSharpSymbolUse option
-
val xSymbolUse2 : FSharpSymbolUse
-
val xSymbol2 : FSharpSymbol
-
val usesOfXSymbol2 : FSharpSymbolUse []
-
val allUsesOfAllSymbolsInFile1 : FSharpSymbolUse []
-
member FSharpCheckFileResults.GetAllUsesOfAllSymbolsInFile : unit -> Async<FSharpSymbolUse []>
-
val allUsesOfXSymbolInFile1 : FSharpSymbolUse []
-
member FSharpCheckFileResults.GetUsesOfSymbolInFile : symbol:FSharpSymbol -> Async<FSharpSymbolUse []>
-
val allUsesOfXSymbolInFile2 : FSharpSymbolUse []
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/queue.html b/docs/queue.html deleted file mode 100644 index 4f09bb0343..0000000000 --- a/docs/queue.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - Compiler Services: Notes on the FSharpChecker operations queue - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Compiler Services: Notes on the FSharpChecker operations queue

-

This is a design note on the FSharpChecker component and its operations queue. See also the notes on the FSharpChecker caches

-

FSharpChecker maintains an operations queue. Items from the FSharpChecker operations queue are processed -sequentially and in order.

-

The thread processing these requests can also run a low-priority, interleaved background operation when the -queue is empty. This can be used to implicitly bring the background check of a project "up-to-date".
-When the operations queue has been empty for 1 second, -this background work is run in small incremental fragments. This work is cooperatively time-sliced to be approximately <50ms, (see maxTimeShareMilliseconds in -IncrementalBuild.fs). The project to be checked in the background is set implicitly -by calls to CheckFileInProject and ParseAndCheckFileInProject. -To disable implicit background checking completely, set checker.ImplicitlyStartBackgroundWork to false. -To change the time before background work starts, set checker.PauseBeforeBackgroundWork to the required number of milliseconds.

-

Most calls to the FSharpChecker API enqueue an operation in the FSharpChecker compiler queue. These correspond to the -calls to EnqueueAndAwaitOpAsync in service.fs.

-
    -
  • -

    For example, calling ParseAndCheckProject enqueues a ParseAndCheckProjectImpl operation. The time taken for the -operation will depend on how much work is required to bring the project analysis up-to-date.

    -
  • -
  • -

    Likewise, calling any of GetUsesOfSymbol, GetAllUsesOfAllSymbols, ParseFileInProject, -GetBackgroundParseResultsForFileInProject, MatchBraces, CheckFileInProjectIfReady, ParseAndCheckFileInProject, GetBackgroundCheckResultsForFileInProject, -ParseAndCheckProject, GetProjectOptionsFromScript, InvalidateConfiguration, InvaidateAll and operations -on FSharpCheckResults will cause an operation to be enqueued. The length of the operation will -vary - many will be very fast - but they won't be processed until other operations already in the queue are complete.

    -
  • -
-

Some operations do not enqueue anything on the FSharpChecker operations queue - notably any accesses to the Symbol APIs. -These use cross-threaded access to the TAST data produced by other FSharpChecker operations.

-

Some tools throw a lot of interactive work at the FSharpChecker operations queue. -If you are writing such a component, consider running your project against a debug build -of FSharp.Compiler.Service.dll to see the Trace.WriteInformation messages indicating the length of the -operations queue and the time to process requests.

-

For those writing interactive editors which use FCS, you -should be cautious about operations that request a check of the entire project. -For example, be careful about requesting the check of an entire project -on operations like "Highlight Symbol" or "Find Unused Declarations" -(which run automatically when the user opens a file or moves the cursor). -as opposed to operations like "Find All References" (which a user explicitly triggers). -Project checking can cause long and contention on the FSharpChecker operations queue.

-

Requests to FCS can be cancelled by cancelling the async operation. (Some requests also -include additional callbacks which can be used to indicate a cancellation condition).
-This cancellation will be effective if the cancellation is performed before the operation -is executed in the operations queue.

-

Summary

-

In this design note, you learned that the FSharpChecker component keeps an operations queue. When using FSharpChecker -in highly interactive situations, you should carefully consider the characteristics of the operations you are -enqueueing.

- - -
- -
-
- Fork me on GitHub - - diff --git a/docs/react.html b/docs/react.html deleted file mode 100644 index fca5164c18..0000000000 --- a/docs/react.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - - Compiler Services: Reacting to Changes - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Compiler Services: Reacting to Changes

-

This tutorial discusses some technical aspects of how to make sure the F# compiler service is -providing up-to-date results especially when hosted in an IDE. See also project wide analysis -for information on project analysis.

-
-

NOTE: The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published.

-
-

The logical results of all "Check" routines (ParseAndCheckFileInProject, GetBackgroundCheckResultsForFileInProject, -TryGetRecentTypeCheckResultsForFile, ParseAndCheckProject) depend on results reported by the file system, -especially the IFileSystem implementation described in the tutorial on project wide analysis. -Logically speaking, these results would be different if file system changes occur. For example, -referenced DLLs may change on disk, or referenced files may change.

-

The FSharpChecker component from FSharp.Compiler.Service does not actively "listen" -to changes in the file system. However FSharpChecker does repeatedly ask for -time stamps from the file system which it uses to decide if recomputation is needed. -FCS doesn't listen for changes directly - for example, it creates no FileWatcher object (and the -IFileSystem API has no ability to create such objects). This is partly for legacy reasons, -and partly because some hosts forbid the creation of FileWatcher objects.

-

In most cases the repeated timestamp requests are sufficient. If you don't actively -listen for changes, then FSharpChecker will still do approximately -the right thing, because it is asking for time stamps repeatedly. However, some updates on the file system -(such as a DLL appearing after a build, or the user randomly pasting a file into a folder) -may not actively be noticed by FSharpChecker until some operation happens to ask for a timestamp. -By issuing fresh requests, you can ensure that FCS actively reassesses the state of play when -stays up-to-date when changes are observed.

-

If you want to more actively listen for changes, then you should add watchers for the -files specified in the DependencyFiles property of FSharpCheckFileResults and FSharpCheckProjectResults. -Here�s what you need to do:

-
    -
  • -

    When your client notices an CHANGE event on a DependencyFile, it should schedule a refresh call to perform the ParseAndCheckFileInProject (or other operation) again. -This will result in fresh FileSystem calls to compute time stamps.

    -
  • -
  • -

    When your client notices an ADD event on a DependencyFile, it should call checker.InvalidateConfiguration -for all active projects in which the file occurs. This will result in fresh FileSystem calls to compute time -stamps, and fresh calls to compute whether files exist.

    -
  • -
  • -

    Generally clients don�t listen for DELETE events on files. Although it would be logically more consistent -to do so, in practice it�s very irritating for a "project clean" to invalidate all intellisense and -cause lots of red squiggles. Some source control tools also make a change by removing and adding files, which -is best noticed as a single change event.

    -
  • -
-

If your host happens to be Visual Studio, then this is one technique you can use: - Listeners should be associated with a visual source file buffer - Use fragments like this to watch the DependencyFiles:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-
    // Get the service
-    let vsFileWatch = fls.GetService(typeof<SVsFileChangeEx >) :?> IVsFileChangeEx
-
-    // Watch the Add and Change events
-    let fileChangeFlags = 
-        uint32 (_VSFILECHANGEFLAGS.VSFILECHG_Add ||| 
-                // _VSFILECHANGEFLAGS.VSFILECHG_Del ||| // don't listen for deletes - if a file (such as a 'Clean'ed project reference) is deleted, just keep using stale info
-                _VSFILECHANGEFLAGS.VSFILECHG_Time)
-
-    // Advise on file changes...
-    let cookie = Com.ThrowOnFailure1(vsFileWatch.AdviseFileChange(file, fileChangeFlags, changeEvents))
-
-    ...
-    
-    // Unadvised file changes...
-    Com.ThrowOnFailure0(vsFileWatch.UnadviseFileChange(cookie))
-
- -
val vsFileWatch : obj
-
val typeof<'T> : System.Type
-
val fileChangeFlags : uint32
-
Multiple items
val uint32 : value:'T -> uint32 (requires member op_Explicit)

--------------------
type uint32 = System.UInt32
-
val cookie : obj
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilalignment.html b/docs/reference/fsharp-compiler-abstractil-il-ilalignment.html deleted file mode 100644 index c9cc5f6424..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilalignment.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - ILAlignment - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILAlignment

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Aligned - -
- Signature:
-
-
- -
- - Unaligned1 - -
- Signature:
-
-
- -
- - Unaligned2 - -
- Signature:
-
-
- -
- - Unaligned4 - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilargconvention.html b/docs/reference/fsharp-compiler-abstractil-il-ilargconvention.html deleted file mode 100644 index 63026c82c0..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilargconvention.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - ILArgConvention - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILArgConvention

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - CDecl - -
- Signature:
-
-
- -
- - Default - -
- Signature:
-
-
- -
- - FastCall - -
- Signature:
-
-
- -
- - StdCall - -
- Signature:
-
-
- -
- - ThisCall - -
- Signature:
-
-
- -
- - VarArg - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilarraybound.html b/docs/reference/fsharp-compiler-abstractil-il-ilarraybound.html deleted file mode 100644 index 7a6733affc..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilarraybound.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - ILArrayBound - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILArrayBound

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

Array shapes. For most purposes the rank is the only thing that matters.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.IsNone - -
- Signature: bool
-
-
- -

CompiledName: get_IsNone

-
- - x.IsSome - -
- Signature: bool
-
-
- -

CompiledName: get_IsSome

-
- - x.Value - -
- Signature: int32
- - Attributes:
-[<CompilationRepresentation(2)>]
-
-
-
- -

CompiledName: get_Value

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - Option.None - -
- Signature: int32 option
-
-
- -

CompiledName: get_None

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilarraybounds.html b/docs/reference/fsharp-compiler-abstractil-il-ilarraybounds.html deleted file mode 100644 index b75de389b6..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilarraybounds.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - ILArrayBounds - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILArrayBounds

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

Lower-bound/size pairs

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Item1 - -
- Signature: ILArrayBound
-
-
- -
- - x.Item2 - -
- Signature: ILArrayBound
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilarrayshape.html b/docs/reference/fsharp-compiler-abstractil-il-ilarrayshape.html deleted file mode 100644 index 7baa6b8eb6..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilarrayshape.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - ILArrayShape - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILArrayShape

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - ILArrayShape(ILArrayBounds list) - -
- Signature: ILArrayBounds list
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Rank - -
- Signature: int
-
-
- -

CompiledName: get_Rank

-
-

Static members

- - - - - - - - - - - - - - -
Static memberDescription
- - ILArrayShape.FromRank(arg1) - -
- Signature: int -> ILArrayShape
-
-
- -
- - ILArrayShape.SingleDimensional - -
- Signature: ILArrayShape
-
-
-

Bounds for a single dimensional, zero based array

- - -

CompiledName: get_SingleDimensional

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilassemblylongevity.html b/docs/reference/fsharp-compiler-abstractil-il-ilassemblylongevity.html deleted file mode 100644 index 1a3e5acd6b..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilassemblylongevity.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - ILAssemblyLongevity - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILAssemblyLongevity

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Library - -
- Signature:
-
-
- -
- - PlatformAppDomain - -
- Signature:
-
-
- -
- - PlatformProcess - -
- Signature:
-
-
- -
- - PlatformSystem - -
- Signature:
-
-
- -
- - Unspecified - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilassemblymanifest.html b/docs/reference/fsharp-compiler-abstractil-il-ilassemblymanifest.html deleted file mode 100644 index 38c7ad90cb..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilassemblymanifest.html +++ /dev/null @@ -1,352 +0,0 @@ - - - - - ILAssemblyManifest - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILAssemblyManifest

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

The main module of an assembly is a module plus some manifest information.

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - AssemblyLongevity - -
- Signature: ILAssemblyLongevity
-
-
- -
- - AuxModuleHashAlgorithm - -
- Signature: int32
-
-
-

This is the ID of the algorithm used for the hashes of auxiliary -files in the assembly. These hashes are stored in the -ILModuleRef.Hash fields of this assembly. These are not -cryptographic hashes: they are simple file hashes. The algorithm -is normally 0x00008004 indicating the SHA1 hash algorithm.

- - -
- - CustomAttrsStored - -
- Signature: ILAttributesStored
-
-
- -
- - DisableJitOptimizations - -
- Signature: bool
-
-
- -
- - EntrypointElsewhere - -
- Signature: ILModuleRef option
-
-
-

Records whether the entrypoint resides in another module.

- - -
- - ExportedTypes - -
- Signature: ILExportedTypesAndForwarders
-
-
-

Records the types implemented by this assembly in auxiliary -modules.

- - -
- - IgnoreSymbolStoreSequencePoints - -
- Signature: bool
-
-
- -
- - JitTracking - -
- Signature: bool
-
-
- -
- - Locale - -
- Signature: string option
-
-
- -
- - MetadataIndex - -
- Signature: int32
-
-
- -
- - Name - -
- Signature: string
-
-
- -
- - PublicKey - -
- Signature: byte [] option
-
-
-

This is the public key used to sign this -assembly (the signature itself is stored elsewhere: see the -binary format, and may not have been written if delay signing -is used). (member Name, member PublicKey) forms the full -public name of the assembly.

- - -
- - Retargetable - -
- Signature: bool
-
-
- -
- - SecurityDeclsStored - -
- Signature: ILSecurityDeclsStored
-
-
- -
- - Version - -
- Signature: ILVersionInfo option
-
-
- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- - x.SecurityDecls - -
- Signature: ILSecurityDecls
-
-
- -

CompiledName: get_SecurityDecls

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilassemblyref.html b/docs/reference/fsharp-compiler-abstractil-il-ilassemblyref.html deleted file mode 100644 index 8d151d8fde..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilassemblyref.html +++ /dev/null @@ -1,256 +0,0 @@ - - - - - ILAssemblyRef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILAssemblyRef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<Sealed>]
- -
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.EqualsIgnoringVersion(arg1) - -
- Signature: ILAssemblyRef -> bool
-
-
- -
- - x.Hash - -
- Signature: byte [] option
-
-
- -

CompiledName: get_Hash

-
- - x.Locale - -
- Signature: string option
-
-
- -

CompiledName: get_Locale

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
- - x.PublicKey - -
- Signature: PublicKey option
-
-
- -

CompiledName: get_PublicKey

-
- - x.QualifiedName - -
- Signature: string
-
-
-

The fully qualified name of the assembly reference, e.g. mscorlib, Version=1.0.3705 etc.

- - -

CompiledName: get_QualifiedName

-
- - x.Retargetable - -
- Signature: bool
-
-
-

CLI says this indicates if the assembly can be retargeted (at runtime) to be from a different publisher.

- - -

CompiledName: get_Retargetable

-
- - x.Version - -
- Signature: ILVersionInfo option
-
-
- -

CompiledName: get_Version

-
-

Static members

- - - - - - - - - - - - - - -
Static memberDescription
- - ILAssemblyRef.Create(...) - -
- Signature: (name:string * hash:byte [] option * publicKey:PublicKey option * retargetable:bool * version:ILVersionInfo option * locale:string option) -> ILAssemblyRef
-
-
- -
- - ILAssemblyRef.FromAssemblyName(arg1) - -
- Signature: AssemblyName -> ILAssemblyRef
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilattribelem.html b/docs/reference/fsharp-compiler-abstractil-il-ilattribelem.html deleted file mode 100644 index 03f1ba4853..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilattribelem.html +++ /dev/null @@ -1,331 +0,0 @@ - - - - - ILAttribElem - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILAttribElem

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Array(ILType,ILAttribElem list) - -
- Signature: ILType * ILAttribElem list
-
-
- -
- - Bool(bool) - -
- Signature: bool
-
-
- -
- - Byte(byte) - -
- Signature: byte
-
-
- -
- - Char(char) - -
- Signature: char
-
-
- -
- - Double(double) - -
- Signature: double
-
-
- -
- - Int16(int16) - -
- Signature: int16
-
-
- -
- - Int32(int32) - -
- Signature: int32
-
-
- -
- - Int64(int64) - -
- Signature: int64
-
-
- -
- - Null - -
- Signature:
-
-
- -
- - SByte(sbyte) - -
- Signature: sbyte
-
-
- -
- - Single(single) - -
- Signature: single
-
-
- -
- - String(string option) - -
- Signature: string option
-
-
-

Represents a custom attribute parameter of type 'string'. These may be null, in which case they are encoded in a special -way as indicated by Ecma-335 Partition II.

- - -
- - Type(ILType option) - -
- Signature: ILType option
-
-
- -
- - TypeRef(ILTypeRef option) - -
- Signature: ILTypeRef option
-
-
- -
- - UInt16(uint16) - -
- Signature: uint16
-
-
- -
- - UInt32(uint32) - -
- Signature: uint32
-
-
- -
- - UInt64(uint64) - -
- Signature: uint64
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilattribute.html b/docs/reference/fsharp-compiler-abstractil-il-ilattribute.html deleted file mode 100644 index b7f6a95baa..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilattribute.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - ILAttribute - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILAttribute

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

Custom attribute.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Decoded(method,fixedArgs,namedArgs) - -
- Signature: ILMethodSpec * ILAttribElem list * ILAttributeNamedArg list
-
-
-

Attribute with args in decoded form.

- - -
- - Encoded(method,data,elements) - -
- Signature: ILMethodSpec * byte [] * ILAttribElem list
-
-
-

Attribute with args encoded to a binary blob according to ECMA-335 II.21 and II.23.3. -'decodeILAttribData' is used to parse the byte[] blob to ILAttribElem's as best as possible.

- - -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Elements - -
- Signature: ILAttribElem list
-
-
-

Decoded arguments. May be empty in encoded attribute form.

- - -

CompiledName: get_Elements

-
- - x.Method - -
- Signature: ILMethodSpec
-
-
-

Attribute instance constructor.

- - -

CompiledName: get_Method

-
- - x.WithMethod(method) - -
- Signature: method:ILMethodSpec -> ILAttribute
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilattributenamedarg.html b/docs/reference/fsharp-compiler-abstractil-il-ilattributenamedarg.html deleted file mode 100644 index dc817facc4..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilattributenamedarg.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - ILAttributeNamedArg - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILAttributeNamedArg

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

Named args: values and flags indicating if they are fields or properties.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Item1 - -
- Signature: string
-
-
- -
- - x.Item2 - -
- Signature: ILType
-
-
- -
- - x.Item3 - -
- Signature: bool
-
-
- -
- - x.Item4 - -
- Signature: ILAttribElem
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilattributes.html b/docs/reference/fsharp-compiler-abstractil-il-ilattributes.html deleted file mode 100644 index 905c71838a..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilattributes.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - ILAttributes - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILAttributes

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<Struct>]
- -
-

-
-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.AsArray - -
- Signature: ILAttribute []
-
-
- -

CompiledName: get_AsArray

-
- - x.AsList - -
- Signature: ILAttribute list
-
-
- -

CompiledName: get_AsList

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilattributesstored.html b/docs/reference/fsharp-compiler-abstractil-il-ilattributesstored.html deleted file mode 100644 index dd7f29ffee..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilattributesstored.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - ILAttributesStored - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILAttributesStored

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the efficiency-oriented storage of ILAttributes in another item.

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilbasictype.html b/docs/reference/fsharp-compiler-abstractil-il-ilbasictype.html deleted file mode 100644 index ed147dfbe6..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilbasictype.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - ILBasicType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILBasicType

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - DT_I - -
- Signature:
-
-
- -
- - DT_I1 - -
- Signature:
-
-
- -
- - DT_I2 - -
- Signature:
-
-
- -
- - DT_I4 - -
- Signature:
-
-
- -
- - DT_I8 - -
- Signature:
-
-
- -
- - DT_R - -
- Signature:
-
-
- -
- - DT_R4 - -
- Signature:
-
-
- -
- - DT_R8 - -
- Signature:
-
-
- -
- - DT_REF - -
- Signature:
-
-
- -
- - DT_U - -
- Signature:
-
-
- -
- - DT_U1 - -
- Signature:
-
-
- -
- - DT_U2 - -
- Signature:
-
-
- -
- - DT_U4 - -
- Signature:
-
-
- -
- - DT_U8 - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilboxity.html b/docs/reference/fsharp-compiler-abstractil-il-ilboxity.html deleted file mode 100644 index a01acc2430..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilboxity.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - ILBoxity - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILBoxity

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - AsObject - -
- Signature:
-
-
- -
- - AsValue - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilcallingconv.html b/docs/reference/fsharp-compiler-abstractil-il-ilcallingconv.html deleted file mode 100644 index 25de5e602b..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilcallingconv.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - ILCallingConv - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILCallingConv

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - Callconv(...) - -
- Signature: ILThisConvention * ILArgConvention
-
-
- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.BasicConv - -
- Signature: ILArgConvention
-
-
- -

CompiledName: get_BasicConv

-
- - x.IsInstance - -
- Signature: bool
-
-
- -

CompiledName: get_IsInstance

-
- - x.IsInstanceExplicit - -
- Signature: bool
-
-
- -

CompiledName: get_IsInstanceExplicit

-
- - x.IsStatic - -
- Signature: bool
-
-
- -

CompiledName: get_IsStatic

-
- - x.ThisConv - -
- Signature: ILThisConvention
-
-
- -

CompiledName: get_ThisConv

-
-

Static members

- - - - - - - - - - - - - - -
Static memberDescription
- - ILCallingConv.Instance - -
- Signature: ILCallingConv
-
-
- -

CompiledName: get_Instance

-
- - ILCallingConv.Static - -
- Signature: ILCallingConv
-
-
- -

CompiledName: get_Static

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilcallingsignature.html b/docs/reference/fsharp-compiler-abstractil-il-ilcallingsignature.html deleted file mode 100644 index 86a00fb9f9..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilcallingsignature.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - ILCallingSignature - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILCallingSignature

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
- -
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - ArgTypes - -
- Signature: ILTypes
-
-
- -
- - CallingConv - -
- Signature: ILCallingConv
-
-
- -
- - ReturnType - -
- Signature: ILType
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilcode.html b/docs/reference/fsharp-compiler-abstractil-il-ilcode.html deleted file mode 100644 index bd44d13286..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilcode.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - ILCode - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILCode

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Exceptions - -
- Signature: ILExceptionSpec list
-
-
- -
- - Instrs - -
- Signature: ILInstr []
-
-
- -
- - Labels - -
- Signature: Dictionary<ILCodeLabel,int>
-
-
- -
- - Locals - -
- Signature: ILLocalDebugInfo list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilcodelabel.html b/docs/reference/fsharp-compiler-abstractil-il-ilcodelabel.html deleted file mode 100644 index 3d3528720b..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilcodelabel.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - ILCodeLabel - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILCodeLabel

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

ILCode labels. In structured code each code label refers to a basic block somewhere in the code of the method.

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilcomparisoninstr.html b/docs/reference/fsharp-compiler-abstractil-il-ilcomparisoninstr.html deleted file mode 100644 index c3711c1e13..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilcomparisoninstr.html +++ /dev/null @@ -1,264 +0,0 @@ - - - - - ILComparisonInstr - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILComparisonInstr

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - BI_beq - -
- Signature:
-
-
- -
- - BI_bge - -
- Signature:
-
-
- -
- - BI_bge_un - -
- Signature:
-
-
- -
- - BI_bgt - -
- Signature:
-
-
- -
- - BI_bgt_un - -
- Signature:
-
-
- -
- - BI_ble - -
- Signature:
-
-
- -
- - BI_ble_un - -
- Signature:
-
-
- -
- - BI_blt - -
- Signature:
-
-
- -
- - BI_blt_un - -
- Signature:
-
-
- -
- - BI_bne_un - -
- Signature:
-
-
- -
- - BI_brfalse - -
- Signature:
-
-
- -
- - BI_brtrue - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilconst.html b/docs/reference/fsharp-compiler-abstractil-il-ilconst.html deleted file mode 100644 index 4cb680dfa4..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilconst.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - ILConst - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILConst

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - I4(int32) - -
- Signature: int32
-
-
- -
- - I8(int64) - -
- Signature: int64
-
-
- -
- - R4(single) - -
- Signature: single
-
-
- -
- - R8(double) - -
- Signature: double
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ildefaultpinvokeencoding.html b/docs/reference/fsharp-compiler-abstractil-il-ildefaultpinvokeencoding.html deleted file mode 100644 index f40ebc854f..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ildefaultpinvokeencoding.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - ILDefaultPInvokeEncoding - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILDefaultPInvokeEncoding

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Default Unicode encoding for P/Invoke within a type.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Ansi - -
- Signature:
-
-
- -
- - Auto - -
- Signature:
-
-
- -
- - Unicode - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilenuminfo.html b/docs/reference/fsharp-compiler-abstractil-il-ilenuminfo.html deleted file mode 100644 index 35fdfa1dee..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilenuminfo.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - ILEnumInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILEnumInfo

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

Decompose a type definition according to its kind.

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - enumType - -
- Signature: ILType
-
-
- -
- - enumValues - -
- Signature: (string * ILFieldInit) list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ileventdef.html b/docs/reference/fsharp-compiler-abstractil-il-ileventdef.html deleted file mode 100644 index b387a1487c..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ileventdef.html +++ /dev/null @@ -1,305 +0,0 @@ - - - - - ILEventDef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILEventDef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoComparison>]
-[<NoEquality>]
- -
-

-
-

Event definitions.

- -
-

Constructors

- - - - - - - - - - - - - - -
ConstructorDescription
- - new(...) - -
- Signature: (eventType:ILType option * name:string * attributes:EventAttributes * addMethod:ILMethodRef * removeMethod:ILMethodRef * fireMethod:ILMethodRef option * otherMethods:ILMethodRef list * customAttrs:ILAttributes) -> ILEventDef
-
-
-

Functional creation of a value, immediate

- - -

CompiledName: .ctor

-
- - new(...) - -
- Signature: (eventType:ILType option * name:string * attributes:EventAttributes * addMethod:ILMethodRef * removeMethod:ILMethodRef * fireMethod:ILMethodRef option * otherMethods:ILMethodRef list * customAttrsStored:ILAttributesStored * metadataIndex:int32) -> ILEventDef
-
-
-

Functional creation of a value, using delayed reading via a metadata index, for ilread.fs

- - -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AddMethod - -
- Signature: ILMethodRef
-
-
- -

CompiledName: get_AddMethod

-
- - x.Attributes - -
- Signature: EventAttributes
-
-
- -

CompiledName: get_Attributes

-
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- - x.EventType - -
- Signature: ILType option
-
-
- -

CompiledName: get_EventType

-
- - x.FireMethod - -
- Signature: ILMethodRef option
-
-
- -

CompiledName: get_FireMethod

-
- - x.IsRTSpecialName - -
- Signature: bool
-
-
- -

CompiledName: get_IsRTSpecialName

-
- - x.IsSpecialName - -
- Signature: bool
-
-
- -

CompiledName: get_IsSpecialName

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
- - x.OtherMethods - -
- Signature: ILMethodRef list
-
-
- -

CompiledName: get_OtherMethods

-
- - x.RemoveMethod - -
- Signature: ILMethodRef
-
-
- -

CompiledName: get_RemoveMethod

-
- - x.With(...) - -
- Signature: (eventType:ILType option option * name:string option * attributes:EventAttributes option * addMethod:ILMethodRef option * removeMethod:ILMethodRef option * fireMethod:ILMethodRef option option * otherMethods:ILMethodRef list option * customAttrs:ILAttributes option) -> ILEventDef
-
-
-

Functional update of the value

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ileventdefs.html b/docs/reference/fsharp-compiler-abstractil-il-ileventdefs.html deleted file mode 100644 index bf13e18419..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ileventdefs.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - ILEventDefs - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILEventDefs

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<Sealed>]
- -
-

-
-

Table of those events in a type definition.

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.AsList - -
- Signature: ILEventDef list
-
-
- -

CompiledName: get_AsList

-
- - x.LookupByName(arg1) - -
- Signature: string -> ILEventDef list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ileventref.html b/docs/reference/fsharp-compiler-abstractil-il-ileventref.html deleted file mode 100644 index ff22306bdc..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ileventref.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - ILEventRef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILEventRef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<Sealed>]
- -
-

-
-

A utility type provided for completeness

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.DeclaringTypeRef - -
- Signature: ILTypeRef
-
-
- -

CompiledName: get_DeclaringTypeRef

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - ILEventRef.Create(arg1, arg2) - -
- Signature: (ILTypeRef * string) -> ILEventRef
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilexceptionclause.html b/docs/reference/fsharp-compiler-abstractil-il-ilexceptionclause.html deleted file mode 100644 index 30a5d1b11b..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilexceptionclause.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - ILExceptionClause - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILExceptionClause

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Fault(ILCodeLabel * ILCodeLabel) - -
- Signature: ILCodeLabel * ILCodeLabel
-
-
- -
- - FilterCatch(...) - -
- Signature: ILCodeLabel * ILCodeLabel * ILCodeLabel * ILCodeLabel
-
-
- -
- - Finally(ILCodeLabel * ILCodeLabel) - -
- Signature: ILCodeLabel * ILCodeLabel
-
-
- -
- - TypeCatch(...) - -
- Signature: ILType * ILCodeLabel * ILCodeLabel
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilexceptionspec.html b/docs/reference/fsharp-compiler-abstractil-il-ilexceptionspec.html deleted file mode 100644 index 452de0ce60..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilexceptionspec.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - ILExceptionSpec - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILExceptionSpec

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Clause - -
- Signature: ILExceptionClause
-
-
- -
- - Range - -
- Signature: ILCodeLabel * ILCodeLabel
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilexportedtypeorforwarder.html b/docs/reference/fsharp-compiler-abstractil-il-ilexportedtypeorforwarder.html deleted file mode 100644 index f7a362e8d5..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilexportedtypeorforwarder.html +++ /dev/null @@ -1,240 +0,0 @@ - - - - - ILExportedTypeOrForwarder - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILExportedTypeOrForwarder

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoComparison>]
-[<NoEquality>]
- -
-

-
-

these are only found in the ILExportedTypesAndForwarders table in the manifest

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Attributes - -
- Signature: TypeAttributes
-
-
- -
- - CustomAttrsStored - -
- Signature: ILAttributesStored
-
-
- -
- - MetadataIndex - -
- Signature: int32
-
-
- -
- - Name - -
- Signature: string
-
-
-

[Namespace.]Name

- - -
- - Nested - -
- Signature: ILNestedExportedTypes
-
-
- -
- - ScopeRef - -
- Signature: ILScopeRef
-
-
- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Access - -
- Signature: ILTypeDefAccess
-
-
- -

CompiledName: get_Access

-
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- - x.IsForwarder - -
- Signature: bool
-
-
- -

CompiledName: get_IsForwarder

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilexportedtypesandforwarders.html b/docs/reference/fsharp-compiler-abstractil-il-ilexportedtypesandforwarders.html deleted file mode 100644 index 7b32642f6c..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilexportedtypesandforwarders.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - ILExportedTypesAndForwarders - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILExportedTypesAndForwarders

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<Sealed>]
- -
-

-
-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.AsList - -
- Signature: ILExportedTypeOrForwarder list
-
-
- -

CompiledName: get_AsList

-
- - x.TryFindByName(arg1) - -
- Signature: string -> ILExportedTypeOrForwarder option
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilfielddef.html b/docs/reference/fsharp-compiler-abstractil-il-ilfielddef.html deleted file mode 100644 index 9fa2dfb980..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilfielddef.html +++ /dev/null @@ -1,454 +0,0 @@ - - - - - ILFieldDef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILFieldDef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoComparison>]
-[<NoEquality>]
- -
-

-
-

Field definitions.

- -
-

Constructors

- - - - - - - - - - - - - - -
ConstructorDescription
- - new(...) - -
- Signature: (name:string * fieldType:ILType * attributes:FieldAttributes * data:byte [] option * literalValue:ILFieldInit option * offset:int32 option * marshal:ILNativeType option * customAttrs:ILAttributes) -> ILFieldDef
-
-
-

Functional creation of a value, immediate

- - -

CompiledName: .ctor

-
- - new(...) - -
- Signature: (name:string * fieldType:ILType * attributes:FieldAttributes * data:byte [] option * literalValue:ILFieldInit option * offset:int32 option * marshal:ILNativeType option * customAttrsStored:ILAttributesStored * metadataIndex:int32) -> ILFieldDef
-
-
-

Functional creation of a value using delayed reading via a metadata index

- - -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Access - -
- Signature: ILMemberAccess
-
-
- -

CompiledName: get_Access

-
- - x.Attributes - -
- Signature: FieldAttributes
-
-
- -

CompiledName: get_Attributes

-
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- - x.Data - -
- Signature: byte [] option
-
-
- -

CompiledName: get_Data

-
- - x.FieldType - -
- Signature: ILType
-
-
- -

CompiledName: get_FieldType

-
- - x.IsInitOnly - -
- Signature: bool
-
-
- -

CompiledName: get_IsInitOnly

-
- - x.IsLiteral - -
- Signature: bool
-
-
- -

CompiledName: get_IsLiteral

-
- - x.IsSpecialName - -
- Signature: bool
-
-
- -

CompiledName: get_IsSpecialName

-
- - x.IsStatic - -
- Signature: bool
-
-
- -

CompiledName: get_IsStatic

-
- - x.LiteralValue - -
- Signature: ILFieldInit option
-
-
- -

CompiledName: get_LiteralValue

-
- - x.Marshal - -
- Signature: ILNativeType option
-
-
- -

CompiledName: get_Marshal

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
- - x.NotSerialized - -
- Signature: bool
-
-
- -

CompiledName: get_NotSerialized

-
- - x.Offset - -
- Signature: int32 option
-
-
-

The explicit offset in bytes when explicit layout is used.

- - -

CompiledName: get_Offset

-
- - x.With(...) - -
- Signature: (name:string option * fieldType:ILType option * attributes:FieldAttributes option * data:byte [] option option * literalValue:ILFieldInit option option * offset:int32 option option * marshal:ILNativeType option option * customAttrs:ILAttributes option) -> ILFieldDef
-
-
-

Functional update of the value

- - -
- - x.WithAccess(arg1) - -
- Signature: ILMemberAccess -> ILFieldDef
-
-
- -
- - x.WithFieldMarshal(arg1) - -
- Signature: (ILNativeType option) -> ILFieldDef
-
-
- -
- - x.WithInitOnly(arg1) - -
- Signature: bool -> ILFieldDef
-
-
- -
- - x.WithLiteralDefaultValue(arg1) - -
- Signature: (ILFieldInit option) -> ILFieldDef
-
-
- -
- - x.WithNotSerialized(arg1) - -
- Signature: bool -> ILFieldDef
-
-
- -
- - x.WithSpecialName(arg1) - -
- Signature: bool -> ILFieldDef
-
-
- -
- - x.WithStatic(arg1) - -
- Signature: bool -> ILFieldDef
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilfielddefs.html b/docs/reference/fsharp-compiler-abstractil-il-ilfielddefs.html deleted file mode 100644 index baab97441b..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilfielddefs.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - ILFieldDefs - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILFieldDefs

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<Sealed>]
- -
-

-
-

Tables of fields. Logically equivalent to a list of fields but the table is kept in -a form to allow efficient looking up fields by name.

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.AsList - -
- Signature: ILFieldDef list
-
-
- -

CompiledName: get_AsList

-
- - x.LookupByName(arg1) - -
- Signature: string -> ILFieldDef list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilfieldinit.html b/docs/reference/fsharp-compiler-abstractil-il-ilfieldinit.html deleted file mode 100644 index 003a5ddab6..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilfieldinit.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - - ILFieldInit - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILFieldInit

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<StructuralEquality>]
-[<StructuralComparison>]
- -
-

-
-

Field Init

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Bool(bool) - -
- Signature: bool
-
-
- -
- - Char(uint16) - -
- Signature: uint16
-
-
- -
- - Double(double) - -
- Signature: double
-
-
- -
- - Int16(int16) - -
- Signature: int16
-
-
- -
- - Int32(int32) - -
- Signature: int32
-
-
- -
- - Int64(int64) - -
- Signature: int64
-
-
- -
- - Int8(sbyte) - -
- Signature: sbyte
-
-
- -
- - Null - -
- Signature:
-
-
- -
- - Single(single) - -
- Signature: single
-
-
- -
- - String(string) - -
- Signature: string
-
-
- -
- - UInt16(uint16) - -
- Signature: uint16
-
-
- -
- - UInt32(uint32) - -
- Signature: uint32
-
-
- -
- - UInt64(uint64) - -
- Signature: uint64
-
-
- -
- - UInt8(byte) - -
- Signature: byte
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilfieldref.html b/docs/reference/fsharp-compiler-abstractil-il-ilfieldref.html deleted file mode 100644 index 2b354e0fe3..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilfieldref.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - ILFieldRef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILFieldRef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
- -
-

-
-

Formal identities of fields.

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - DeclaringTypeRef - -
- Signature: ILTypeRef
-
-
- -
- - Name - -
- Signature: string
-
-
- -
- - Type - -
- Signature: ILType
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilfieldspec.html b/docs/reference/fsharp-compiler-abstractil-il-ilfieldspec.html deleted file mode 100644 index cedf3b7f08..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilfieldspec.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - ILFieldSpec - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILFieldSpec

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
- -
-

-
-

Field specs. The data given for a ldfld, stfld etc. instruction.

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - DeclaringType - -
- Signature: ILType
-
-
- -
- - FieldRef - -
- Signature: ILFieldRef
-
-
- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.ActualType - -
- Signature: ILType
-
-
- -

CompiledName: get_ActualType

-
- - x.DeclaringTypeRef - -
- Signature: ILTypeRef
-
-
- -

CompiledName: get_DeclaringTypeRef

-
- - x.FormalType - -
- Signature: ILType
-
-
- -

CompiledName: get_FormalType

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilgenericargs.html b/docs/reference/fsharp-compiler-abstractil-il-ilgenericargs.html deleted file mode 100644 index 6ae8411c5a..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilgenericargs.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - ILGenericArgs - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILGenericArgs

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

Actual generic parameters are always types.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Head - -
- Signature: ILType
-
-
- -

CompiledName: get_Head

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [index] - -
- Signature: index:int -> ILType
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
-
-
- -

CompiledName: get_Length

-
- - x.Tail - -
- Signature: ILType list
-
-
- -

CompiledName: get_Tail

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - List.Empty - -
- Signature: ILType list
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilgenericargslist.html b/docs/reference/fsharp-compiler-abstractil-il-ilgenericargslist.html deleted file mode 100644 index 9dfe2152c5..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilgenericargslist.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - ILGenericArgsList - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILGenericArgsList

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Head - -
- Signature: ILType
-
-
- -

CompiledName: get_Head

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [index] - -
- Signature: index:int -> ILType
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
-
-
- -

CompiledName: get_Length

-
- - x.Tail - -
- Signature: ILType list
-
-
- -

CompiledName: get_Tail

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - List.Empty - -
- Signature: ILType list
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilgenericparameterdef.html b/docs/reference/fsharp-compiler-abstractil-il-ilgenericparameterdef.html deleted file mode 100644 index 9c78ce5399..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilgenericparameterdef.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - - ILGenericParameterDef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILGenericParameterDef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

Generic parameters. Formal generic parameter declarations may include the bounds, if any, on the generic parameter.

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Constraints - -
- Signature: ILTypes
-
-
-

At most one is the parent type, the others are interface types.

- - -
- - CustomAttrsStored - -
- Signature: ILAttributesStored
-
-
-

Do not use this

- - -
- - HasDefaultConstructorConstraint - -
- Signature: bool
-
-
-

Indicates the type argument must have a public nullary constructor.

- - -
- - HasNotNullableValueTypeConstraint - -
- Signature: bool
-
-
-

Indicates the type argument must be a value type, but not Nullable.

- - -
- - HasReferenceTypeConstraint - -
- Signature: bool
-
-
-

Indicates the type argument must be a reference type.

- - -
- - MetadataIndex - -
- Signature: int32
-
-
-

Do not use this

- - -
- - Name - -
- Signature: string
-
-
- -
- - Variance - -
- Signature: ILGenericVariance
-
-
-

Variance of type parameters, only applicable to generic parameters for generic interfaces and delegates.

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilgenericparameterdefs.html b/docs/reference/fsharp-compiler-abstractil-il-ilgenericparameterdefs.html deleted file mode 100644 index 1b35c398ed..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilgenericparameterdefs.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - ILGenericParameterDefs - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILGenericParameterDefs

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Head - -
- Signature: ILGenericParameterDef
-
-
- -

CompiledName: get_Head

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [index] - -
- Signature: index:int -> ILGenericParameterDef
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
-
-
- -

CompiledName: get_Length

-
- - x.Tail - -
- Signature: ILGenericParameterDef list
-
-
- -

CompiledName: get_Tail

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - List.Empty - -
- Signature: ILGenericParameterDef list
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilgenericvariance.html b/docs/reference/fsharp-compiler-abstractil-il-ilgenericvariance.html deleted file mode 100644 index 20721559d0..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilgenericvariance.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - ILGenericVariance - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILGenericVariance

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - ContraVariant - -
- Signature:
-
-
- -
- - CoVariant - -
- Signature:
-
-
- -
- - NonVariant - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilglobals.html b/docs/reference/fsharp-compiler-abstractil-il-ilglobals.html deleted file mode 100644 index 02bcd06365..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilglobals.html +++ /dev/null @@ -1,443 +0,0 @@ - - - - - ILGlobals - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILGlobals

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<Class>]
- -
-

-
-

A table of common references to items in primary assembly (System.Runtime or mscorlib). -If a particular version of System.Runtime.dll has been loaded then you should -reference items from it via an ILGlobals for that specific version built using mkILGlobals.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.IsPossiblePrimaryAssemblyRef(arg1) - -
- Signature: ILAssemblyRef -> bool
-
-
-

Is the given assembly possibly a primary assembly? -In practice, a primary assembly is an assembly that contains the System.Object type definition -and has no referenced assemblies. -However, we must consider assemblies that forward the System.Object type definition -to be possible primary assemblies. -Therefore, this will return true if the given assembly is the real primary assembly or an assembly that forwards -the System.Object type definition. -Assembly equivalency ignores the version here.

- - -
- - x.primaryAssemblyName - -
- Signature: string
-
-
- -

CompiledName: get_primaryAssemblyName

-
- - x.primaryAssemblyRef - -
- Signature: ILAssemblyRef
-
-
- -

CompiledName: get_primaryAssemblyRef

-
- - x.primaryAssemblyScopeRef - -
- Signature: ILScopeRef
-
-
- -

CompiledName: get_primaryAssemblyScopeRef

-
- - x.typ_Array - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_Array

-
- - x.typ_Bool - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_Bool

-
- - x.typ_Byte - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_Byte

-
- - x.typ_Char - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_Char

-
- - x.typ_Double - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_Double

-
- - x.typ_Int16 - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_Int16

-
- - x.typ_Int32 - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_Int32

-
- - x.typ_Int64 - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_Int64

-
- - x.typ_IntPtr - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_IntPtr

-
- - x.typ_Object - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_Object

-
- - x.typ_SByte - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_SByte

-
- - x.typ_Single - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_Single

-
- - x.typ_String - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_String

-
- - x.typ_Type - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_Type

-
- - x.typ_TypedReference - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_TypedReference

-
- - x.typ_UInt16 - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_UInt16

-
- - x.typ_UInt32 - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_UInt32

-
- - x.typ_UInt64 - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_UInt64

-
- - x.typ_UIntPtr - -
- Signature: ILType
-
-
- -

CompiledName: get_typ_UIntPtr

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilguid.html b/docs/reference/fsharp-compiler-abstractil-il-ilguid.html deleted file mode 100644 index 47b624aa9f..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilguid.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - ILGuid - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILGuid

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

Represents guids

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilinstr.html b/docs/reference/fsharp-compiler-abstractil-il-ilinstr.html deleted file mode 100644 index 4fe0556cee..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilinstr.html +++ /dev/null @@ -1,1358 +0,0 @@ - - - - - ILInstr - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILInstr

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<NoComparison>]
- -
-

-
-

The instruction set.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - AI_add - -
- Signature:
-
-
- -
- - AI_add_ovf - -
- Signature:
-
-
- -
- - AI_add_ovf_un - -
- Signature:
-
-
- -
- - AI_and - -
- Signature:
-
-
- -
- - AI_ceq - -
- Signature:
-
-
- -
- - AI_cgt - -
- Signature:
-
-
- -
- - AI_cgt_un - -
- Signature:
-
-
- -
- - AI_ckfinite - -
- Signature:
-
-
- -
- - AI_clt - -
- Signature:
-
-
- -
- - AI_clt_un - -
- Signature:
-
-
- -
- - AI_conv(ILBasicType) - -
- Signature: ILBasicType
-
-
- -
- - AI_conv_ovf(ILBasicType) - -
- Signature: ILBasicType
-
-
- -
- - AI_conv_ovf_un(ILBasicType) - -
- Signature: ILBasicType
-
-
- -
- - AI_div - -
- Signature:
-
-
- -
- - AI_div_un - -
- Signature:
-
-
- -
- - AI_dup - -
- Signature:
-
-
- -
- - AI_ldc(ILBasicType,ILConst) - -
- Signature: ILBasicType * ILConst
-
-
- -
- - AI_ldnull - -
- Signature:
-
-
- -
- - AI_mul - -
- Signature:
-
-
- -
- - AI_mul_ovf - -
- Signature:
-
-
- -
- - AI_mul_ovf_un - -
- Signature:
-
-
- -
- - AI_neg - -
- Signature:
-
-
- -
- - AI_nop - -
- Signature:
-
-
- -
- - AI_not - -
- Signature:
-
-
- -
- - AI_or - -
- Signature:
-
-
- -
- - AI_pop - -
- Signature:
-
-
- -
- - AI_rem - -
- Signature:
-
-
- -
- - AI_rem_un - -
- Signature:
-
-
- -
- - AI_shl - -
- Signature:
-
-
- -
- - AI_shr - -
- Signature:
-
-
- -
- - AI_shr_un - -
- Signature:
-
-
- -
- - AI_sub - -
- Signature:
-
-
- -
- - AI_sub_ovf - -
- Signature:
-
-
- -
- - AI_sub_ovf_un - -
- Signature:
-
-
- -
- - AI_xor - -
- Signature:
-
-
- -
- - EI_ilzero(ILType) - -
- Signature: ILType
-
-
- -
- - EI_ldlen_multi(int32,int32) - -
- Signature: int32 * int32
-
-
- -
- - I_arglist - -
- Signature:
-
-
- -
- - I_box(ILType) - -
- Signature: ILType
-
-
- -
- - I_br(ILCodeLabel) - -
- Signature: ILCodeLabel
-
-
- -
- - I_brcmp(ILComparisonInstr,ILCodeLabel) - -
- Signature: ILComparisonInstr * ILCodeLabel
-
-
- -
- - I_break - -
- Signature:
-
-
- -
- - I_call(...) - -
- Signature: ILTailcall * ILMethodSpec * ILVarArgs
-
-
- -
- - I_callconstraint(...) - -
- Signature: ILTailcall * ILType * ILMethodSpec * ILVarArgs
-
-
- -
- - I_calli(...) - -
- Signature: ILTailcall * ILCallingSignature * ILVarArgs
-
-
- -
- - I_callvirt(...) - -
- Signature: ILTailcall * ILMethodSpec * ILVarArgs
-
-
- -
- - I_castclass(ILType) - -
- Signature: ILType
-
-
- -
- - I_cpblk(ILAlignment,ILVolatility) - -
- Signature: ILAlignment * ILVolatility
-
-
- -
- - I_cpobj(ILType) - -
- Signature: ILType
-
-
- -
- - I_endfilter - -
- Signature:
-
-
- -
- - I_endfinally - -
- Signature:
-
-
- -
- - I_initblk(ILAlignment,ILVolatility) - -
- Signature: ILAlignment * ILVolatility
-
-
- -
- - I_initobj(ILType) - -
- Signature: ILType
-
-
- -
- - I_isinst(ILType) - -
- Signature: ILType
-
-
- -
- - I_jmp(ILMethodSpec) - -
- Signature: ILMethodSpec
-
-
- -
- - I_ldarg(uint16) - -
- Signature: uint16
-
-
- -
- - I_ldarga(uint16) - -
- Signature: uint16
-
-
- -
- - I_ldelem(ILBasicType) - -
- Signature: ILBasicType
-
-
- -
- - I_ldelem_any(ILArrayShape,ILType) - -
- Signature: ILArrayShape * ILType
-
-
- -
- - I_ldelema(...) - -
- Signature: ILReadonly * bool * ILArrayShape * ILType
-
-
- -
- - I_ldfld(...) - -
- Signature: ILAlignment * ILVolatility * ILFieldSpec
-
-
- -
- - I_ldflda(ILFieldSpec) - -
- Signature: ILFieldSpec
-
-
- -
- - I_ldftn(ILMethodSpec) - -
- Signature: ILMethodSpec
-
-
- -
- - I_ldind(...) - -
- Signature: ILAlignment * ILVolatility * ILBasicType
-
-
- -
- - I_ldlen - -
- Signature:
-
-
- -
- - I_ldloc(uint16) - -
- Signature: uint16
-
-
- -
- - I_ldloca(uint16) - -
- Signature: uint16
-
-
- -
- - I_ldobj(ILAlignment,ILVolatility,ILType) - -
- Signature: ILAlignment * ILVolatility * ILType
-
-
- -
- - I_ldsfld(ILVolatility,ILFieldSpec) - -
- Signature: ILVolatility * ILFieldSpec
-
-
- -
- - I_ldsflda(ILFieldSpec) - -
- Signature: ILFieldSpec
-
-
- -
- - I_ldstr(string) - -
- Signature: string
-
-
- -
- - I_ldtoken(ILToken) - -
- Signature: ILToken
-
-
- -
- - I_ldvirtftn(ILMethodSpec) - -
- Signature: ILMethodSpec
-
-
- -
- - I_leave(ILCodeLabel) - -
- Signature: ILCodeLabel
-
-
- -
- - I_localloc - -
- Signature:
-
-
- -
- - I_mkrefany(ILType) - -
- Signature: ILType
-
-
- -
- - I_newarr(ILArrayShape,ILType) - -
- Signature: ILArrayShape * ILType
-
-
- -
- - I_newobj(ILMethodSpec,ILVarArgs) - -
- Signature: ILMethodSpec * ILVarArgs
-
-
- -
- - I_refanytype - -
- Signature:
-
-
- -
- - I_refanyval(ILType) - -
- Signature: ILType
-
-
- -
- - I_ret - -
- Signature:
-
-
- -
- - I_rethrow - -
- Signature:
-
-
- -
- - I_seqpoint(ILSourceMarker) - -
- Signature: ILSourceMarker
-
-
- -
- - I_sizeof(ILType) - -
- Signature: ILType
-
-
- -
- - I_starg(uint16) - -
- Signature: uint16
-
-
- -
- - I_stelem(ILBasicType) - -
- Signature: ILBasicType
-
-
- -
- - I_stelem_any(ILArrayShape,ILType) - -
- Signature: ILArrayShape * ILType
-
-
- -
- - I_stfld(...) - -
- Signature: ILAlignment * ILVolatility * ILFieldSpec
-
-
- -
- - I_stind(...) - -
- Signature: ILAlignment * ILVolatility * ILBasicType
-
-
- -
- - I_stloc(uint16) - -
- Signature: uint16
-
-
- -
- - I_stobj(ILAlignment,ILVolatility,ILType) - -
- Signature: ILAlignment * ILVolatility * ILType
-
-
- -
- - I_stsfld(ILVolatility,ILFieldSpec) - -
- Signature: ILVolatility * ILFieldSpec
-
-
- -
- - I_switch(ILCodeLabel list) - -
- Signature: ILCodeLabel list
-
-
- -
- - I_throw - -
- Signature:
-
-
- -
- - I_unbox(ILType) - -
- Signature: ILType
-
-
- -
- - I_unbox_any(ILType) - -
- Signature: ILType
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-illazymethodbody.html b/docs/reference/fsharp-compiler-abstractil-il-illazymethodbody.html deleted file mode 100644 index 49a69dc021..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-illazymethodbody.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - ILLazyMethodBody - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILLazyMethodBody

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoComparison>]
-[<NoEquality>]
-[<Sealed>]
- -
-

-
-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Contents - -
- Signature: MethodBody
-
-
- -

CompiledName: get_Contents

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-illocal.html b/docs/reference/fsharp-compiler-abstractil-il-illocal.html deleted file mode 100644 index 8bb4231419..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-illocal.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - ILLocal - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILLocal

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<NoComparison>]
-[<NoEquality>]
- -
-

-
-

Local variables

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - DebugInfo - -
- Signature: (string * int * int) option
-
-
- -
- - IsPinned - -
- Signature: bool
-
-
- -
- - Type - -
- Signature: ILType
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-illocaldebuginfo.html b/docs/reference/fsharp-compiler-abstractil-il-illocaldebuginfo.html deleted file mode 100644 index b4c195fa12..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-illocaldebuginfo.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - ILLocalDebugInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILLocalDebugInfo

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - DebugMappings - -
- Signature: ILLocalDebugMapping list
-
-
- -
- - Range - -
- Signature: ILCodeLabel * ILCodeLabel
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-illocaldebugmapping.html b/docs/reference/fsharp-compiler-abstractil-il-illocaldebugmapping.html deleted file mode 100644 index ae7e4bebe7..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-illocaldebugmapping.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - ILLocalDebugMapping - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILLocalDebugMapping

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Indicates that a particular local variable has a particular source -language name within a given set of ranges. This does not effect local -variable numbering, which is global over the whole method.

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - LocalIndex - -
- Signature: int
-
-
- -
- - LocalName - -
- Signature: string
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-illocals.html b/docs/reference/fsharp-compiler-abstractil-il-illocals.html deleted file mode 100644 index db2610bf4c..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-illocals.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - ILLocals - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILLocals

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Head - -
- Signature: ILLocal
-
-
- -

CompiledName: get_Head

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [index] - -
- Signature: index:int -> ILLocal
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
-
-
- -

CompiledName: get_Length

-
- - x.Tail - -
- Signature: ILLocal list
-
-
- -

CompiledName: get_Tail

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - List.Empty - -
- Signature: ILLocal list
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-illocalsallocator.html b/docs/reference/fsharp-compiler-abstractil-il-illocalsallocator.html deleted file mode 100644 index 0ce0b1bb10..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-illocalsallocator.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - ILLocalsAllocator - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILLocalsAllocator

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

Helpers for codegen: scopes for allocating new temporary variables.

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(preAlloc) - -
- Signature: preAlloc:int -> ILLocalsAllocator
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.AllocLocal(arg1) - -
- Signature: ILLocal -> uint16
-
-
- -
- - x.Close() - -
- Signature: unit -> ILLocal list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilmemberaccess.html b/docs/reference/fsharp-compiler-abstractil-il-ilmemberaccess.html deleted file mode 100644 index 4c257d9b93..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilmemberaccess.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - ILMemberAccess - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILMemberAccess

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Member Access

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Assembly - -
- Signature:
-
-
- -
- - CompilerControlled - -
- Signature:
-
-
- -
- - Family - -
- Signature:
-
-
- -
- - FamilyAndAssembly - -
- Signature:
-
-
- -
- - FamilyOrAssembly - -
- Signature:
-
-
- -
- - Private - -
- Signature:
-
-
- -
- - Public - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilmethodbody.html b/docs/reference/fsharp-compiler-abstractil-il-ilmethodbody.html deleted file mode 100644 index 4cd0586ec2..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilmethodbody.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - ILMethodBody - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILMethodBody

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<NoComparison>]
-[<NoEquality>]
- -
-

-
-

IL method bodies

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - AggressiveInlining - -
- Signature: bool
-
-
- -
- - Code - -
- Signature: ILCode
-
-
- -
- - IsZeroInit - -
- Signature: bool
-
-
- -
- - Locals - -
- Signature: ILLocals
-
-
- -
- - MaxStack - -
- Signature: int32
-
-
- -
- - NoInlining - -
- Signature: bool
-
-
- -
- - SourceMarker - -
- Signature: ILSourceMarker option
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilmethoddef.html b/docs/reference/fsharp-compiler-abstractil-il-ilmethoddef.html deleted file mode 100644 index 6c42814c9a..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilmethoddef.html +++ /dev/null @@ -1,953 +0,0 @@ - - - - - ILMethodDef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILMethodDef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoComparison>]
-[<NoEquality>]
- -
-

-
-

IL Method definitions.

- -
-

Constructors

- - - - - - - - - - - - - - -
ConstructorDescription
- - new(...) - -
- Signature: (name:string * attributes:MethodAttributes * implAttributes:MethodImplAttributes * callingConv:ILCallingConv * parameters:ILParameters * ret:ILReturn * body:ILLazyMethodBody * isEntryPoint:bool * genericParams:ILGenericParameterDefs * securityDecls:ILSecurityDecls * customAttrs:ILAttributes) -> ILMethodDef
-
-
-

Functional creation of a value, immediate

- - -

CompiledName: .ctor

-
- - new(...) - -
- Signature: (name:string * attributes:MethodAttributes * implAttributes:MethodImplAttributes * callingConv:ILCallingConv * parameters:ILParameters * ret:ILReturn * body:ILLazyMethodBody * isEntryPoint:bool * genericParams:ILGenericParameterDefs * securityDeclsStored:ILSecurityDeclsStored * customAttrsStored:ILAttributesStored * metadataIndex:int32) -> ILMethodDef
-
-
-

Functional creation of a value, with delayed reading of some elements via a metadata index

- - -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Access - -
- Signature: ILMemberAccess
-
-
- -

CompiledName: get_Access

-
- - x.Attributes - -
- Signature: MethodAttributes
-
-
- -

CompiledName: get_Attributes

-
- - x.Body - -
- Signature: ILLazyMethodBody
-
-
- -

CompiledName: get_Body

-
- - x.CallingConv - -
- Signature: ILCallingConv
-
-
- -

CompiledName: get_CallingConv

-
- - x.CallingSignature - -
- Signature: ILCallingSignature
-
-
- -

CompiledName: get_CallingSignature

-
- - x.Code - -
- Signature: ILCode option
-
-
- -

CompiledName: get_Code

-
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- - x.GenericParams - -
- Signature: ILGenericParameterDefs
-
-
- -

CompiledName: get_GenericParams

-
- - x.HasSecurity - -
- Signature: bool
-
-
-

Some methods are marked "HasSecurity" even if there are no permissions attached, e.g. if they use SuppressUnmanagedCodeSecurityAttribute

- - -

CompiledName: get_HasSecurity

-
- - x.ImplAttributes - -
- Signature: MethodImplAttributes
-
-
- -

CompiledName: get_ImplAttributes

-
- - x.IsAbstract - -
- Signature: bool
-
-
- -

CompiledName: get_IsAbstract

-
- - x.IsAggressiveInline - -
- Signature: bool
-
-
- -

CompiledName: get_IsAggressiveInline

-
- - x.IsCheckAccessOnOverride - -
- Signature: bool
-
-
- -

CompiledName: get_IsCheckAccessOnOverride

-
- - x.IsClassInitializer - -
- Signature: bool
-
-
-

Indicates a .cctor method.

- - -

CompiledName: get_IsClassInitializer

-
- - x.IsConstructor - -
- Signature: bool
-
-
-

Indicates a .ctor method.

- - -

CompiledName: get_IsConstructor

-
- - x.IsEntryPoint - -
- Signature: bool
-
-
- -

CompiledName: get_IsEntryPoint

-
- - x.IsFinal - -
- Signature: bool
-
-
- -

CompiledName: get_IsFinal

-
- - x.IsForwardRef - -
- Signature: bool
-
-
- -

CompiledName: get_IsForwardRef

-
- - x.IsHideBySig - -
- Signature: bool
-
-
- -

CompiledName: get_IsHideBySig

-
- - x.IsIL - -
- Signature: bool
-
-
- -

CompiledName: get_IsIL

-
- - x.IsInternalCall - -
- Signature: bool
-
-
- -

CompiledName: get_IsInternalCall

-
- - x.IsManaged - -
- Signature: bool
-
-
- -

CompiledName: get_IsManaged

-
- - x.IsMustRun - -
- Signature: bool
-
-
-

SafeHandle finalizer must be run.

- - -

CompiledName: get_IsMustRun

-
- - x.IsNewSlot - -
- Signature: bool
-
-
- -

CompiledName: get_IsNewSlot

-
- - x.IsNoInline - -
- Signature: bool
-
-
- -

CompiledName: get_IsNoInline

-
- - x.IsNonVirtualInstance - -
- Signature: bool
-
-
-

Indicates this is an instance methods that is not virtual.

- - -

CompiledName: get_IsNonVirtualInstance

-
- - x.IsPreserveSig - -
- Signature: bool
-
-
- -

CompiledName: get_IsPreserveSig

-
- - x.IsReqSecObj - -
- Signature: bool
-
-
- -

CompiledName: get_IsReqSecObj

-
- - x.IsSpecialName - -
- Signature: bool
-
-
- -

CompiledName: get_IsSpecialName

-
- - x.IsStatic - -
- Signature: bool
-
-
-

Indicates a static method.

- - -

CompiledName: get_IsStatic

-
- - x.IsSynchronized - -
- Signature: bool
-
-
- -

CompiledName: get_IsSynchronized

-
- - x.IsUnmanagedExport - -
- Signature: bool
-
-
-

The method is exported to unmanaged code using COM interop.

- - -

CompiledName: get_IsUnmanagedExport

-
- - x.IsVirtual - -
- Signature: bool
-
-
-

Indicates an instance methods that is virtual or abstract or implements an interface slot.

- - -

CompiledName: get_IsVirtual

-
- - x.IsZeroInit - -
- Signature: bool
-
-
- -

CompiledName: get_IsZeroInit

-
- - x.Locals - -
- Signature: ILLocals
-
-
- -

CompiledName: get_Locals

-
- - x.MaxStack - -
- Signature: int32
-
-
- -

CompiledName: get_MaxStack

-
- - x.MethodBody - -
- Signature: ILMethodBody
-
-
- -

CompiledName: get_MethodBody

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
- - x.Parameters - -
- Signature: ILParameters
-
-
- -

CompiledName: get_Parameters

-
- - x.ParameterTypes - -
- Signature: ILTypes
-
-
- -

CompiledName: get_ParameterTypes

-
- - x.Return - -
- Signature: ILReturn
-
-
- -

CompiledName: get_Return

-
- - x.SecurityDecls - -
- Signature: ILSecurityDecls
-
-
- -

CompiledName: get_SecurityDecls

-
- - x.With(...) - -
- Signature: (name:string option * attributes:MethodAttributes option * implAttributes:MethodImplAttributes option * callingConv:ILCallingConv option * parameters:ILParameters option * ret:ILReturn option * body:ILLazyMethodBody option * securityDecls:ILSecurityDecls option * isEntryPoint:bool option * genericParams:ILGenericParameterDefs option * customAttrs:ILAttributes option) -> ILMethodDef
-
-
-

Functional update of the value

- - -
- - x.WithAbstract(arg1) - -
- Signature: bool -> ILMethodDef
-
-
- -
- - x.WithAccess(arg1) - -
- Signature: ILMemberAccess -> ILMethodDef
-
-
- -
- - x.WithAggressiveInlining(arg1) - -
- Signature: bool -> ILMethodDef
-
-
- -
- - x.WithFinal(arg1) - -
- Signature: bool -> ILMethodDef
-
-
- -
- - x.WithHideBySig(arg1) - -
- Signature: bool -> ILMethodDef
-
-
- -
- - x.WithHideBySig() - -
- Signature: unit -> ILMethodDef
-
-
- -
- - x.WithNewSlot - -
- Signature: ILMethodDef
-
-
- -

CompiledName: get_WithNewSlot

-
- - x.WithNoInlining(arg1) - -
- Signature: bool -> ILMethodDef
-
-
- -
- - x.WithPInvoke(arg1) - -
- Signature: bool -> ILMethodDef
-
-
- -
- - x.WithPreserveSig(arg1) - -
- Signature: bool -> ILMethodDef
-
-
- -
- - x.WithRuntime(arg1) - -
- Signature: bool -> ILMethodDef
-
-
- -
- - x.WithSecurity(arg1) - -
- Signature: bool -> ILMethodDef
-
-
- -
- - x.WithSpecialName - -
- Signature: ILMethodDef
-
-
- -

CompiledName: get_WithSpecialName

-
- - x.WithSynchronized(arg1) - -
- Signature: bool -> ILMethodDef
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilmethoddefs.html b/docs/reference/fsharp-compiler-abstractil-il-ilmethoddefs.html deleted file mode 100644 index 30a9db9b28..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilmethoddefs.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - ILMethodDefs - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILMethodDefs

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<Sealed>]
- -
-

-
-

Tables of methods. Logically equivalent to a list of methods but -the table is kept in a form optimized for looking up methods by -name and arity.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AsArray - -
- Signature: ILMethodDef []
-
-
- -

CompiledName: get_AsArray

-
- - x.AsList - -
- Signature: ILMethodDef list
-
-
- -

CompiledName: get_AsList

-
- - x.FindByName(arg1) - -
- Signature: string -> ILMethodDef list
-
-
- -
- - x.TryFindInstanceByNameAndCallingSignature(...) - -
- Signature: (string * ILCallingSignature) -> ILMethodDef option
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilmethodimpldef.html b/docs/reference/fsharp-compiler-abstractil-il-ilmethodimpldef.html deleted file mode 100644 index e6697e48c1..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilmethodimpldef.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - ILMethodImplDef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILMethodImplDef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

Method Impls

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - OverrideBy - -
- Signature: ILMethodSpec
-
-
- -
- - Overrides - -
- Signature: ILOverridesSpec
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilmethodimpldefs.html b/docs/reference/fsharp-compiler-abstractil-il-ilmethodimpldefs.html deleted file mode 100644 index 28c9172bd9..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilmethodimpldefs.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - ILMethodImplDefs - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILMethodImplDefs

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<Sealed>]
- -
-

-
-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.AsList - -
- Signature: ILMethodImplDef list
-
-
- -

CompiledName: get_AsList

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilmethodref.html b/docs/reference/fsharp-compiler-abstractil-il-ilmethodref.html deleted file mode 100644 index 97d9bb9790..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilmethodref.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - - ILMethodRef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILMethodRef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<Sealed>]
- -
-

-
-

Formal identities of methods.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.ArgCount - -
- Signature: int
-
-
- -

CompiledName: get_ArgCount

-
- - x.ArgTypes - -
- Signature: ILTypes
-
-
- -

CompiledName: get_ArgTypes

-
- - x.CallingConv - -
- Signature: ILCallingConv
-
-
- -

CompiledName: get_CallingConv

-
- - x.CallingSignature - -
- Signature: ILCallingSignature
-
-
- -

CompiledName: get_CallingSignature

-
- - x.DeclaringTypeRef - -
- Signature: ILTypeRef
-
-
- -

CompiledName: get_DeclaringTypeRef

-
- - x.GenericArity - -
- Signature: int
-
-
- -

CompiledName: get_GenericArity

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
- - x.ReturnType - -
- Signature: ILType
-
-
- -

CompiledName: get_ReturnType

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - ILMethodRef.Create(...) - -
- Signature: (enclosingTypeRef:ILTypeRef * callingConv:ILCallingConv * name:string * genericArity:int * argTypes:ILTypes * returnType:ILType) -> ILMethodRef
-
-
-

Functional creation

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilmethodspec.html b/docs/reference/fsharp-compiler-abstractil-il-ilmethodspec.html deleted file mode 100644 index 8345a76622..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilmethodspec.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - - ILMethodSpec - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILMethodSpec

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<Sealed>]
- -
-

-
-

The information at the callsite of a method

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.CallingConv - -
- Signature: ILCallingConv
-
-
- -

CompiledName: get_CallingConv

-
- - x.DeclaringType - -
- Signature: ILType
-
-
- -

CompiledName: get_DeclaringType

-
- - x.FormalArgTypes - -
- Signature: ILTypes
-
-
- -

CompiledName: get_FormalArgTypes

-
- - x.FormalReturnType - -
- Signature: ILType
-
-
- -

CompiledName: get_FormalReturnType

-
- - x.GenericArgs - -
- Signature: ILGenericArgs
-
-
- -

CompiledName: get_GenericArgs

-
- - x.GenericArity - -
- Signature: int
-
-
- -

CompiledName: get_GenericArity

-
- - x.MethodRef - -
- Signature: ILMethodRef
-
-
- -

CompiledName: get_MethodRef

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - ILMethodSpec.Create(arg1, arg2, arg3) - -
- Signature: (ILType * ILMethodRef * ILGenericArgs) -> ILMethodSpec
-
-
-

Functional creation

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilmethodvirtualinfo.html b/docs/reference/fsharp-compiler-abstractil-il-ilmethodvirtualinfo.html deleted file mode 100644 index 904a424b4a..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilmethodvirtualinfo.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - ILMethodVirtualInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILMethodVirtualInfo

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - IsAbstract - -
- Signature: bool
-
-
- -
- - IsCheckAccessOnOverride - -
- Signature: bool
-
-
- -
- - IsFinal - -
- Signature: bool
-
-
- -
- - IsNewSlot - -
- Signature: bool
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilmoduledef.html b/docs/reference/fsharp-compiler-abstractil-il-ilmoduledef.html deleted file mode 100644 index 55cb6c11f0..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilmoduledef.html +++ /dev/null @@ -1,432 +0,0 @@ - - - - - ILModuleDef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILModuleDef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

One module in the "current" assembly, either a main-module or -an auxiliary module. The main module will have a manifest.

-

An assembly is built by joining together a "main" module plus -several auxiliary modules.

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - CustomAttrsStored - -
- Signature: ILAttributesStored
-
-
- -
- - ImageBase - -
- Signature: int32
-
-
- -
- - Is32Bit - -
- Signature: bool
-
-
- -
- - Is32BitPreferred - -
- Signature: bool
-
-
- -
- - Is64Bit - -
- Signature: bool
-
-
- -
- - IsDLL - -
- Signature: bool
-
-
- -
- - IsILOnly - -
- Signature: bool
-
-
- -
- - Manifest - -
- Signature: ILAssemblyManifest option
-
-
- -
- - MetadataIndex - -
- Signature: int32
-
-
- -
- - MetadataVersion - -
- Signature: string
-
-
- -
- - Name - -
- Signature: string
-
-
- -
- - NativeResources - -
- Signature: ILNativeResource list
-
-
-

e.g. win86 resources, as the exact contents of a .res or .obj file. Must be unlinked manually.

- - -
- - PhysicalAlignment - -
- Signature: int32
-
-
- -
- - Platform - -
- Signature: ILPlatform option
-
-
- -
- - Resources - -
- Signature: ILResources
-
-
- -
- - StackReserveSize - -
- Signature: int32 option
-
-
- -
- - SubSystemFlags - -
- Signature: int32
-
-
- -
- - SubsystemVersion - -
- Signature: int * int
-
-
- -
- - TypeDefs - -
- Signature: ILTypeDefs
-
-
- -
- - UseHighEntropyVA - -
- Signature: bool
-
-
- -
- - VirtualAlignment - -
- Signature: int32
-
-
- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- - x.HasManifest - -
- Signature: bool
-
-
- -

CompiledName: get_HasManifest

-
- - x.ManifestOfAssembly - -
- Signature: ILAssemblyManifest
-
-
- -

CompiledName: get_ManifestOfAssembly

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilmoduleref.html b/docs/reference/fsharp-compiler-abstractil-il-ilmoduleref.html deleted file mode 100644 index a002706983..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilmoduleref.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - - ILModuleRef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILModuleRef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<Sealed>]
- -
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Hash - -
- Signature: byte [] option
-
-
- -

CompiledName: get_Hash

-
- - x.HasMetadata - -
- Signature: bool
-
-
- -

CompiledName: get_HasMetadata

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - ILModuleRef.Create(...) - -
- Signature: (name:string * hasMetadata:bool * hash:byte [] option) -> ILModuleRef
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilnativeresource.html b/docs/reference/fsharp-compiler-abstractil-il-ilnativeresource.html deleted file mode 100644 index 8685c766b0..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilnativeresource.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - ILNativeResource - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILNativeResource

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - In(...) - -
- Signature: string * int * int * int
-
-
-

Represents a native resource to be read from the PE file

- - -
- - Out(unlinkedResource) - -
- Signature: byte []
-
-
-

Represents a native resource to be written in an output file

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilnativetype.html b/docs/reference/fsharp-compiler-abstractil-il-ilnativetype.html deleted file mode 100644 index 37d42b9248..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilnativetype.html +++ /dev/null @@ -1,608 +0,0 @@ - - - - - ILNativeType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILNativeType

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<StructuralEquality>]
-[<StructuralComparison>]
- -
-

-
-

Native Types, for marshalling to the native C interface. -These are taken directly from the ILASM syntax, see ECMA Spec (Partition II, 7.4).

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - ANSIBSTR - -
- Signature:
-
-
- -
- - Array(...) - -
- Signature: ILNativeType option * (int32 * int32 option) option
-
-
-

optional idx of parameter giving size plus optional additive i.e. num elems

- - -
- - AsAny - -
- Signature:
-
-
- -
- - Bool - -
- Signature:
-
-
- -
- - BSTR - -
- Signature:
-
-
- -
- - Byte - -
- Signature:
-
-
- -
- - ByValStr - -
- Signature:
-
-
- -
- - Currency - -
- Signature:
-
-
- -
- - Custom(ILGuid,string,string,byte []) - -
- Signature: ILGuid * string * string * byte []
-
-
- -
- - Double - -
- Signature:
-
-
- -
- - Empty - -
- Signature:
-
-
- -
- - Error - -
- Signature:
-
-
- -
- - FixedArray(int32) - -
- Signature: int32
-
-
- -
- - FixedSysString(int32) - -
- Signature: int32
-
-
- -
- - IDispatch - -
- Signature:
-
-
- -
- - Int - -
- Signature:
-
-
- -
- - Int16 - -
- Signature:
-
-
- -
- - Int32 - -
- Signature:
-
-
- -
- - Int64 - -
- Signature:
-
-
- -
- - Int8 - -
- Signature:
-
-
- -
- - Interface - -
- Signature:
-
-
- -
- - IUnknown - -
- Signature:
-
-
- -
- - LPSTR - -
- Signature:
-
-
- -
- - LPSTRUCT - -
- Signature:
-
-
- -
- - LPTSTR - -
- Signature:
-
-
- -
- - LPUTF8STR - -
- Signature:
-
-
- -
- - LPWSTR - -
- Signature:
-
-
- -
- - Method - -
- Signature:
-
-
- -
- - SafeArray(ILNativeVariant,string option) - -
- Signature: ILNativeVariant * string option
-
-
- -
- - Single - -
- Signature:
-
-
- -
- - Struct - -
- Signature:
-
-
- -
- - TBSTR - -
- Signature:
-
-
- -
- - UInt - -
- Signature:
-
-
- -
- - UInt16 - -
- Signature:
-
-
- -
- - UInt32 - -
- Signature:
-
-
- -
- - UInt64 - -
- Signature:
-
-
- -
- - VariantBool - -
- Signature:
-
-
- -
- - Void - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilnativevariant.html b/docs/reference/fsharp-compiler-abstractil-il-ilnativevariant.html deleted file mode 100644 index 2d67ef2000..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilnativevariant.html +++ /dev/null @@ -1,681 +0,0 @@ - - - - - ILNativeVariant - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILNativeVariant

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<StructuralEquality>]
-[<StructuralComparison>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Array(ILNativeVariant) - -
- Signature: ILNativeVariant
-
-
- -
- - Blob - -
- Signature:
-
-
- -
- - BlobObject - -
- Signature:
-
-
- -
- - Bool - -
- Signature:
-
-
- -
- - BSTR - -
- Signature:
-
-
- -
- - Byref(ILNativeVariant) - -
- Signature: ILNativeVariant
-
-
- -
- - CArray - -
- Signature:
-
-
- -
- - CF - -
- Signature:
-
-
- -
- - CLSID - -
- Signature:
-
-
- -
- - Currency - -
- Signature:
-
-
- -
- - Date - -
- Signature:
-
-
- -
- - Decimal - -
- Signature:
-
-
- -
- - Double - -
- Signature:
-
-
- -
- - Empty - -
- Signature:
-
-
- -
- - Error - -
- Signature:
-
-
- -
- - FileTime - -
- Signature:
-
-
- -
- - HRESULT - -
- Signature:
-
-
- -
- - IDispatch - -
- Signature:
-
-
- -
- - Int - -
- Signature:
-
-
- -
- - Int16 - -
- Signature:
-
-
- -
- - Int32 - -
- Signature:
-
-
- -
- - Int64 - -
- Signature:
-
-
- -
- - Int8 - -
- Signature:
-
-
- -
- - IUnknown - -
- Signature:
-
-
- -
- - LPSTR - -
- Signature:
-
-
- -
- - LPWSTR - -
- Signature:
-
-
- -
- - Null - -
- Signature:
-
-
- -
- - PTR - -
- Signature:
-
-
- -
- - Record - -
- Signature:
-
-
- -
- - SafeArray - -
- Signature:
-
-
- -
- - Single - -
- Signature:
-
-
- -
- - Storage - -
- Signature:
-
-
- -
- - StoredObject - -
- Signature:
-
-
- -
- - Stream - -
- Signature:
-
-
- -
- - StreamedObject - -
- Signature:
-
-
- -
- - UInt - -
- Signature:
-
-
- -
- - UInt16 - -
- Signature:
-
-
- -
- - UInt32 - -
- Signature:
-
-
- -
- - UInt64 - -
- Signature:
-
-
- -
- - UInt8 - -
- Signature:
-
-
- -
- - UserDefined - -
- Signature:
-
-
- -
- - Variant - -
- Signature:
-
-
- -
- - Vector(ILNativeVariant) - -
- Signature: ILNativeVariant
-
-
- -
- - Void - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilnestedexportedtype.html b/docs/reference/fsharp-compiler-abstractil-il-ilnestedexportedtype.html deleted file mode 100644 index 96b89c01cd..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilnestedexportedtype.html +++ /dev/null @@ -1,191 +0,0 @@ - - - - - ILNestedExportedType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILNestedExportedType

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

these are only found in the "Nested" field of ILExportedTypeOrForwarder objects

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Access - -
- Signature: ILMemberAccess
-
-
- -
- - CustomAttrsStored - -
- Signature: ILAttributesStored
-
-
- -
- - MetadataIndex - -
- Signature: int32
-
-
- -
- - Name - -
- Signature: string
-
-
- -
- - Nested - -
- Signature: ILNestedExportedTypes
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilnestedexportedtypes.html b/docs/reference/fsharp-compiler-abstractil-il-ilnestedexportedtypes.html deleted file mode 100644 index 99452b3b00..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilnestedexportedtypes.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - ILNestedExportedTypes - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILNestedExportedTypes

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<Sealed>]
- -
-

-
-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.AsList - -
- Signature: ILNestedExportedType list
-
-
- -

CompiledName: get_AsList

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iloverridesspec.html b/docs/reference/fsharp-compiler-abstractil-il-iloverridesspec.html deleted file mode 100644 index 3ba4d1a3af..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iloverridesspec.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - ILOverridesSpec - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILOverridesSpec

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - OverridesSpec(ILMethodRef,ILType) - -
- Signature: ILMethodRef * ILType
-
-
- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.DeclaringType - -
- Signature: ILType
-
-
- -

CompiledName: get_DeclaringType

-
- - x.MethodRef - -
- Signature: ILMethodRef
-
-
- -

CompiledName: get_MethodRef

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilparameter.html b/docs/reference/fsharp-compiler-abstractil-il-ilparameter.html deleted file mode 100644 index 80f69bcae0..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilparameter.html +++ /dev/null @@ -1,252 +0,0 @@ - - - - - ILParameter - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILParameter

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Method parameters and return values.

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - CustomAttrsStored - -
- Signature: ILAttributesStored
-
-
- -
- - Default - -
- Signature: ILFieldInit option
-
-
- -
- - IsIn - -
- Signature: bool
-
-
- -
- - IsOptional - -
- Signature: bool
-
-
- -
- - IsOut - -
- Signature: bool
-
-
- -
- - Marshal - -
- Signature: ILNativeType option
-
-
-

Marshalling map for parameters. COM Interop only.

- - -
- - MetadataIndex - -
- Signature: int32
-
-
- -
- - Name - -
- Signature: string option
-
-
- -
- - Type - -
- Signature: ILType
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilparameters.html b/docs/reference/fsharp-compiler-abstractil-il-ilparameters.html deleted file mode 100644 index f15a67a20c..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilparameters.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - ILParameters - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILParameters

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Head - -
- Signature: ILParameter
-
-
- -

CompiledName: get_Head

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [index] - -
- Signature: index:int -> ILParameter
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
-
-
- -

CompiledName: get_Length

-
- - x.Tail - -
- Signature: ILParameter list
-
-
- -

CompiledName: get_Tail

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - List.Empty - -
- Signature: ILParameter list
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilplatform.html b/docs/reference/fsharp-compiler-abstractil-il-ilplatform.html deleted file mode 100644 index e674d551f7..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilplatform.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - ILPlatform - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILPlatform

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - AMD64 - -
- Signature:
-
-
- -
- - IA64 - -
- Signature:
-
-
- -
- - X86 - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilpretypedef.html b/docs/reference/fsharp-compiler-abstractil-il-ilpretypedef.html deleted file mode 100644 index f6ec823837..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilpretypedef.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - ILPreTypeDef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILPreTypeDef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a prefix of information for ILTypeDef.

-

The information is enough to perform name resolution for the F# compiler, probe attributes -for ExtensionAttribute etc. This is key to the on-demand exploration of .NET metadata. -This information has to be "Goldilocks" - not too much, not too little, just right.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.GetTypeDef() - -
- Signature: unit -> ILTypeDef
- Modifiers: abstract
-
-
-

Realise the actual full typedef

- - -
- - x.Name - -
- Signature: string
- Modifiers: abstract
-
-
- -

CompiledName: get_Name

-
- - x.Namespace - -
- Signature: string list
- Modifiers: abstract
-
-
- -

CompiledName: get_Namespace

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilpretypedefimpl.html b/docs/reference/fsharp-compiler-abstractil-il-ilpretypedefimpl.html deleted file mode 100644 index 3d3e0de9f0..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilpretypedefimpl.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - ILPreTypeDefImpl - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILPreTypeDefImpl

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<Sealed>]
- -
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilpropertydef.html b/docs/reference/fsharp-compiler-abstractil-il-ilpropertydef.html deleted file mode 100644 index 5a726ddbae..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilpropertydef.html +++ /dev/null @@ -1,319 +0,0 @@ - - - - - ILPropertyDef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILPropertyDef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoComparison>]
-[<NoEquality>]
- -
-

-
-

Property definitions

- -
-

Constructors

- - - - - - - - - - - - - - -
ConstructorDescription
- - new(...) - -
- Signature: (name:string * attributes:PropertyAttributes * setMethod:ILMethodRef option * getMethod:ILMethodRef option * callingConv:ILThisConvention * propertyType:ILType * init:ILFieldInit option * args:ILTypes * customAttrs:ILAttributes) -> ILPropertyDef
-
-
-

Functional creation of a value, immediate

- - -

CompiledName: .ctor

-
- - new(...) - -
- Signature: (name:string * attributes:PropertyAttributes * setMethod:ILMethodRef option * getMethod:ILMethodRef option * callingConv:ILThisConvention * propertyType:ILType * init:ILFieldInit option * args:ILTypes * customAttrsStored:ILAttributesStored * metadataIndex:int32) -> ILPropertyDef
-
-
-

Functional creation of a value, using delayed reading via a metadata index, for ilread.fs

- - -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Args - -
- Signature: ILTypes
-
-
- -

CompiledName: get_Args

-
- - x.Attributes - -
- Signature: PropertyAttributes
-
-
- -

CompiledName: get_Attributes

-
- - x.CallingConv - -
- Signature: ILThisConvention
-
-
- -

CompiledName: get_CallingConv

-
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- - x.GetMethod - -
- Signature: ILMethodRef option
-
-
- -

CompiledName: get_GetMethod

-
- - x.Init - -
- Signature: ILFieldInit option
-
-
- -

CompiledName: get_Init

-
- - x.IsRTSpecialName - -
- Signature: bool
-
-
- -

CompiledName: get_IsRTSpecialName

-
- - x.IsSpecialName - -
- Signature: bool
-
-
- -

CompiledName: get_IsSpecialName

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
- - x.PropertyType - -
- Signature: ILType
-
-
- -

CompiledName: get_PropertyType

-
- - x.SetMethod - -
- Signature: ILMethodRef option
-
-
- -

CompiledName: get_SetMethod

-
- - x.With(...) - -
- Signature: (name:string option * attributes:PropertyAttributes option * setMethod:ILMethodRef option option * getMethod:ILMethodRef option option * callingConv:ILThisConvention option * propertyType:ILType option * init:ILFieldInit option option * args:ILTypes option * customAttrs:ILAttributes option) -> ILPropertyDef
-
-
-

Functional update of the value

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilpropertydefs.html b/docs/reference/fsharp-compiler-abstractil-il-ilpropertydefs.html deleted file mode 100644 index 53657c2d3e..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilpropertydefs.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - ILPropertyDefs - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILPropertyDefs

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<Sealed>]
- -
-

-
-

Table of properties in an IL type definition.

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.AsList - -
- Signature: ILPropertyDef list
-
-
- -

CompiledName: get_AsList

-
- - x.LookupByName(arg1) - -
- Signature: string -> ILPropertyDef list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilpropertyref.html b/docs/reference/fsharp-compiler-abstractil-il-ilpropertyref.html deleted file mode 100644 index 1be2b22553..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilpropertyref.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - ILPropertyRef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILPropertyRef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<Sealed>]
- -
-

-
-

A utility type provided for completeness

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.DeclaringTypeRef - -
- Signature: ILTypeRef
-
-
- -

CompiledName: get_DeclaringTypeRef

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - ILPropertyRef.Create(arg1, arg2) - -
- Signature: (ILTypeRef * string) -> ILPropertyRef
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilreadonly.html b/docs/reference/fsharp-compiler-abstractil-il-ilreadonly.html deleted file mode 100644 index 6a618e32a8..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilreadonly.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - ILReadonly - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILReadonly

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - NormalAddress - -
- Signature:
-
-
- -
- - ReadonlyAddress - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilreferences.html b/docs/reference/fsharp-compiler-abstractil-il-ilreferences.html deleted file mode 100644 index a6476d43b0..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilreferences.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - ILReferences - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILReferences

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - AssemblyReferences - -
- Signature: ILAssemblyRef list
-
-
- -
- - ModuleReferences - -
- Signature: ILModuleRef list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilresource.html b/docs/reference/fsharp-compiler-abstractil-il-ilresource.html deleted file mode 100644 index 49aa36a5b2..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilresource.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - ILResource - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILResource

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-

"Manifest ILResources" are chunks of resource data, being one of: -- the data section of the current module (byte[] of resource given directly). -- in an external file in this assembly (offset given in the ILResourceLocation field). -- as a resources in another assembly of the same name.

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Access - -
- Signature: ILResourceAccess
-
-
- -
- - CustomAttrsStored - -
- Signature: ILAttributesStored
-
-
- -
- - Location - -
- Signature: ILResourceLocation
-
-
- -
- - MetadataIndex - -
- Signature: int32
-
-
- -
- - Name - -
- Signature: string
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilresourceaccess.html b/docs/reference/fsharp-compiler-abstractil-il-ilresourceaccess.html deleted file mode 100644 index d689323a7b..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilresourceaccess.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - ILResourceAccess - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILResourceAccess

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Private - -
- Signature:
-
-
- -
- - Public - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilresourcelocation.html b/docs/reference/fsharp-compiler-abstractil-il-ilresourcelocation.html deleted file mode 100644 index 08e29e4172..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilresourcelocation.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - ILResourceLocation - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILResourceLocation

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilresources.html b/docs/reference/fsharp-compiler-abstractil-il-ilresources.html deleted file mode 100644 index 5d988b7304..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilresources.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - ILResources - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILResources

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<Sealed>]
- -
-

-
-

Table of resources in a module.

- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.AsList - -
- Signature: ILResource list
-
-
- -

CompiledName: get_AsList

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilreturn.html b/docs/reference/fsharp-compiler-abstractil-il-ilreturn.html deleted file mode 100644 index b4f6dc541e..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilreturn.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - ILReturn - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILReturn

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Method return values.

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - CustomAttrsStored - -
- Signature: ILAttributesStored
-
-
- -
- - Marshal - -
- Signature: ILNativeType option
-
-
- -
- - MetadataIndex - -
- Signature: int32
-
-
- -
- - Type - -
- Signature: ILType
-
-
- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- - x.WithCustomAttrs(customAttrs) - -
- Signature: customAttrs:ILAttributes -> ILReturn
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilscoperef.html b/docs/reference/fsharp-compiler-abstractil-il-ilscoperef.html deleted file mode 100644 index 839db28011..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilscoperef.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - - ILScopeRef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILScopeRef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Assembly(ILAssemblyRef) - -
- Signature: ILAssemblyRef
-
-
-

A reference to a type in another assembly

- - -
- - Local - -
- Signature:
-
-
-

A reference to the type in the current module

- - -
- - Module(ILModuleRef) - -
- Signature: ILModuleRef
-
-
-

A reference to a type in a module in the same assembly

- - -
- - PrimaryAssembly - -
- Signature:
-
-
-

A reference to a type in the primary assembly

- - -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.IsLocalRef - -
- Signature: bool
-
-
- -

CompiledName: get_IsLocalRef

-
- - x.QualifiedName - -
- Signature: string
-
-
- -

CompiledName: get_QualifiedName

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilsecurityaction.html b/docs/reference/fsharp-compiler-abstractil-il-ilsecurityaction.html deleted file mode 100644 index 2d442b039e..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilsecurityaction.html +++ /dev/null @@ -1,341 +0,0 @@ - - - - - ILSecurityAction - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILSecurityAction

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Assert - -
- Signature:
-
-
- -
- - Demand - -
- Signature:
-
-
- -
- - DemandChoice - -
- Signature:
-
-
- -
- - Deny - -
- Signature:
-
-
- -
- - InheritanceDemandChoice - -
- Signature:
-
-
- -
- - InheritCheck - -
- Signature:
-
-
- -
- - LinkCheck - -
- Signature:
-
-
- -
- - LinkDemandChoice - -
- Signature:
-
-
- -
- - NonCasDemand - -
- Signature:
-
-
- -
- - NonCasInheritance - -
- Signature:
-
-
- -
- - NonCasLinkDemand - -
- Signature:
-
-
- -
- - PermitOnly - -
- Signature:
-
-
- -
- - PreJitDeny - -
- Signature:
-
-
- -
- - PreJitGrant - -
- Signature:
-
-
- -
- - ReqMin - -
- Signature:
-
-
- -
- - ReqOpt - -
- Signature:
-
-
- -
- - ReqRefuse - -
- Signature:
-
-
- -
- - Request - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilsecuritydecl.html b/docs/reference/fsharp-compiler-abstractil-il-ilsecuritydecl.html deleted file mode 100644 index 2c6620abb8..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilsecuritydecl.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - ILSecurityDecl - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILSecurityDecl

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - ILSecurityDecl(ILSecurityAction,byte []) - -
- Signature: ILSecurityAction * byte []
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilsecuritydecls.html b/docs/reference/fsharp-compiler-abstractil-il-ilsecuritydecls.html deleted file mode 100644 index e1230abb89..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilsecuritydecls.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - ILSecurityDecls - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILSecurityDecls

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoComparison>]
-[<NoEquality>]
-[<Struct>]
- -
-

-
-

Abstract type equivalent to ILSecurityDecl list - use helpers -below to construct/destruct these.

- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.AsList - -
- Signature: ILSecurityDecl list
-
-
- -

CompiledName: get_AsList

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilsecuritydeclsstored.html b/docs/reference/fsharp-compiler-abstractil-il-ilsecuritydeclsstored.html deleted file mode 100644 index 4c9247c752..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilsecuritydeclsstored.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - ILSecurityDeclsStored - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILSecurityDeclsStored

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the efficiency-oriented storage of ILSecurityDecls in another item.

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilsourcedocument.html b/docs/reference/fsharp-compiler-abstractil-il-ilsourcedocument.html deleted file mode 100644 index c66e267bca..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilsourcedocument.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - ILSourceDocument - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILSourceDocument

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<Sealed>]
- -
-

-
-

Debug info. Values of type "source" can be attached at sequence -points and some other locations.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.DocumentType - -
- Signature: ILGuid option
-
-
- -

CompiledName: get_DocumentType

-
- - x.File - -
- Signature: string
-
-
- -

CompiledName: get_File

-
- - x.Language - -
- Signature: ILGuid option
-
-
- -

CompiledName: get_Language

-
- - x.Vendor - -
- Signature: ILGuid option
-
-
- -

CompiledName: get_Vendor

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - ILSourceDocument.Create(...) - -
- Signature: (language:ILGuid option * vendor:ILGuid option * documentType:ILGuid option * file:string) -> ILSourceDocument
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilsourcemarker.html b/docs/reference/fsharp-compiler-abstractil-il-ilsourcemarker.html deleted file mode 100644 index 20598b547d..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilsourcemarker.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - ILSourceMarker - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILSourceMarker

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<Sealed>]
- -
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Column - -
- Signature: int
-
-
- -

CompiledName: get_Column

-
- - x.Document - -
- Signature: ILSourceDocument
-
-
- -

CompiledName: get_Document

-
- - x.EndColumn - -
- Signature: int
-
-
- -

CompiledName: get_EndColumn

-
- - x.EndLine - -
- Signature: int
-
-
- -

CompiledName: get_EndLine

-
- - x.Line - -
- Signature: int
-
-
- -

CompiledName: get_Line

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - ILSourceMarker.Create(...) - -
- Signature: (document:ILSourceDocument * line:int * column:int * endLine:int * endColumn:int) -> ILSourceMarker
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltailcall.html b/docs/reference/fsharp-compiler-abstractil-il-iltailcall.html deleted file mode 100644 index 23fdb6d9ed..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltailcall.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - ILTailcall - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILTailcall

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Normalcall - -
- Signature:
-
-
- -
- - Tailcall - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilthisconvention.html b/docs/reference/fsharp-compiler-abstractil-il-ilthisconvention.html deleted file mode 100644 index 9df1992b8e..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilthisconvention.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - ILThisConvention - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILThisConvention

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Instance - -
- Signature:
-
-
-

accepts an implicit 'this' pointer

- - -
- - InstanceExplicit - -
- Signature:
-
-
-

accepts an explicit 'this' pointer

- - -
- - Static - -
- Signature:
-
-
-

no 'this' pointer is passed

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltoken.html b/docs/reference/fsharp-compiler-abstractil-il-iltoken.html deleted file mode 100644 index 9a62423d75..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltoken.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - ILToken - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILToken

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - ILField(ILFieldSpec) - -
- Signature: ILFieldSpec
-
-
- -
- - ILMethod(ILMethodSpec) - -
- Signature: ILMethodSpec
-
-
- -
- - ILType(ILType) - -
- Signature: ILType
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltype.html b/docs/reference/fsharp-compiler-abstractil-il-iltype.html deleted file mode 100644 index 8ebe991f37..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltype.html +++ /dev/null @@ -1,366 +0,0 @@ - - - - - ILType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILType

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<StructuralEquality>]
-[<StructuralComparison>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Array(ILArrayShape,ILType) - -
- Signature: ILArrayShape * ILType
-
-
-

Array types

- - -
- - Boxed(ILTypeSpec) - -
- Signature: ILTypeSpec
-
-
-

Reference types. Also may be used for parents of members even if for members in value types.

- - -
- - Byref(ILType) - -
- Signature: ILType
-
-
-

Managed pointers.

- - -
- - FunctionPointer(ILCallingSignature) - -
- Signature: ILCallingSignature
-
-
-

ILCode pointers.

- - -
- - Modified(bool,ILTypeRef,ILType) - -
- Signature: bool * ILTypeRef * ILType
-
-
-

Custom modifiers.

- - -
- - Ptr(ILType) - -
- Signature: ILType
-
-
-

Unmanaged pointers. Nb. the type is used by tools and for binding only, not by the verifier.

- - -
- - TypeVar(uint16) - -
- Signature: uint16
-
-
-

Reference a generic arg.

- - -
- - Value(ILTypeSpec) - -
- Signature: ILTypeSpec
-
-
-

Unboxed types, including builtin types.

- - -
- - Void - -
- Signature:
-
-
-

Used only in return and pointer types.

- - -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.BasicQualifiedName - -
- Signature: string
-
-
- -

CompiledName: get_BasicQualifiedName

-
- - x.Boxity - -
- Signature: ILBoxity
-
-
- -

CompiledName: get_Boxity

-
- - x.GenericArgs - -
- Signature: ILGenericArgs
-
-
- -

CompiledName: get_GenericArgs

-
- - x.IsNominal - -
- Signature: bool
-
-
- -

CompiledName: get_IsNominal

-
- - x.IsTyvar - -
- Signature: bool
-
-
- -

CompiledName: get_IsTyvar

-
- - x.QualifiedName - -
- Signature: string
-
-
- -

CompiledName: get_QualifiedName

-
- - x.TypeRef - -
- Signature: ILTypeRef
-
-
- -

CompiledName: get_TypeRef

-
- - x.TypeSpec - -
- Signature: ILTypeSpec
-
-
-

The type being modified.

- - -

CompiledName: get_TypeSpec

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltypedef.html b/docs/reference/fsharp-compiler-abstractil-il-iltypedef.html deleted file mode 100644 index 28e249f1c2..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltypedef.html +++ /dev/null @@ -1,718 +0,0 @@ - - - - - ILTypeDef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILTypeDef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoComparison>]
-[<NoEquality>]
- -
-

-
-

Represents IL Type Definitions.

- -
-

Constructors

- - - - - - - - - - - - - - -
ConstructorDescription
- - new(...) - -
- Signature: (name:string * attributes:TypeAttributes * layout:ILTypeDefLayout * implements:ILTypes * genericParams:ILGenericParameterDefs * extends:ILType option * methods:ILMethodDefs * nestedTypes:ILTypeDefs * fields:ILFieldDefs * methodImpls:ILMethodImplDefs * events:ILEventDefs * properties:ILPropertyDefs * securityDecls:ILSecurityDecls * customAttrs:ILAttributes) -> ILTypeDef
-
-
-

Functional creation of a value, immediate

- - -

CompiledName: .ctor

-
- - new(...) - -
- Signature: (name:string * attributes:TypeAttributes * layout:ILTypeDefLayout * implements:ILTypes * genericParams:ILGenericParameterDefs * extends:ILType option * methods:ILMethodDefs * nestedTypes:ILTypeDefs * fields:ILFieldDefs * methodImpls:ILMethodImplDefs * events:ILEventDefs * properties:ILPropertyDefs * securityDeclsStored:ILSecurityDeclsStored * customAttrsStored:ILAttributesStored * metadataIndex:int32) -> ILTypeDef
-
-
-

Functional creation of a value, using delayed reading via a metadata index, for ilread.fs

- - -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Access - -
- Signature: ILTypeDefAccess
-
-
- -

CompiledName: get_Access

-
- - x.Attributes - -
- Signature: TypeAttributes
-
-
- -

CompiledName: get_Attributes

-
- - x.CustomAttrs - -
- Signature: ILAttributes
-
-
- -

CompiledName: get_CustomAttrs

-
- - x.Encoding - -
- Signature: ILDefaultPInvokeEncoding
-
-
- -

CompiledName: get_Encoding

-
- - x.Events - -
- Signature: ILEventDefs
-
-
- -

CompiledName: get_Events

-
- - x.Extends - -
- Signature: ILType option
-
-
- -

CompiledName: get_Extends

-
- - x.Fields - -
- Signature: ILFieldDefs
-
-
- -

CompiledName: get_Fields

-
- - x.GenericParams - -
- Signature: ILGenericParameterDefs
-
-
- -

CompiledName: get_GenericParams

-
- - x.HasSecurity - -
- Signature: bool
-
-
-

Some classes are marked "HasSecurity" even if there are no permissions attached, -e.g. if they use SuppressUnmanagedCodeSecurityAttribute

- - -

CompiledName: get_HasSecurity

-
- - x.Implements - -
- Signature: ILTypes
-
-
- -

CompiledName: get_Implements

-
- - x.IsAbstract - -
- Signature: bool
-
-
- -

CompiledName: get_IsAbstract

-
- - x.IsClass - -
- Signature: bool
-
-
- -

CompiledName: get_IsClass

-
- - x.IsComInterop - -
- Signature: bool
-
-
-

Class or interface generated for COM interop.

- - -

CompiledName: get_IsComInterop

-
- - x.IsDelegate - -
- Signature: bool
-
-
- -

CompiledName: get_IsDelegate

-
- - x.IsEnum - -
- Signature: bool
-
-
- -

CompiledName: get_IsEnum

-
- - x.IsInterface - -
- Signature: bool
-
-
- -

CompiledName: get_IsInterface

-
- - x.IsSealed - -
- Signature: bool
-
-
- -

CompiledName: get_IsSealed

-
- - x.IsSerializable - -
- Signature: bool
-
-
- -

CompiledName: get_IsSerializable

-
- - x.IsSpecialName - -
- Signature: bool
-
-
- -

CompiledName: get_IsSpecialName

-
- - x.IsStruct - -
- Signature: bool
-
-
- -

CompiledName: get_IsStruct

-
- - x.IsStructOrEnum - -
- Signature: bool
-
-
- -

CompiledName: get_IsStructOrEnum

-
- - x.Layout - -
- Signature: ILTypeDefLayout
-
-
- -

CompiledName: get_Layout

-
- - x.MethodImpls - -
- Signature: ILMethodImplDefs
-
-
- -

CompiledName: get_MethodImpls

-
- - x.Methods - -
- Signature: ILMethodDefs
-
-
- -

CompiledName: get_Methods

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
- - x.NestedTypes - -
- Signature: ILTypeDefs
-
-
- -

CompiledName: get_NestedTypes

-
- - x.Properties - -
- Signature: ILPropertyDefs
-
-
- -

CompiledName: get_Properties

-
- - x.SecurityDecls - -
- Signature: ILSecurityDecls
-
-
- -

CompiledName: get_SecurityDecls

-
- - x.With(...) - -
- Signature: (name:string option * attributes:TypeAttributes option * layout:ILTypeDefLayout option * implements:ILTypes option * genericParams:ILGenericParameterDefs option * extends:ILType option option * methods:ILMethodDefs option * nestedTypes:ILTypeDefs option * fields:ILFieldDefs option * methodImpls:ILMethodImplDefs option * events:ILEventDefs option * properties:ILPropertyDefs option * customAttrs:ILAttributes option * securityDecls:ILSecurityDecls option) -> ILTypeDef
-
-
-

Functional update

- - -
- - x.WithAbstract(arg1) - -
- Signature: bool -> ILTypeDef
-
-
- -
- - x.WithAccess(arg1) - -
- Signature: ILTypeDefAccess -> ILTypeDef
-
-
- -
- - x.WithEncoding(arg1) - -
- Signature: ILDefaultPInvokeEncoding -> ILTypeDef
-
-
- -
- - x.WithHasSecurity(arg1) - -
- Signature: bool -> ILTypeDef
-
-
- -
- - x.WithImport(arg1) - -
- Signature: bool -> ILTypeDef
-
-
- -
- - x.WithInitSemantics(arg1) - -
- Signature: ILTypeInit -> ILTypeDef
-
-
- -
- - x.WithKind(arg1) - -
- Signature: ILTypeDefKind -> ILTypeDef
-
-
- -
- - x.WithLayout(arg1) - -
- Signature: ILTypeDefLayout -> ILTypeDef
-
-
- -
- - x.WithNestedAccess(arg1) - -
- Signature: ILMemberAccess -> ILTypeDef
-
-
- -
- - x.WithSealed(arg1) - -
- Signature: bool -> ILTypeDef
-
-
- -
- - x.WithSerializable(arg1) - -
- Signature: bool -> ILTypeDef
-
-
- -
- - x.WithSpecialName(arg1) - -
- Signature: bool -> ILTypeDef
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltypedefaccess.html b/docs/reference/fsharp-compiler-abstractil-il-iltypedefaccess.html deleted file mode 100644 index c7b8641757..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltypedefaccess.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - ILTypeDefAccess - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILTypeDefAccess

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Type Access.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Nested(ILMemberAccess) - -
- Signature: ILMemberAccess
-
-
- -
- - Private - -
- Signature:
-
-
- -
- - Public - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltypedefkind.html b/docs/reference/fsharp-compiler-abstractil-il-iltypedefkind.html deleted file mode 100644 index 6c2d7daaed..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltypedefkind.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - ILTypeDefKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILTypeDefKind

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

A categorization of type definitions into "kinds"

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Class - -
- Signature:
-
-
- -
- - Delegate - -
- Signature:
-
-
- -
- - Enum - -
- Signature:
-
-
- -
- - Interface - -
- Signature:
-
-
- -
- - ValueType - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltypedeflayout.html b/docs/reference/fsharp-compiler-abstractil-il-iltypedeflayout.html deleted file mode 100644 index d6e8071d9c..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltypedeflayout.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - ILTypeDefLayout - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILTypeDefLayout

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Type Layout information.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Auto - -
- Signature:
-
-
- -
- - Explicit(ILTypeDefLayoutInfo) - -
- Signature: ILTypeDefLayoutInfo
-
-
- -
- - Sequential(ILTypeDefLayoutInfo) - -
- Signature: ILTypeDefLayoutInfo
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltypedeflayoutinfo.html b/docs/reference/fsharp-compiler-abstractil-il-iltypedeflayoutinfo.html deleted file mode 100644 index 432cde881f..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltypedeflayoutinfo.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - ILTypeDefLayoutInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILTypeDefLayoutInfo

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Pack - -
- Signature: uint16 option
-
-
- -
- - Size - -
- Signature: int32 option
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltypedefs.html b/docs/reference/fsharp-compiler-abstractil-il-iltypedefs.html deleted file mode 100644 index 7dc6b7423c..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltypedefs.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - ILTypeDefs - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILTypeDefs

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<Sealed>]
- -
-

-
-

Tables of named type definitions.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AsArray - -
- Signature: ILTypeDef []
-
-
- -

CompiledName: get_AsArray

-
- - x.AsArrayOfPreTypeDefs - -
- Signature: ILPreTypeDef []
-
-
-

Get some information about the type defs, but do not force the read of the type defs themselves.

- - -

CompiledName: get_AsArrayOfPreTypeDefs

-
- - x.AsList - -
- Signature: ILTypeDef list
-
-
- -

CompiledName: get_AsList

-
- - x.FindByName(arg1) - -
- Signature: string -> ILTypeDef
-
-
-

Calls to FindByName will result in any laziness in the overall -set of ILTypeDefs being read in in addition -to the details for the type found, but the remaining individual -type definitions will not be read.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltypedefstored.html b/docs/reference/fsharp-compiler-abstractil-il-iltypedefstored.html deleted file mode 100644 index d9eaf5d422..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltypedefstored.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - ILTypeDefStored - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILTypeDefStored

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<Sealed>]
- -
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltypeinit.html b/docs/reference/fsharp-compiler-abstractil-il-iltypeinit.html deleted file mode 100644 index 611f291550..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltypeinit.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - ILTypeInit - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILTypeInit

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Indicate the initialization semantics of a type.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - BeforeField - -
- Signature:
-
-
- -
- - OnAny - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltyperef.html b/docs/reference/fsharp-compiler-abstractil-il-iltyperef.html deleted file mode 100644 index bfd0cf0d79..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltyperef.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - ILTypeRef - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILTypeRef

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<Sealed>]
- -
-

-
-

Type refs, i.e. references to types in some .NET assembly

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.BasicQualifiedName - -
- Signature: string
-
-
-

The name of the type in the assembly using the '+' notation for nested types.

- - -

CompiledName: get_BasicQualifiedName

-
- - x.Enclosing - -
- Signature: string list
-
-
-

The list of enclosing type names for a nested type. If non-nil then the first of these also contains the namespace.

- - -

CompiledName: get_Enclosing

-
- - x.FullName - -
- Signature: string
-
-
-

The name of the type in the assembly using the '.' notation for nested types.

- - -

CompiledName: get_FullName

-
- - x.Name - -
- Signature: string
-
-
-

The name of the type. This also contains the namespace if Enclosing is empty.

- - -

CompiledName: get_Name

-
- - x.QualifiedName - -
- Signature: string
-
-
- -

CompiledName: get_QualifiedName

-
- - x.Scope - -
- Signature: ILScopeRef
-
-
-

Where is the type, i.e. is it in this module, in another module in this assembly or in another assembly?

- - -

CompiledName: get_Scope

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - ILTypeRef.Create(scope, enclosing, name) - -
- Signature: (scope:ILScopeRef * enclosing:string list * name:string) -> ILTypeRef
-
-
-

Create a ILTypeRef.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltypes.html b/docs/reference/fsharp-compiler-abstractil-il-iltypes.html deleted file mode 100644 index 2c85ae849b..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltypes.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - ILTypes - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILTypes

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Head - -
- Signature: ILType
-
-
- -

CompiledName: get_Head

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [index] - -
- Signature: index:int -> ILType
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
-
-
- -

CompiledName: get_Length

-
- - x.Tail - -
- Signature: ILType list
-
-
- -

CompiledName: get_Tail

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - List.Empty - -
- Signature: ILType list
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-iltypespec.html b/docs/reference/fsharp-compiler-abstractil-il-iltypespec.html deleted file mode 100644 index 5c3749c18c..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-iltypespec.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - ILTypeSpec - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILTypeSpec

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<Sealed>]
- -
-

-
-

Type specs and types.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Enclosing - -
- Signature: string list
-
-
-

The list of enclosing type names for a nested type. If non-nil then the first of these also contains the namespace.

- - -

CompiledName: get_Enclosing

-
- - x.FullName - -
- Signature: string
-
-
-

The name of the type in the assembly using the '.' notation for nested types.

- - -

CompiledName: get_FullName

-
- - x.GenericArgs - -
- Signature: ILGenericArgs
-
-
-

The type instantiation if the type is generic, otherwise empty

- - -

CompiledName: get_GenericArgs

-
- - x.Name - -
- Signature: string
-
-
-

The name of the type. This also contains the namespace if Enclosing is empty.

- - -

CompiledName: get_Name

-
- - x.Scope - -
- Signature: ILScopeRef
-
-
-

Where is the type, i.e. is it in this module, in another module in this assembly or in another assembly?

- - -

CompiledName: get_Scope

-
- - x.TypeRef - -
- Signature: ILTypeRef
-
-
-

Which type is being referred to?

- - -

CompiledName: get_TypeRef

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - ILTypeSpec.Create(...) - -
- Signature: (typeRef:ILTypeRef * instantiation:ILGenericArgs) -> ILTypeSpec
-
-
-

Create an ILTypeSpec.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilvarargs.html b/docs/reference/fsharp-compiler-abstractil-il-ilvarargs.html deleted file mode 100644 index 1e55f15412..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilvarargs.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - - ILVarArgs - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILVarArgs

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.IsNone - -
- Signature: bool
-
-
- -

CompiledName: get_IsNone

-
- - x.IsSome - -
- Signature: bool
-
-
- -

CompiledName: get_IsSome

-
- - x.Value - -
- Signature: ILTypes
- - Attributes:
-[<CompilationRepresentation(2)>]
-
-
-
- -

CompiledName: get_Value

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - Option.None - -
- Signature: ILTypes option
-
-
- -

CompiledName: get_None

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilversioninfo.html b/docs/reference/fsharp-compiler-abstractil-il-ilversioninfo.html deleted file mode 100644 index 41fb8188f8..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilversioninfo.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - ILVersionInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILVersionInfo

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<Struct>]
- -
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Build - -
- Signature: uint16
-
-
- -
- - Major - -
- Signature: uint16
-
-
- -
- - Minor - -
- Signature: uint16
-
-
- -
- - Revision - -
- Signature: uint16
-
-
- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(major, minor, build, revision) - -
- Signature: (major:uint16 * minor:uint16 * build:uint16 * revision:uint16) -> ILVersionInfo
-
-
- -

CompiledName: .ctor

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-ilvolatility.html b/docs/reference/fsharp-compiler-abstractil-il-ilvolatility.html deleted file mode 100644 index 4931f2c619..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-ilvolatility.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - ILVolatility - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILVolatility

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Nonvolatile - -
- Signature:
-
-
- -
- - Volatile - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-methodbody.html b/docs/reference/fsharp-compiler-abstractil-il-methodbody.html deleted file mode 100644 index ddf2415954..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-methodbody.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - MethodBody - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

MethodBody

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Abstract - -
- Signature:
-
-
- -
- - IL(ILMethodBody) - -
- Signature: ILMethodBody
-
-
- -
- - Native - -
- Signature:
-
-
- -
- - NotAvailable - -
- Signature:
-
-
- -
- - PInvoke(PInvokeMethod) - -
- Signature: PInvokeMethod
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-methodcodekind.html b/docs/reference/fsharp-compiler-abstractil-il-methodcodekind.html deleted file mode 100644 index 4f86f4f05e..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-methodcodekind.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - MethodCodeKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

MethodCodeKind

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - IL - -
- Signature:
-
-
- -
- - Native - -
- Signature:
-
-
- -
- - Runtime - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-methodkind.html b/docs/reference/fsharp-compiler-abstractil-il-methodkind.html deleted file mode 100644 index 6ead737077..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-methodkind.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - MethodKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

MethodKind

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Cctor - -
- Signature:
-
-
- -
- - Ctor - -
- Signature:
-
-
- -
- - NonVirtual - -
- Signature:
-
-
- -
- - Static - -
- Signature:
-
-
- -
- - Virtual(ILMethodVirtualInfo) - -
- Signature: ILMethodVirtualInfo
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-pinvokecallingconvention.html b/docs/reference/fsharp-compiler-abstractil-il-pinvokecallingconvention.html deleted file mode 100644 index 8071f33058..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-pinvokecallingconvention.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - PInvokeCallingConvention - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PInvokeCallingConvention

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

PInvoke attributes.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Cdecl - -
- Signature:
-
-
- -
- - Fastcall - -
- Signature:
-
-
- -
- - None - -
- Signature:
-
-
- -
- - Stdcall - -
- Signature:
-
-
- -
- - Thiscall - -
- Signature:
-
-
- -
- - WinApi - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-pinvokecharbestfit.html b/docs/reference/fsharp-compiler-abstractil-il-pinvokecharbestfit.html deleted file mode 100644 index 41f732b51d..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-pinvokecharbestfit.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - PInvokeCharBestFit - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PInvokeCharBestFit

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Disabled - -
- Signature:
-
-
- -
- - Enabled - -
- Signature:
-
-
- -
- - UseAssembly - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-pinvokecharencoding.html b/docs/reference/fsharp-compiler-abstractil-il-pinvokecharencoding.html deleted file mode 100644 index 9d3eff4bf8..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-pinvokecharencoding.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - PInvokeCharEncoding - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PInvokeCharEncoding

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Ansi - -
- Signature:
-
-
- -
- - Auto - -
- Signature:
-
-
- -
- - None - -
- Signature:
-
-
- -
- - Unicode - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-pinvokemethod.html b/docs/reference/fsharp-compiler-abstractil-il-pinvokemethod.html deleted file mode 100644 index 494c58c654..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-pinvokemethod.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - PInvokeMethod - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PInvokeMethod

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
-[<NoComparison>]
-[<NoEquality>]
- -
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - CallingConv - -
- Signature: PInvokeCallingConvention
-
-
- -
- - CharBestFit - -
- Signature: PInvokeCharBestFit
-
-
- -
- - CharEncoding - -
- Signature: PInvokeCharEncoding
-
-
- -
- - LastError - -
- Signature: bool
-
-
- -
- - Name - -
- Signature: string
-
-
- -
- - NoMangle - -
- Signature: bool
-
-
- -
- - ThrowOnUnmappableChar - -
- Signature: PInvokeThrowOnUnmappableChar
-
-
- -
- - Where - -
- Signature: ILModuleRef
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-pinvokethrowonunmappablechar.html b/docs/reference/fsharp-compiler-abstractil-il-pinvokethrowonunmappablechar.html deleted file mode 100644 index 752a934d54..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-pinvokethrowonunmappablechar.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - PInvokeThrowOnUnmappableChar - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PInvokeThrowOnUnmappableChar

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Disabled - -
- Signature:
-
-
- -
- - Enabled - -
- Signature:
-
-
- -
- - UseAssembly - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-primaryassembly.html b/docs/reference/fsharp-compiler-abstractil-il-primaryassembly.html deleted file mode 100644 index 3352c51a79..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-primaryassembly.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - PrimaryAssembly - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PrimaryAssembly

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Mscorlib - -
- Signature:
-
-
- -
- - NetStandard - -
- Signature:
-
-
- -
- - System_Runtime - -
- Signature:
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il-publickey.html b/docs/reference/fsharp-compiler-abstractil-il-publickey.html deleted file mode 100644 index d6233cd80f..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il-publickey.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - PublicKey - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PublicKey

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: IL
- - Attributes:
-[<StructuralEquality>]
-[<StructuralComparison>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - PublicKey(byte []) - -
- Signature: byte []
-
-
- -
- - PublicKeyToken(byte []) - -
- Signature: byte []
-
-
- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.IsKey - -
- Signature: bool
-
-
- -

CompiledName: get_IsKey

-
- - x.IsKeyToken - -
- Signature: bool
-
-
- -

CompiledName: get_IsKeyToken

-
- - x.Key - -
- Signature: byte []
-
-
- -

CompiledName: get_Key

-
- - x.KeyToken - -
- Signature: byte []
-
-
- -

CompiledName: get_KeyToken

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - PublicKey.KeyAsToken(arg1) - -
- Signature: (byte []) -> PublicKey
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-il.html b/docs/reference/fsharp-compiler-abstractil-il.html deleted file mode 100644 index 29c3d0a5dc..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-il.html +++ /dev/null @@ -1,3918 +0,0 @@ - - - - - IL - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

IL

-

- Namespace: FSharp.Compiler.AbstractIL
-

-
-

The "unlinked" view of .NET metadata and code. Central to the Abstract IL library

- -
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- ILAlignment - - -
- ILArgConvention - - -
- ILArrayBound - -

Array shapes. For most purposes the rank is the only thing that matters.

- - -
- ILArrayBounds - -

Lower-bound/size pairs

- - -
- ILArrayShape - - -
- ILAssemblyLongevity - - -
- ILAssemblyManifest - -

The main module of an assembly is a module plus some manifest information.

- - -
- ILAssemblyRef - - -
- ILAttribElem - - -
- ILAttribute - -

Custom attribute.

- - -
- ILAttributeNamedArg - -

Named args: values and flags indicating if they are fields or properties.

- - -
- ILAttributes - - -
- ILAttributesStored - -

Represents the efficiency-oriented storage of ILAttributes in another item.

- - -
- ILBasicType - - -
- ILBoxity - - -
- ILCallingConv - - -
- ILCallingSignature - - -
- ILCode - - -
- ILCodeLabel - -

ILCode labels. In structured code each code label refers to a basic block somewhere in the code of the method.

- - -
- ILComparisonInstr - - -
- ILConst - - -
- ILDefaultPInvokeEncoding - -

Default Unicode encoding for P/Invoke within a type.

- - -
- ILEnumInfo - -

Decompose a type definition according to its kind.

- - -
- ILEventDef - -

Event definitions.

- - -
- ILEventDefs - -

Table of those events in a type definition.

- - -
- ILEventRef - -

A utility type provided for completeness

- - -
- ILExceptionClause - - -
- ILExceptionSpec - - -
- ILExportedTypeOrForwarder - -

these are only found in the ILExportedTypesAndForwarders table in the manifest

- - -
- ILExportedTypesAndForwarders - - -
- ILFieldDef - -

Field definitions.

- - -
- ILFieldDefs - -

Tables of fields. Logically equivalent to a list of fields but the table is kept in -a form to allow efficient looking up fields by name.

- - -
- ILFieldInit - -

Field Init

- - -
- ILFieldRef - -

Formal identities of fields.

- - -
- ILFieldSpec - -

Field specs. The data given for a ldfld, stfld etc. instruction.

- - -
- ILGenericArgs - -

Actual generic parameters are always types.

- - -
- ILGenericArgsList - - -
- ILGenericParameterDef - -

Generic parameters. Formal generic parameter declarations may include the bounds, if any, on the generic parameter.

- - -
- ILGenericParameterDefs - - -
- ILGenericVariance - - -
- ILGlobals - -

A table of common references to items in primary assembly (System.Runtime or mscorlib). -If a particular version of System.Runtime.dll has been loaded then you should -reference items from it via an ILGlobals for that specific version built using mkILGlobals.

- - -
- ILGuid - -

Represents guids

- - -
- ILInstr - -

The instruction set.

- - -
- ILLazyMethodBody - - -
- ILLocal - -

Local variables

- - -
- ILLocalDebugInfo - - -
- ILLocalDebugMapping - -

Indicates that a particular local variable has a particular source -language name within a given set of ranges. This does not effect local -variable numbering, which is global over the whole method.

- - -
- ILLocals - - -
- ILLocalsAllocator - -

Helpers for codegen: scopes for allocating new temporary variables.

- - -
- ILMemberAccess - -

Member Access

- - -
- ILMethodBody - -

IL method bodies

- - -
- ILMethodDef - -

IL Method definitions.

- - -
- ILMethodDefs - -

Tables of methods. Logically equivalent to a list of methods but -the table is kept in a form optimized for looking up methods by -name and arity.

- - -
- ILMethodImplDef - -

Method Impls

- - -
- ILMethodImplDefs - - -
- ILMethodRef - -

Formal identities of methods.

- - -
- ILMethodSpec - -

The information at the callsite of a method

- - -
- ILMethodVirtualInfo - - -
- ILModuleDef - -

One module in the "current" assembly, either a main-module or -an auxiliary module. The main module will have a manifest.

-

An assembly is built by joining together a "main" module plus -several auxiliary modules.

- - -
- ILModuleRef - - -
- ILNativeResource - - -
- ILNativeType - -

Native Types, for marshalling to the native C interface. -These are taken directly from the ILASM syntax, see ECMA Spec (Partition II, 7.4).

- - -
- ILNativeVariant - - -
- ILNestedExportedType - -

these are only found in the "Nested" field of ILExportedTypeOrForwarder objects

- - -
- ILNestedExportedTypes - - -
- ILOverridesSpec - - - -
- ILParameter - -

Method parameters and return values.

- - -
- ILParameters - - -
- ILPlatform - - -
- ILPreTypeDef - -

Represents a prefix of information for ILTypeDef.

-

The information is enough to perform name resolution for the F# compiler, probe attributes -for ExtensionAttribute etc. This is key to the on-demand exploration of .NET metadata. -This information has to be "Goldilocks" - not too much, not too little, just right.

- - -
- ILPreTypeDefImpl - - -
- ILPropertyDef - -

Property definitions

- - -
- ILPropertyDefs - -

Table of properties in an IL type definition.

- - -
- ILPropertyRef - -

A utility type provided for completeness

- - -
- ILReadonly - - -
- ILReferences - - -
- ILResource - -

"Manifest ILResources" are chunks of resource data, being one of: -- the data section of the current module (byte[] of resource given directly). -- in an external file in this assembly (offset given in the ILResourceLocation field). -- as a resources in another assembly of the same name.

- - -
- ILResourceAccess - - -
- ILResourceLocation - - -
- ILResources - -

Table of resources in a module.

- - -
- ILReturn - -

Method return values.

- - -
- ILScopeRef - - -
- ILSecurityAction - - -
- ILSecurityDecl - - -
- ILSecurityDecls - -

Abstract type equivalent to ILSecurityDecl list - use helpers -below to construct/destruct these.

- - -
- ILSecurityDeclsStored - -

Represents the efficiency-oriented storage of ILSecurityDecls in another item.

- - -
- ILSourceDocument - -

Debug info. Values of type "source" can be attached at sequence -points and some other locations.

- - -
- ILSourceMarker - - -
- ILTailcall - - -
- ILThisConvention - - -
- ILToken - - -
- ILType - - -
- ILTypeDef - -

Represents IL Type Definitions.

- - -
- ILTypeDefAccess - -

Type Access.

- - -
- ILTypeDefKind - -

A categorization of type definitions into "kinds"

- - -
- ILTypeDefLayout - -

Type Layout information.

- - -
- ILTypeDefLayoutInfo - - -
- ILTypeDefStored - - -
- ILTypeDefs - -

Tables of named type definitions.

- - -
- ILTypeInit - -

Indicate the initialization semantics of a type.

- - -
- ILTypeRef - -

Type refs, i.e. references to types in some .NET assembly

- - -
- ILTypeSpec - -

Type specs and types.

- - -
- ILTypes - - -
- ILVarArgs - - -
- ILVersionInfo - - -
- ILVolatility - - -
- MethodBody - - -
- MethodCodeKind - - -
- MethodKind - - -
- PInvokeCallingConvention - -

PInvoke attributes.

- - -
- PInvokeCharBestFit - - -
- PInvokeCharEncoding - - -
- PInvokeMethod - - -
- PInvokeThrowOnUnmappableChar - - -
- PrimaryAssembly - - -
- PublicKey - - -
- -
- -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - addILTypeDef arg1 arg2 - -
- Signature: ILTypeDef -> ILTypeDefs -> ILTypeDefs
-
-
- -
- - andTailness arg1 arg2 - -
- Signature: ILTailcall -> bool -> ILTailcall
-
-
- -
- - buildILCode arg1 lab2pc instrs arg4 arg5 - -
- Signature: string -> lab2pc:Dictionary<ILCodeLabel,int> -> instrs:ILInstr [] -> ILExceptionSpec list -> ILLocalDebugInfo list -> ILCode
-
-
- -
- - compareILVersions arg1 arg2 - -
- Signature: ILVersionInfo -> ILVersionInfo -> int
-
-
- -
- - computeILEnumInfo(arg1, arg2) - -
- Signature: (string * ILFieldDefs) -> ILEnumInfo
-
-
- -
- - computeILRefs arg1 arg2 - -
- Signature: ILGlobals -> ILModuleDef -> ILReferences
-
-
-

Find the full set of assemblies referenced by a module.

- - -
- - decodeILAttribData arg1 arg2 - -
- Signature: ILGlobals -> ILAttribute -> ILAttribElem list * ILAttributeNamedArg list
-
-
-

Not all custom attribute data can be decoded without binding types. In particular -enums must be bound in order to discover the size of the underlying integer. -The following assumes enums have size int32.

- - -
- - destILArrTy(arg1) - -
- Signature: ILType -> ILArrayShape * ILType
-
-
- -
- - destTypeDefsWithGlobalFunctionsFirst(...) - -
- Signature: ILGlobals -> ILTypeDefs -> ILTypeDef list
-
-
-

When writing a binary the fake "toplevel" type definition (called ) -must come first. This function puts it first, and creates it in the returned -list as an empty typedef if it doesn't already exist.

- - -
- - EcmaMscorlibILGlobals - -
- Signature: ILGlobals
-
-
- -
- - ecmaPublicKey - -
- Signature: PublicKey
-
-
-

This is a 'vendor neutral' way of referencing mscorlib.

- - -
- - emptyILCustomAttrs - -
- Signature: ILAttributes
-
-
- -
- - emptyILEvents - -
- Signature: ILEventDefs
-
-
- -
- - emptyILFields - -
- Signature: ILFieldDefs
-
-
- -
- - emptyILMethodImpls - -
- Signature: ILMethodImplDefs
-
-
- -
- - emptyILMethods - -
- Signature: ILMethodDefs
-
-
- -
- - emptyILProperties - -
- Signature: ILPropertyDefs
-
-
- -
- - emptyILRefs - -
- Signature: ILReferences
-
-
- -
- - emptyILSecurityDecls - -
- Signature: ILSecurityDecls
-
-
- -
- - emptyILTypeDefs - -
- Signature: ILTypeDefs
-
-
- -
- - formatCodeLabel(arg1) - -
- Signature: ILCodeLabel -> string
-
-
- -
- - formatILVersion(arg1) - -
- Signature: ILVersionInfo -> string
-
-
- -
- - generateCodeLabel() - -
- Signature: unit -> ILCodeLabel
-
-
-

Making code.

- - -
- - getCustomAttrData arg1 arg2 - -
- Signature: ILGlobals -> ILAttribute -> byte []
-
-
- -
- - getTyOfILEnumInfo(arg1) - -
- Signature: ILEnumInfo -> ILType
-
-
- -
- - instILType arg1 arg2 - -
- Signature: ILGenericArgs -> ILType -> ILType
-
-
-

Instantiate type variables that occur within types and other items.

- - -
- - instILTypeAux arg1 arg2 arg3 - -
- Signature: int -> ILGenericArgs -> ILType -> ILType
-
-
-

Instantiate type variables that occur within types and other items.

- - -
- - isILArrTy(arg1) - -
- Signature: ILType -> bool
-
-
- -
- - isILBoolTy arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILByteTy arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILCharTy arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILDoubleTy arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILInt16Ty arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILInt32Ty arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILInt64Ty arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILIntPtrTy arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILObjectTy arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
-

Discriminating different important built-in types.

- - -
- - isILSByteTy arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILSingleTy arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILStringTy arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILTypedReferenceTy arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILUInt16Ty arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILUInt32Ty arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILUInt64Ty arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isILUIntPtrTy arg1 arg2 - -
- Signature: ILGlobals -> ILType -> bool
-
-
- -
- - isTypeNameForGlobalFunctions(arg1) - -
- Signature: string -> bool
-
-
- -
- - methBodyAbstract - -
- Signature: ILLazyMethodBody
-
-
- -
- - methBodyNative - -
- Signature: ILLazyMethodBody
-
-
- -
- - methBodyNotAvailable - -
- Signature: ILLazyMethodBody
-
-
- -
- - mkCallBaseConstructor(arg1, arg2) - -
- Signature: (ILType * ILType list) -> ILInstr list
-
-
- -
- - mkCtorMethSpecForDelegate(...) - -
- Signature: ILGlobals -> (ILType * bool) -> ILMethodSpec
-
-
-

Given a delegate type definition which lies in a particular scope, -make a reference to its constructor.

- - -
- - mkILArr1DTy(arg1) - -
- Signature: ILType -> ILType
-
-
- -
- - mkILArrTy(arg1, arg2) - -
- Signature: (ILType * ILArrayShape) -> ILType
-
-
- -
- - mkILBoxedTy arg1 arg2 - -
- Signature: ILTypeRef -> ILGenericArgsList -> ILType
-
-
- -
- - mkILBoxedType(arg1) - -
- Signature: ILTypeSpec -> ILType
-
-
- -
- - mkILCallSig(arg1, arg2, arg3) - -
- Signature: (ILCallingConv * ILType list * ILType) -> ILCallingSignature
-
-
- -
- - mkILClassCtor(arg1) - -
- Signature: MethodBody -> ILMethodDef
-
-
- -
- - mkILCtor(arg1, arg2, arg3) - -
- Signature: (ILMemberAccess * ILParameter list * MethodBody) -> ILMethodDef
-
-
- -
- - mkILCtorMethSpecForTy(arg1, arg2) - -
- Signature: (ILType * ILType list) -> ILMethodSpec
-
-
-

Construct references to constructors.

- - -
- - mkILCustomAttribMethRef(...) - -
- Signature: ILGlobals -> (ILMethodSpec * ILAttribElem list * ILAttributeNamedArg list) -> ILAttribute
-
-
-

Make custom attributes.

- - -
- - mkILCustomAttribute(...) - -
- Signature: ILGlobals -> (ILTypeRef * ILType list * ILAttribElem list * ILAttributeNamedArg list) -> ILAttribute
-
-
- -
- - mkILCustomAttrs(arg1) - -
- Signature: ILAttribute list -> ILAttributes
-
-
-

Making tables of custom attributes, etc.

- - -
- - mkILCustomAttrsFromArray(arg1) - -
- Signature: ILAttribute [] -> ILAttributes
-
-
- -
- - mkILCustomAttrsReader(arg1) - -
- Signature: (int32 -> ILAttribute []) -> ILAttributesStored
-
-
- -
- - mkILDelegateMethods(...) - -
- Signature: ILMemberAccess -> ILGlobals -> (ILType * ILType) -> (ILParameter list * ILReturn) -> ILMethodDef list
-
-
- -
- - mkILEmptyGenericParams - -
- Signature: ILGenericParameterDefs
-
-
-

Make a formal generic parameters.

- - -
- - mkILEvents(arg1) - -
- Signature: ILEventDef list -> ILEventDefs
-
-
- -
- - mkILEventsLazy(arg1) - -
- Signature: Lazy<ILEventDef list> -> ILEventDefs
-
-
- -
- - mkILExportedTypes(arg1) - -
- Signature: ILExportedTypeOrForwarder list -> ILExportedTypesAndForwarders
-
-
- -
- - mkILExportedTypesLazy(arg1) - -
- Signature: Lazy<ILExportedTypeOrForwarder list> -> ILExportedTypesAndForwarders
-
-
- -
- - mkILFieldRef(arg1, arg2, arg3) - -
- Signature: (ILTypeRef * string * ILType) -> ILFieldRef
-
-
-

Construct references to fields.

- - -
- - mkILFields(arg1) - -
- Signature: ILFieldDef list -> ILFieldDefs
-
-
- -
- - mkILFieldsLazy(arg1) - -
- Signature: Lazy<ILFieldDef list> -> ILFieldDefs
-
-
- -
- - mkILFieldSpec(arg1, arg2) - -
- Signature: (ILFieldRef * ILType) -> ILFieldSpec
-
-
- -
- - mkILFieldSpecInTy(arg1, arg2, arg3) - -
- Signature: (ILType * string * ILType) -> ILFieldSpec
-
-
- -
- - mkILFormalBoxedTy arg1 arg2 - -
- Signature: ILTypeRef -> ILGenericParameterDef list -> ILType
-
-
-

Make generalized versions of possibly-generic types, e.g. Given the ILTypeDef for List, return the type "List".

- - -
- - mkILFormalGenericArgs arg1 arg2 - -
- Signature: int -> ILGenericParameterDefs -> ILGenericArgsList
-
-
- -
- - mkILFormalNamedTy arg1 arg2 arg3 - -
- Signature: ILBoxity -> ILTypeRef -> ILGenericParameterDef list -> ILType
-
-
- -
- - mkILFormalTypars(arg1) - -
- Signature: ILType list -> ILGenericParameterDefs
-
-
- -
- - mkILGenericClass(...) - -
- Signature: (string * ILTypeDefAccess * ILGenericParameterDefs * ILType * ILType list * ILMethodDefs * ILFieldDefs * ILTypeDefs * ILPropertyDefs * ILEventDefs * ILAttributes * ILTypeInit) -> ILTypeDef
-
-
-

Make a type definition.

- - -
- - mkILGenericNonVirtualMethod(...) - -
- Signature: (string * ILMemberAccess * ILGenericParameterDefs * ILParameter list * ILReturn * MethodBody) -> ILMethodDef
-
-
- -
- - mkILGenericVirtualMethod(...) - -
- Signature: (string * ILMemberAccess * ILGenericParameterDefs * ILParameter list * ILReturn * MethodBody) -> ILMethodDef
-
-
- -
- - mkILGlobals(...) - -
- Signature: (primaryScopeRef:ILScopeRef * assembliesThatForwardToPrimaryAssembly:ILAssemblyRef list) -> ILGlobals
-
-
-

Build the table of commonly used references given functions to find types in system assemblies

- - -
- - mkILInstanceField(...) - -
- Signature: (string * ILType * ILFieldInit option * ILMemberAccess) -> ILFieldDef
-
-
-

Make field definitions.

- - -
- - mkILInstanceMethSpecInTy(...) - -
- Signature: (ILType * string * ILType list * ILType * ILGenericArgsList) -> ILMethodSpec
-
-
-

Construct references to instance methods.

- - -
- - mkILLiteralField(...) - -
- Signature: (string * ILType * ILFieldInit * byte [] option * ILMemberAccess) -> ILFieldDef
-
-
- -
- - mkILLocal arg1 arg2 - -
- Signature: ILType -> (string * int * int) option -> ILLocal
-
-
- -
- - mkILMethodBody(...) - -
- Signature: (initlocals:bool * ILLocals * int * ILCode * ILSourceMarker option) -> ILMethodBody
-
-
-

Make method definitions.

- - -
- - mkILMethodImpls(arg1) - -
- Signature: ILMethodImplDef list -> ILMethodImplDefs
-
-
- -
- - mkILMethodImplsLazy(arg1) - -
- Signature: Lazy<ILMethodImplDef list> -> ILMethodImplDefs
-
-
- -
- - mkILMethods(arg1) - -
- Signature: ILMethodDef list -> ILMethodDefs
-
-
- -
- - mkILMethodsComputed(arg1) - -
- Signature: (unit -> ILMethodDef []) -> ILMethodDefs
-
-
- -
- - mkILMethodsFromArray(arg1) - -
- Signature: ILMethodDef [] -> ILMethodDefs
-
-
- -
- - mkILMethRef(...) - -
- Signature: (ILTypeRef * ILCallingConv * string * int * ILType list * ILType) -> ILMethodRef
-
-
-

Make method references and specs.

- - -
- - mkILMethSpec(arg1, arg2, arg3, arg4) - -
- Signature: (ILMethodRef * ILBoxity * ILGenericArgsList * ILGenericArgsList) -> ILMethodSpec
-
-
- -
- - mkILMethSpecForMethRefInTy(...) - -
- Signature: (ILMethodRef * ILType * ILGenericArgsList) -> ILMethodSpec
-
-
- -
- - mkILMethSpecInTy(...) - -
- Signature: (ILType * ILCallingConv * string * ILType list * ILType * ILGenericArgsList) -> ILMethodSpec
-
-
- -
- - mkILNamedTy arg1 arg2 arg3 - -
- Signature: ILBoxity -> ILTypeRef -> ILGenericArgsList -> ILType
-
-
- -
- - mkILNestedExportedTypes(arg1) - -
- Signature: ILNestedExportedType list -> ILNestedExportedTypes
-
-
- -
- - mkILNestedExportedTypesLazy(arg1) - -
- Signature: Lazy<ILNestedExportedType list> -> ILNestedExportedTypes
-
-
- -
- - mkILNestedTyRef(arg1, arg2, arg3) - -
- Signature: (ILScopeRef * string list * string) -> ILTypeRef
-
-
-

Make type refs.

- - -
- - mkILNonGenericBoxedTy(arg1) - -
- Signature: ILTypeRef -> ILType
-
-
- -
- - mkILNonGenericEmptyCtor arg1 arg2 - -
- Signature: ILSourceMarker option -> ILType -> ILMethodDef
-
-
- -
- - mkILNonGenericInstanceMethod(...) - -
- Signature: (string * ILMemberAccess * ILParameter list * ILReturn * MethodBody) -> ILMethodDef
-
-
- -
- - mkILNonGenericInstanceMethSpecInTy(...) - -
- Signature: (ILType * string * ILType list * ILType) -> ILMethodSpec
-
-
-

Construct references to instance methods.

- - -
- - mkILNonGenericMethSpecInTy(...) - -
- Signature: (ILType * ILCallingConv * string * ILType list * ILType) -> ILMethodSpec
-
-
-

Construct references to methods on a given type .

- - -
- - mkILNonGenericStaticMethod(...) - -
- Signature: (string * ILMemberAccess * ILParameter list * ILReturn * MethodBody) -> ILMethodDef
-
-
- -
- - mkILNonGenericStaticMethSpecInTy(...) - -
- Signature: (ILType * string * ILType list * ILType) -> ILMethodSpec
-
-
-

Construct references to static, non-generic methods.

- - -
- - mkILNonGenericTySpec(arg1) - -
- Signature: ILTypeRef -> ILTypeSpec
-
-
-

Make type specs.

- - -
- - mkILNonGenericValueTy(arg1) - -
- Signature: ILTypeRef -> ILType
-
-
- -
- - mkILNonGenericVirtualMethod(...) - -
- Signature: (string * ILMemberAccess * ILParameter list * ILReturn * MethodBody) -> ILMethodDef
-
-
- -
- - mkILParam(arg1, arg2) - -
- Signature: (string option * ILType) -> ILParameter
-
-
-

Derived functions for making return, parameter and local variable -objects for use in method definitions.

- - -
- - mkILParamAnon(arg1) - -
- Signature: ILType -> ILParameter
-
-
- -
- - mkILParamNamed(arg1, arg2) - -
- Signature: (string * ILType) -> ILParameter
-
-
- -
- - mkILPreTypeDef(arg1) - -
- Signature: ILTypeDef -> ILPreTypeDef
-
-
- -
- - mkILPreTypeDefComputed(arg1, arg2, arg3) - -
- Signature: (string list * string * (unit -> ILTypeDef)) -> ILPreTypeDef
-
-
- -
- - mkILPreTypeDefRead(...) - -
- Signature: (string list * string * int32 * ILTypeDefStored) -> ILPreTypeDef
-
-
- -
- - mkILProperties(arg1) - -
- Signature: ILPropertyDef list -> ILPropertyDefs
-
-
- -
- - mkILPropertiesLazy(arg1) - -
- Signature: Lazy<ILPropertyDef list> -> ILPropertyDefs
-
-
- -
- - mkILResources(arg1) - -
- Signature: ILResource list -> ILResources
-
-
- -
- - mkILReturn(arg1) - -
- Signature: ILType -> ILReturn
-
-
- -
- - mkILSecurityDecls(arg1) - -
- Signature: ILSecurityDecl list -> ILSecurityDecls
-
-
- -
- - mkILSecurityDeclsReader(arg1) - -
- Signature: (int32 -> ILSecurityDecl []) -> ILSecurityDeclsStored
-
-
- -
- - mkILSimpleClass(...) - -
- Signature: ILGlobals -> (string * ILTypeDefAccess * ILMethodDefs * ILFieldDefs * ILTypeDefs * ILPropertyDefs * ILEventDefs * ILAttributes * ILTypeInit) -> ILTypeDef
-
-
- -
- - mkILSimpleModule(...) - -
- Signature: assemblyName:string -> moduleName:string -> dll:bool -> subsystemVersion:(int * int) -> useHighEntropyVA:bool -> ILTypeDefs -> int32 option -> string option -> int -> ILExportedTypesAndForwarders -> string -> ILModuleDef
-
-
-

Making modules.

- - -
- - mkILSimpleStorageCtor(...) - -
- Signature: (ILSourceMarker option * ILTypeSpec option * ILType * ILParameter list * (string * ILType) list * ILMemberAccess) -> ILMethodDef
-
-
- -
- - mkILSimpleStorageCtorWithParamNames(...) - -
- Signature: (ILSourceMarker option * ILTypeSpec option * ILType * ILParameter list * (string * string * ILType) list * ILMemberAccess) -> ILMethodDef
-
-
- -
- - mkILSimpleTypar(arg1) - -
- Signature: string -> ILGenericParameterDef
-
-
- -
- - mkILStaticField(...) - -
- Signature: (string * ILType * ILFieldInit option * byte [] option * ILMemberAccess) -> ILFieldDef
-
-
- -
- - mkILStaticMethod(...) - -
- Signature: (ILGenericParameterDefs * string * ILMemberAccess * ILParameter list * ILReturn * MethodBody) -> ILMethodDef
-
-
- -
- - mkILStaticMethSpecInTy(...) - -
- Signature: (ILType * string * ILType list * ILType * ILGenericArgsList) -> ILMethodSpec
-
-
-

Construct references to static methods.

- - -
- - mkILStorageCtor(...) - -
- Signature: (ILSourceMarker option * ILInstr list * ILType * (string * ILType) list * ILMemberAccess) -> ILMethodDef
-
-
-

Derived functions for making some simple constructors

- - -
- - mkILTy arg1 arg2 - -
- Signature: ILBoxity -> ILTypeSpec -> ILType
-
-
-

Make types.

- - -
- - mkILTypeDefForGlobalFunctions(...) - -
- Signature: ILGlobals -> (ILMethodDefs * ILFieldDefs) -> ILTypeDef
-
-
- -
- - mkILTypeDefReader(arg1) - -
- Signature: (int32 -> ILTypeDef) -> ILTypeDefStored
-
-
- -
- - mkILTypeDefs(arg1) - -
- Signature: ILTypeDef list -> ILTypeDefs
-
-
- -
- - mkILTypeDefsComputed(arg1) - -
- Signature: (unit -> ILPreTypeDef []) -> ILTypeDefs
-
-
-

Create table of types which is loaded/computed on-demand, and whose individual -elements are also loaded/computed on-demand. Any call to tdefs.AsList will -result in the laziness being forced. Operations can examine the -custom attributes and name of each type in order to decide whether -to proceed with examining the other details of the type.

-

Note that individual type definitions may contain further delays -in their method, field and other tables.

- - -
- - mkILTypeDefsFromArray(arg1) - -
- Signature: ILTypeDef [] -> ILTypeDefs
-
-
- -
- - mkILTypeForGlobalFunctions(arg1) - -
- Signature: ILScopeRef -> ILType
-
-
-

The toplevel "class" for a module or assembly.

- - -
- - mkILTyRef(arg1, arg2) - -
- Signature: (ILScopeRef * string) -> ILTypeRef
-
-
- -
- - mkILTyRefInTyRef(arg1, arg2) - -
- Signature: (ILTypeRef * string) -> ILTypeRef
-
-
- -
- - mkILTySpec(arg1, arg2) - -
- Signature: (ILTypeRef * ILGenericArgsList) -> ILTypeSpec
-
-
- -
- - mkILTyvarTy(arg1) - -
- Signature: uint16 -> ILType
-
-
- -
- - mkILValueTy arg1 arg2 - -
- Signature: ILTypeRef -> ILGenericArgsList -> ILType
-
-
- -
- - mkLdarg(arg1) - -
- Signature: uint16 -> ILInstr
-
-
- -
- - mkLdarg0 - -
- Signature: ILInstr
-
-
- -
- - mkLdcInt32(arg1) - -
- Signature: int32 -> ILInstr
-
-
- -
- - mkLdloc(arg1) - -
- Signature: uint16 -> ILInstr
-
-
- -
- - mkMethBodyAux(arg1) - -
- Signature: MethodBody -> ILLazyMethodBody
-
-
- -
- - mkMethBodyLazyAux(arg1) - -
- Signature: Lazy<MethodBody> -> ILLazyMethodBody
-
-
- -
- - mkMethodBody(...) - -
- Signature: (bool * ILLocals * int * ILCode * ILSourceMarker option) -> MethodBody
-
-
- -
- - mkNormalCall(arg1) - -
- Signature: ILMethodSpec -> ILInstr
-
-
-

Derived functions for making some common patterns of instructions.

- - -
- - mkNormalCallconstraint(arg1, arg2) - -
- Signature: (ILType * ILMethodSpec) -> ILInstr
-
-
- -
- - mkNormalCallvirt(arg1) - -
- Signature: ILMethodSpec -> ILInstr
-
-
- -
- - mkNormalLdfld(arg1) - -
- Signature: ILFieldSpec -> ILInstr
-
-
- -
- - mkNormalLdflda(arg1) - -
- Signature: ILFieldSpec -> ILInstr
-
-
- -
- - mkNormalLdobj(arg1) - -
- Signature: ILType -> ILInstr
-
-
- -
- - mkNormalLdsfld(arg1) - -
- Signature: ILFieldSpec -> ILInstr
-
-
- -
- - mkNormalNewobj(arg1) - -
- Signature: ILMethodSpec -> ILInstr
-
-
- -
- - mkNormalStfld(arg1) - -
- Signature: ILFieldSpec -> ILInstr
-
-
- -
- - mkNormalStobj(arg1) - -
- Signature: ILType -> ILInstr
-
-
- -
- - mkNormalStsfld(arg1) - -
- Signature: ILFieldSpec -> ILInstr
-
-
- -
- - mkPermissionSet arg1 (arg2, arg3) - -
- Signature: ILGlobals -> (ILSecurityAction * (ILTypeRef * (string * ILType * ILAttribElem) list) list) -> ILSecurityDecl
-
-
- -
- - mkRawDataValueTypeDef(...) - -
- Signature: ILType -> (string * size:int32 * pack:uint16) -> ILTypeDef
-
-
-

Make a type definition for a value type used to point to raw data. -These are useful when generating array initialization code -according to the -ldtoken field valuetype ''/'\[struct0x6000127-1' '<PrivateImplementationDetails>'::'\]method0x6000127-1' -call void System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(class System.Array,valuetype System.RuntimeFieldHandle) -idiom.

- - -
- - mkRefForILField arg1 (arg2, arg3) arg4 - -
- Signature: ILScopeRef -> (ILTypeDef list * ILTypeDef) -> ILFieldDef -> ILFieldRef
-
-
- -
- - mkRefForILMethod arg1 (arg2, arg3) arg4 - -
- Signature: ILScopeRef -> (ILTypeDef list * ILTypeDef) -> ILMethodDef -> ILMethodRef
-
-
- -
- - mkRefForNestedILTypeDef(...) - -
- Signature: ILScopeRef -> (ILTypeDef list * ILTypeDef) -> ILTypeRef
-
-
-

Generate references to existing type definitions, method definitions -etc. Useful for generating references, e.g. to a class we're processing -Also used to reference type definitions that we've generated. ILScopeRef -is normally ILScopeRef.Local, unless we've generated the ILTypeDef in -an auxiliary module or are generating multiple assemblies at -once.

- - -
- - mkRefToILAssembly(arg1) - -
- Signature: ILAssemblyManifest -> ILAssemblyRef
-
-
- -
- - mkRefToILField(arg1, arg2) - -
- Signature: (ILTypeRef * ILFieldDef) -> ILFieldRef
-
-
- -
- - mkRefToILMethod(arg1, arg2) - -
- Signature: (ILTypeRef * ILMethodDef) -> ILMethodRef
-
-
- -
- - mkRefToILModule(arg1) - -
- Signature: ILModuleDef -> ILModuleRef
-
-
- -
- - mkSimpleAssemblyRef(arg1) - -
- Signature: string -> ILAssemblyRef
-
-
-

Generate simple references to assemblies and modules.

- - -
- - mkSimpleModRef(arg1) - -
- Signature: string -> ILModuleRef
-
-
- -
- - mkStloc(arg1) - -
- Signature: uint16 -> ILInstr
-
-
- -
- - mkTypeForwarder arg1 arg2 arg3 arg4 arg5 - -
- Signature: ILScopeRef -> string -> ILNestedExportedTypes -> ILAttributes -> ILTypeDefAccess -> ILExportedTypeOrForwarder
-
-
- -
- - NoMetadataIdx - -
- Signature: int32
-
-
- -
- - nonBranchingInstrsToCode(arg1) - -
- Signature: ILInstr list -> ILCode
-
-
-

Make some code that is a straight line sequence of instructions. -The function will add a "return" if the last instruction is not an exiting instruction.

- - -
- - parseILVersion(arg1) - -
- Signature: string -> ILVersionInfo
-
-
-

Get a version number from a CLR version string, e.g. 1.0.3705.0

- - -
- - prependInstrsToClassCtor arg1 arg2 arg3 - -
- Signature: ILInstr list -> ILSourceMarker option -> ILTypeDef -> ILTypeDef
-
-
-

Injecting initialization code into a class. -Add some code to the end of the .cctor for a type. Create a .cctor -if one doesn't exist already.

- - -
- - prependInstrsToCode arg1 arg2 - -
- Signature: ILInstr list -> ILCode -> ILCode
-
-
-

Injecting code into existing code blocks. A branch will -be added from the given instructions to the (unique) entry of -the code, and the first instruction will be the new entry -of the method. The instructions should be non-branching.

- - -
- - prependInstrsToMethod arg1 arg2 - -
- Signature: ILInstr list -> ILMethodDef -> ILMethodDef
-
-
- -
- - rescopeILFieldRef arg1 arg2 - -
- Signature: ILScopeRef -> ILFieldRef -> ILFieldRef
-
-
-

Rescoping. The first argument tells the function how to reference the original scope from -the new scope.

- - -
- - rescopeILMethodRef arg1 arg2 - -
- Signature: ILScopeRef -> ILMethodRef -> ILMethodRef
-
-
-

Rescoping. The first argument tells the function how to reference the original scope from -the new scope.

- - -
- - rescopeILScopeRef arg1 arg2 - -
- Signature: ILScopeRef -> ILScopeRef -> ILScopeRef
-
-
-

Rescoping. The first argument tells the function how to reference the original scope from -the new scope.

- - -
- - rescopeILType arg1 arg2 - -
- Signature: ILScopeRef -> ILType -> ILType
-
-
-

Rescoping. The first argument tells the function how to reference the original scope from -the new scope.

- - -
- - rescopeILTypeSpec arg1 arg2 - -
- Signature: ILScopeRef -> ILTypeSpec -> ILTypeSpec
-
-
-

Rescoping. The first argument tells the function how to reference the original scope from -the new scope.

- - -
- - resolveILMethodRef arg1 arg2 - -
- Signature: ILTypeDef -> ILMethodRef -> ILMethodDef
-
-
-

Find the method definition corresponding to the given property or -event operation. These are always in the same class as the property -or event. This is useful especially if your code is not using the Ilbind -API to bind references.

- - -
- - resolveILMethodRefWithRescope(...) - -
- Signature: (ILType -> ILType) -> ILTypeDef -> ILMethodRef -> ILMethodDef
-
-
- -
- - sha1HashBytes(arg1) - -
- Signature: byte [] -> byte []
-
-
-

Get a public key token from a public key.

- - -
- - sha1HashInt64(arg1) - -
- Signature: byte [] -> int64
-
-
- -
- - splitILTypeName(arg1) - -
- Signature: string -> string list * string
-
-
-

The splitILTypeName utility helps you split a string representing -a type name into the leading namespace elements (if any), the -names of any nested types and the type name itself. This function -memoizes and interns the splitting of the namespace portion of -the type name.

- - -
- - splitILTypeNameWithPossibleStaticArguments(...) - -
- Signature: string -> string [] * string
-
-
- -
- - splitNamespace(arg1) - -
- Signature: string -> string list
-
-
- -
- - splitNamespaceToArray(arg1) - -
- Signature: string -> string []
-
-
- -
- - splitTypeNameRight(arg1) - -
- Signature: string -> string option * string
-
-
- splitTypeNameRight is like splitILTypeName except the - namespace is kept as a whole string, rather than split at dots. - -
- - storeILCustomAttrs(arg1) - -
- Signature: ILAttributes -> ILAttributesStored
-
-
- -
- - storeILSecurityDecls(arg1) - -
- Signature: ILSecurityDecls -> ILSecurityDeclsStored
-
-
- -
- - typeNameForGlobalFunctions - -
- Signature: string
-
-
- -
- - typesOfILParams(arg1) - -
- Signature: ILParameters -> ILType list
-
-
- -
- - unscopeILType(arg1) - -
- Signature: ILType -> ILType
-
-
-

Unscoping. Clears every scope information, use for looking up IL method references only.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-ilmodulereader.html b/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-ilmodulereader.html deleted file mode 100644 index f3568b08b5..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-ilmodulereader.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - ILModuleReader - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILModuleReader

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: ILBinaryReader
-

-
-

Represents a reader of the metadata of a .NET binary. May also give some values (e.g. IL code) from the PE file -if it was provided.

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.ILAssemblyRefs - -
- Signature: ILAssemblyRef list
- Modifiers: abstract
-
-
- -

CompiledName: get_ILAssemblyRefs

-
- - x.ILModuleDef - -
- Signature: ILModuleDef
- Modifiers: abstract
-
-
- -

CompiledName: get_ILModuleDef

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-ilreadermetadatasnapshot.html b/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-ilreadermetadatasnapshot.html deleted file mode 100644 index 5b210a95c0..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-ilreadermetadatasnapshot.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - ILReaderMetadataSnapshot - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILReaderMetadataSnapshot

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: ILBinaryReader
-

-
-

Used to implement a Binary file over native memory, used by Roslyn integration

- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Item1 - -
- Signature: obj
-
-
- -
- - x.Item2 - -
- Signature: nativeint
-
-
- -
- - x.Item3 - -
- Signature: int
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-ilreaderoptions.html b/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-ilreaderoptions.html deleted file mode 100644 index f626c9e79c..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-ilreaderoptions.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - ILReaderOptions - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILReaderOptions

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: ILBinaryReader
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - metadataOnly - -
- Signature: MetadataOnlyFlag
-
-
-

Only open a metadata reader for the metadata portion of the .NET binary without keeping alive any data associated with the PE reader -- IL code will not be available (mdBody in ILMethodDef will return NotAvailable) -- Managed resources will be reported back as ILResourceLocation.LocalIn (as always) -- Native resources will not be available (none will be returned) -- Static data associated with fields will not be available

- - -
- - pdbDirPath - -
- Signature: string option
-
-
- -
- - reduceMemoryUsage - -
- Signature: ReduceMemoryFlag
-
-
- -
- - tryGetMetadataSnapshot - -
- Signature: ILReaderTryGetMetadataSnapshot
-
-
-

A function to call to try to get an object that acts as a snapshot of the metadata section of a .NET binary, -and from which we can read the metadata. Only used when metadataOnly=true.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-ilreadertrygetmetadatasnapshot.html b/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-ilreadertrygetmetadatasnapshot.html deleted file mode 100644 index cd47dd2060..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-ilreadertrygetmetadatasnapshot.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - ILReaderTryGetMetadataSnapshot - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILReaderTryGetMetadataSnapshot

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: ILBinaryReader
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-metadataonlyflag.html b/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-metadataonlyflag.html deleted file mode 100644 index 48c570e850..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-metadataonlyflag.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - MetadataOnlyFlag - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

MetadataOnlyFlag

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: ILBinaryReader
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - No - -
- Signature:
-
-
- -
- - Yes - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-reducememoryflag.html b/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-reducememoryflag.html deleted file mode 100644 index 52b7a93883..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-reducememoryflag.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - ReduceMemoryFlag - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ReduceMemoryFlag

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: ILBinaryReader
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - No - -
- Signature:
-
-
- -
- - Yes - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-shim-defaultassemblyreader.html b/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-shim-defaultassemblyreader.html deleted file mode 100644 index 823e34fb5c..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-shim-defaultassemblyreader.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - DefaultAssemblyReader - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DefaultAssemblyReader

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: Shim
- - Attributes:
-[<Sealed>]
- -
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-shim-iassemblyreader.html b/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-shim-iassemblyreader.html deleted file mode 100644 index 2dc13a7cd2..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-shim-iassemblyreader.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - IAssemblyReader - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

IAssemblyReader

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: Shim
-

-
-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.GetILModuleReader(...) - -
- Signature: (filename:string * readerOptions:ILReaderOptions) -> ILModuleReader
- Modifiers: abstract
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-shim.html b/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-shim.html deleted file mode 100644 index 07755d0cf3..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-shim.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - Shim - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Shim

-

- Namespace: FSharp.Compiler.AbstractIL
- Parent Module: ILBinaryReader - - Attributes:
-[<AutoOpen>]
- -
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - -
TypeDescription
- DefaultAssemblyReader - - -
- IAssemblyReader - - -
- -
- -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - AssemblyReader - -
- Signature: IAssemblyReader
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-statistics.html b/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-statistics.html deleted file mode 100644 index d639cf9114..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader-statistics.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - Statistics - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Statistics

-

- - Namespace: FSharp.Compiler.AbstractIL
- Parent Module: ILBinaryReader
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - byteFileCount - -
- Signature: int
- Modifiers: mutable
-
-
- -
- - memoryMapFileClosedCount - -
- Signature: int
- Modifiers: mutable
-
-
- -
- - memoryMapFileOpenedCount - -
- Signature: int
- Modifiers: mutable
-
-
- -
- - rawMemoryFileCount - -
- Signature: int
- Modifiers: mutable
-
-
- -
- - weakByteFileCount - -
- Signature: int
- Modifiers: mutable
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader.html b/docs/reference/fsharp-compiler-abstractil-ilbinaryreader.html deleted file mode 100644 index b8196a46d0..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-ilbinaryreader.html +++ /dev/null @@ -1,229 +0,0 @@ - - - - - ILBinaryReader - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ILBinaryReader

-

- Namespace: FSharp.Compiler.AbstractIL
-

-
-

Binary reader. Read a .NET binary and concert it to Abstract IL data -structures.

-

NOTE: -- The metadata in the loaded modules will be relative to -those modules, e.g. ILScopeRef.Local will mean "local to -that module". You must use [rescopeILType] etc. if you want to include -(i.e. copy) the metadata into your own module.

-
    -
  • -

    PDB (debug info) reading/folding: -The PDB reader is invoked if you give a PDB path -This indicates if you want to search for PDB files and have the -reader fold them in. You cannot currently name the pdb file -directly - you can only name the path. Giving "None" says -"do not read the PDB file even if one exists".

    -

    The debug info appears primarily as I_seqpoint annotations in -the instruction streams. Unfortunately the PDB information does -not, for example, tell you how to map back from a class definition -to a source code line number - you will need to explicitly search -for a sequence point in the code for one of the methods of the -class. That is not particularly satisfactory, and it may be -a good idea to build a small library which extracts the information -you need.

    -
  • -
- -
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- ILModuleReader - -

Represents a reader of the metadata of a .NET binary. May also give some values (e.g. IL code) from the PE file -if it was provided.

- - -
- ILReaderMetadataSnapshot - -

Used to implement a Binary file over native memory, used by Roslyn integration

- - -
- ILReaderOptions - - -
- ILReaderTryGetMetadataSnapshot - - -
- MetadataOnlyFlag - - -
- ReduceMemoryFlag - - -
- Statistics - - -
- - - - - - - - - - -
ModuleDescription
- Shim - - -
- -
- -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - GetStatistics() - -
- Signature: unit -> Statistics
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-anycallerthreadtoken.html b/docs/reference/fsharp-compiler-abstractil-internal-library-anycallerthreadtoken.html deleted file mode 100644 index 12a2545736..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-anycallerthreadtoken.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - AnyCallerThreadToken - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

AnyCallerThreadToken

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-

Represents a token that indicates execution on a any of several potential user threads calling the F# compiler services.

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> AnyCallerThreadToken
-
-
- -

CompiledName: .ctor

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-array.html b/docs/reference/fsharp-compiler-abstractil-internal-library-array.html deleted file mode 100644 index 4617c5e195..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-array.html +++ /dev/null @@ -1,306 +0,0 @@ - - - - - Array - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Array

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - areEqual xs ys - -
- Signature: xs:'T [] -> ys:'T [] -> bool
- Type parameters: 'T
-
-

Optimized arrays equality. ~100x faster than array1 = array2 on strings. -~2x faster for floats -~0.8x slower for ints

- - -
- - endsWith suffix whole - -
- Signature: suffix:'a [] -> whole:'a [] -> bool
- Type parameters: 'a
-
-

Returns true if one array has trailing elements equal to another's.

- - -
- - existsOne p l - -
- Signature: p:('a -> bool) -> l:'a [] -> bool
- Type parameters: 'a
-
- -
- - existsTrue(arr) - -
- Signature: arr:bool [] -> bool
-
-
- -
- - findFirstIndexWhereTrue arr p - -
- Signature: arr:'a [] -> p:('a -> bool) -> int
- Type parameters: 'a
-
- -
- - heads(array) - -
- Signature: array:'T [] -> 'T [] []
- Type parameters: 'T
-
-

Returns all heads of a given array. -For [|1;2;3|] it returns [|[|1; 2; 3|]; [|1; 2|]; [|1|]|]

- - -
- - isSubArray subArray wholeArray index - -
- Signature: subArray:'T [] -> wholeArray:'T [] -> index:int -> bool
- Type parameters: 'T
-
-

check if subArray is found in the wholeArray starting -at the provided index

- - -
- - lengthsEqAndForall2 p l1 l2 - -
- Signature: p:('c -> 'd -> bool) -> l1:'c [] -> l2:'d [] -> bool
- Type parameters: 'c, 'd
-
- -
- - mapAsync mapping array - -
- Signature: mapping:('T -> Async<'U>) -> array:'T [] -> Async<'U []>
- Type parameters: 'T, 'U
-
-

Async implementation of Array.map.

- - -
- - mapq f inp - -
- Signature: f:('?682861 -> '?682861) -> inp:'?682861 [] -> '?682861 []
- Type parameters: '?682861
-
- -
- - order(eltOrder) - -
- Signature: eltOrder:IComparer<'T> -> IComparer<'T array>
- Type parameters: 'T
-
- -
- - replace index value array - -
- Signature: index:int -> value:'a -> array:'a [] -> 'a []
- Type parameters: 'a
-
-

Returns a new array with an element replaced with a given value.

- - -
- - revInPlace(array) - -
- Signature: array:'T [] -> unit
- Type parameters: 'T
-
-

pass an array byref to reverse it in place

- - -
- - startsWith prefix whole - -
- Signature: prefix:'a [] -> whole:'a [] -> bool
- Type parameters: 'a
-
-

Returns true if one array has another as its subset from index 0.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-cancellable-1.html b/docs/reference/fsharp-compiler-abstractil-internal-library-cancellable-1.html deleted file mode 100644 index 9c17f08866..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-cancellable-1.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - Cancellable<'TResult> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Cancellable<'TResult>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-

Represents a cancellable computation with explicit representation of a cancelled result.

-

A cancellable computation is passed may be cancelled via a CancellationToken, which is propagated implicitly.
-If cancellation occurs, it is propagated as data rather than by raising an OperationCanceledException.

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - Cancellable(...) - -
- Signature: CancellationToken -> ValueOrCancelled<'TResult>
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-cancellablebuilder.html b/docs/reference/fsharp-compiler-abstractil-internal-library-cancellablebuilder.html deleted file mode 100644 index 552ed6036a..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-cancellablebuilder.html +++ /dev/null @@ -1,241 +0,0 @@ - - - - - CancellableBuilder - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

CancellableBuilder

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> CancellableBuilder
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Bind(e, k) - -
- Signature: (e:Cancellable<'a> * k:('a -> Cancellable<'b>)) -> Cancellable<'b>
- Type parameters: 'a, 'b
-
- -
- - x.Combine(e1, e2) - -
- Signature: (e1:Cancellable<unit> * e2:Cancellable<'a>) -> Cancellable<'a>
- Type parameters: 'a
-
- -
- - x.Delay(f) - -
- Signature: (f:(unit -> Cancellable<'a>)) -> Cancellable<'a>
- Type parameters: 'a
-
- -
- - x.Return(v) - -
- Signature: v:'a -> Cancellable<'a>
- Type parameters: 'a
-
- -
- - x.ReturnFrom(v) - -
- Signature: v:'a -> 'a
- Type parameters: 'a
-
- -
- - x.TryFinally(e, compensation) - -
- Signature: (e:Cancellable<'?682734> * compensation:(unit -> unit)) -> Cancellable<'?682734>
- Type parameters: '?682734
-
- -
- - x.TryWith(e, handler) - -
- Signature: (e:Cancellable<'a> * handler:(exn -> Cancellable<'a>)) -> Cancellable<'a>
- Type parameters: 'a
-
- -
- - x.Using(resource, e) - -
- Signature: (resource:'a * e:('a -> Cancellable<'b>)) -> Cancellable<'b>
- Type parameters: 'a, 'b
-
- -
- - x.Zero() - -
- Signature: unit -> Cancellable<unit>
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-cancellablemodule.html b/docs/reference/fsharp-compiler-abstractil-internal-library-cancellablemodule.html deleted file mode 100644 index f476fa691b..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-cancellablemodule.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - Cancellable - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Cancellable

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library - - Attributes:
-[<CompilationRepresentation(4)>]
- -
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - bind f comp1 - -
- Signature: f:('?683088 -> Cancellable<'?683089>) -> comp1:Cancellable<'?683088> -> Cancellable<'?683089>
- Type parameters: '?683088, '?683089
-
-

Bind the result of a cancellable computation

- - -
- - canceled() - -
- Signature: unit -> Cancellable<'a>
- Type parameters: 'a
-
-

Represents a canceled computation

- - -
- - delay(f) - -
- Signature: f:(unit -> Cancellable<'T>) -> Cancellable<'T>
- Type parameters: 'T
-
-

Delay a cancellable computation

- - -
- - each f seq - -
- Signature: f:('a -> Cancellable<'b>) -> seq:seq<'a> -> Cancellable<'b list>
- Type parameters: 'a, 'b
-
-

Iterate a cancellable computation over a collection

- - -
- - fold f acc seq - -
- Signature: f:('a -> 'b -> Cancellable<'a>) -> acc:'a -> seq:seq<'b> -> Cancellable<'a>
- Type parameters: 'a, 'b
-
-

Fold a cancellable computation along a sequence of inputs

- - -
- - map f oper - -
- Signature: f:('?683091 -> '?683092) -> oper:Cancellable<'?683091> -> Cancellable<'?683092>
- Type parameters: '?683091, '?683092
-
-

Map the result of a cancellable computation

- - -
- - ret(x) - -
- Signature: x:'?683094 -> Cancellable<'?683094>
- Type parameters: '?683094
-
-

Return a simple value as the result of a cancellable computation

- - -
- - run ct arg2 - -
- Signature: ct:CancellationToken -> Cancellable<'a> -> ValueOrCancelled<'a>
- Type parameters: 'a
-
-

Run a cancellable computation using the given cancellation token

- - -
- - runWithoutCancellation(comp) - -
- Signature: comp:Cancellable<'a> -> 'a
- Type parameters: 'a
-
-

Run the computation in a mode where it may not be cancelled. The computation never results in a -ValueOrCancelled.Cancelled.

- - -
- - token() - -
- Signature: unit -> Cancellable<CancellationToken>
-
-
-

Bind the cancellation token associated with the computation

- - -
- - tryFinally e compensation - -
- Signature: e:Cancellable<'?683111> -> compensation:(unit -> unit) -> Cancellable<'?683111>
- Type parameters: '?683111
-
-

Implement try/finally for a cancellable computation

- - -
- - tryWith e handler - -
- Signature: e:Cancellable<'?683113> -> handler:(exn -> Cancellable<'?683113>) -> Cancellable<'?683113>
- Type parameters: '?683113
-
-

Implement try/with for a cancellable computation

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-compilationthreadtoken.html b/docs/reference/fsharp-compiler-abstractil-internal-library-compilationthreadtoken.html deleted file mode 100644 index 32ff5eb8df..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-compilationthreadtoken.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - CompilationThreadToken - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

CompilationThreadToken

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-

Represents a token that indicates execution on the compilation thread, i.e. -- we have full access to the (partially mutable) TAST and TcImports data structures -- compiler execution may result in type provider invocations when resolving types and members -- we can access various caches in the SourceCodeServices

-

Like other execution tokens this should be passed via argument passing and not captured/stored beyond -the lifetime of stack-based calls. This is not checked, it is a discipline within the compiler code.

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> CompilationThreadToken
-
-
- -

CompiledName: .ctor

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-dictionary.html b/docs/reference/fsharp-compiler-abstractil-internal-library-dictionary.html deleted file mode 100644 index 0c0f267547..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-dictionary.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - Dictionary - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Dictionary

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library -

-
-
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - newWithSize(size) - -
- Signature: size:int -> Dictionary<'a,'b>
- Type parameters: 'a, 'b
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-dictionaryextensions.html b/docs/reference/fsharp-compiler-abstractil-internal-library-dictionaryextensions.html deleted file mode 100644 index cc06accaed..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-dictionaryextensions.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - DictionaryExtensions - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DictionaryExtensions

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
- - Attributes:
-[<Extension>]
- -
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> DictionaryExtensions
-
-
- -

CompiledName: .ctor

-
-

Static members

- - - - - - - - - - - - - - -
Static memberDescription
- - DictionaryExtensions.BagAdd(...) - -
- Signature: (dic:Dictionary<'key,'value list> * key:'key * value:'value) -> unit
- Type parameters: 'key, 'value - Attributes:
-[<Extension>]
-
-
-
- -
- - DictionaryExtensions.BagExistsValueForKey(...) - -
- Signature: (dic:Dictionary<'key,'value list> * key:'key * f:('value -> bool)) -> bool
- Type parameters: 'key, 'value - Attributes:
-[<Extension>]
-
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-eventually-1.html b/docs/reference/fsharp-compiler-abstractil-internal-library-eventually-1.html deleted file mode 100644 index 61632235af..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-eventually-1.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - Eventually<'T> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Eventually<'T>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-

Computations that can cooperatively yield by returning a continuation

-
    -
  • -

    Any yield of a NotYetDone should typically be "abandonable" without adverse consequences. No resource release -will be called when the computation is abandoned.

    -
  • -
  • -

    Computations suspend via a NotYetDone may use local state (mutables), where these are -captured by the NotYetDone closure. Computations do not need to be restartable.

    -
  • -
  • -

    The key thing is that you can take an Eventually value and run it with -Eventually.repeatedlyProgressUntilDoneOrTimeShareOverOrCanceled

    -
  • -
  • Cancellation results in a suspended computation rather than complete abandonment
  • -
- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Done('T) - -
- Signature: 'T
-
-
- -
- - NotYetDone(...) - -
- Signature: CompilationThreadToken -> Eventually<'T>
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-eventuallybuilder.html b/docs/reference/fsharp-compiler-abstractil-internal-library-eventuallybuilder.html deleted file mode 100644 index 4729ca24bb..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-eventuallybuilder.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - EventuallyBuilder - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

EventuallyBuilder

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> EventuallyBuilder
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Bind(e, k) - -
- Signature: (e:Eventually<'a> * k:('a -> Eventually<'b>)) -> Eventually<'b>
- Type parameters: 'a, 'b
-
- -
- - x.Combine(e1, e2) - -
- Signature: (e1:Eventually<unit> * e2:Eventually<'a>) -> Eventually<'a>
- Type parameters: 'a
-
- -
- - x.Delay(f) - -
- Signature: (f:(unit -> Eventually<'a>)) -> Eventually<'a>
- Type parameters: 'a
-
- -
- - x.Return(v) - -
- Signature: v:'a -> Eventually<'a>
- Type parameters: 'a
-
- -
- - x.ReturnFrom(v) - -
- Signature: v:'a -> 'a
- Type parameters: 'a
-
- -
- - x.TryFinally(e, compensation) - -
- Signature: (e:Eventually<'?682752> * compensation:(unit -> unit)) -> Eventually<'?682752>
- Type parameters: '?682752
-
- -
- - x.TryWith(e, handler) - -
- Signature: (e:Eventually<'a> * handler:(Exception -> Eventually<'a>)) -> Eventually<'a>
- Type parameters: 'a
-
- -
- - x.Zero() - -
- Signature: unit -> Eventually<unit>
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-eventuallymodule.html b/docs/reference/fsharp-compiler-abstractil-internal-library-eventuallymodule.html deleted file mode 100644 index f19f6fb3c8..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-eventuallymodule.html +++ /dev/null @@ -1,272 +0,0 @@ - - - - - Eventually - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Eventually

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library - - Attributes:
-[<CompilationRepresentation(4)>]
- -
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - bind k e - -
- Signature: k:('?683140 -> Eventually<'?683141>) -> e:Eventually<'?683140> -> Eventually<'?683141>
- Type parameters: '?683140, '?683141
-
- -
- - box(e) - -
- Signature: e:Eventually<'c> -> Eventually<obj>
- Type parameters: 'c
-
- -
- - catch(e) - -
- Signature: e:Eventually<'?683146> -> Eventually<ResultOrException<'?683146>>
- Type parameters: '?683146
-
- -
- - delay(f) - -
- Signature: f:(unit -> Eventually<'T>) -> Eventually<'T>
- Type parameters: 'T
-
- -
- - fold f acc seq - -
- Signature: f:('a -> 'b -> Eventually<'a>) -> acc:'a -> seq:seq<'b> -> Eventually<'a>
- Type parameters: 'a, 'b
-
- -
- - force ctok e - -
- Signature: ctok:CompilationThreadToken -> e:Eventually<'a> -> 'a
- Type parameters: 'a
-
- -
- - forceAsync runner e - -
- Signature: runner:((CompilationThreadToken -> Eventually<'T>) -> Async<Eventually<'T>>) -> e:Eventually<'T> -> Async<'T option>
- Type parameters: 'T
-
-

Keep running the asynchronous computation bit by bit. The runner gets called each time the computation is restarted. -Can be cancelled as an Async in the normal way.

- - -
- - forceWhile ctok check e - -
- Signature: ctok:CompilationThreadToken -> check:(unit -> bool) -> e:Eventually<'?683131> -> '?683131 option
- Type parameters: '?683131
-
- -
- - repeatedlyProgressUntilDoneOrTimeShareOverOrCanceled(...) - -
- Signature: timeShareInMilliseconds:int64 -> ct:CancellationToken -> runner:(CompilationThreadToken -> ('b -> Eventually<'c>) -> Eventually<'c>) -> e:Eventually<'c> -> Eventually<'c>
- Type parameters: 'b, 'c
-
-

Keep running the computation bit by bit until a time limit is reached. -The runner gets called each time the computation is restarted

-

If cancellation happens, the operation is left half-complete, ready to resume.

- - -
- - token - -
- Signature: Eventually<CompilationThreadToken>
-
-
- -
- - tryFinally e compensation - -
- Signature: e:Eventually<'?683150> -> compensation:(unit -> unit) -> Eventually<'?683150>
- Type parameters: '?683150
-
- -
- - tryWith e handler - -
- Signature: e:Eventually<'?683152> -> handler:(Exception -> Eventually<'?683152>) -> Eventually<'?683152>
- Type parameters: '?683152
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-executiontoken.html b/docs/reference/fsharp-compiler-abstractil-internal-library-executiontoken.html deleted file mode 100644 index dd7da91904..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-executiontoken.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - ExecutionToken - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ExecutionToken

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-

Represents a permission active at this point in execution

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-inlinedelayinit-1.html b/docs/reference/fsharp-compiler-abstractil-internal-library-inlinedelayinit-1.html deleted file mode 100644 index 9c0a575114..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-inlinedelayinit-1.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - InlineDelayInit<'T> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

InlineDelayInit<'T>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
- - Attributes:
-[<Struct>]
- -
-

-
-

An efficient lazy for inline storage in a class type. Results in fewer thunks.

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - func - -
- Signature: Func<'T>
- Modifiers: mutable
-
-
- -
- - store - -
- Signature: 'T
- Modifiers: mutable
-
-
- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(f) - -
- Signature: (f:(unit -> 'T)) -> InlineDelayInit<'T>
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Value - -
- Signature: 'T
-
-
- -

CompiledName: get_Value

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-ipartialequalitycomparer-1.html b/docs/reference/fsharp-compiler-abstractil-internal-library-ipartialequalitycomparer-1.html deleted file mode 100644 index 82ed6ae700..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-ipartialequalitycomparer-1.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - IPartialEqualityComparer<'T> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

IPartialEqualityComparer<'T>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-

Interface that defines methods for comparing objects using partial equality relation

- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.InEqualityRelation(arg1) - -
- Signature: 'T -> bool
- Modifiers: abstract
-
-
-

Can the specified object be tested for equality?

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-ipartialequalitycomparer.html b/docs/reference/fsharp-compiler-abstractil-internal-library-ipartialequalitycomparer.html deleted file mode 100644 index 92ac77f017..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-ipartialequalitycomparer.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - IPartialEqualityComparer - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

IPartialEqualityComparer

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - -
Function or valueDescription
- - On f c - -
- Signature: f:('a -> 'b) -> c:IPartialEqualityComparer<'b> -> IPartialEqualityComparer<'a>
- Type parameters: 'a, 'b
-
- -
- - partialDistinctBy per seq - -
- Signature: per:IPartialEqualityComparer<'T> -> seq:'T list -> 'T list
- Type parameters: 'T
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-layeredmap-2.html b/docs/reference/fsharp-compiler-abstractil-internal-library-layeredmap-2.html deleted file mode 100644 index b911337434..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-layeredmap-2.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - LayeredMap<'Key, 'Value> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LayeredMap<'Key, 'Value>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Count - -
- Signature: int
-
-
- -

CompiledName: get_Count

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [key] - -
- Signature: key:'Key -> 'Value
-
-
- -

CompiledName: get_Item

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-layeredmultimap-2.html b/docs/reference/fsharp-compiler-abstractil-internal-library-layeredmultimap-2.html deleted file mode 100644 index 11ea3ec966..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-layeredmultimap-2.html +++ /dev/null @@ -1,246 +0,0 @@ - - - - - LayeredMultiMap<'Key, 'Value> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LayeredMultiMap<'Key, 'Value>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
- - Attributes:
-[<Sealed>]
- -
-

-
-

Immutable map collection, with explicit flattening to a backing dictionary

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(contents) - -
- Signature: (contents:LayeredMap<'Key,'Value list>) -> LayeredMultiMap<'Key,'Value>
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Add(k, v) - -
- Signature: (k:'Key * v:'Value) -> LayeredMultiMap<'Key,'Value>
-
-
- -
- - x.AddAndMarkAsCollapsible(kvs) - -
- Signature: (kvs:KeyValuePair<'Key,'Value> []) -> LayeredMultiMap<'Key,'Value>
-
-
- -
- - [k] - -
- Signature: k:'Key -> 'Value list
-
-
- -

CompiledName: get_Item

-
- - x.MarkAsCollapsible() - -
- Signature: unit -> LayeredMultiMap<'Key,'Value>
-
-
- -
- - x.TryFind(k) - -
- Signature: k:'Key -> 'Value list option
-
-
- -
- - x.TryGetValue(k) - -
- Signature: k:'Key -> bool * 'Value list
-
-
- -
- - x.Values - -
- Signature: 'Value list
-
-
- -

CompiledName: get_Values

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - LayeredMultiMap.Empty - -
- Signature: LayeredMultiMap<'Key,'Value>
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-lazy.html b/docs/reference/fsharp-compiler-abstractil-internal-library-lazy.html deleted file mode 100644 index fbb5716577..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-lazy.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - Lazy - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Lazy

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library -

-
-
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - force(x) - -
- Signature: x:Lazy<'T> -> 'T
- Type parameters: 'T
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-lazywithcontext-2.html b/docs/reference/fsharp-compiler-abstractil-internal-library-lazywithcontext-2.html deleted file mode 100644 index a0d0b081ae..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-lazywithcontext-2.html +++ /dev/null @@ -1,256 +0,0 @@ - - - - - LazyWithContext<'T, 'ctxt> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LazyWithContext<'T, 'ctxt>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
- - Attributes:
-[<DefaultAugmentation(false)>]
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Just like "Lazy" but EVERY forcer must provide an instance of "ctxt", e.g. to help track errors -on forcing back to at least one sensible user location

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - findOriginalException - -
- Signature: exn -> exn
-
-
-

A helper to ensure we rethrow the "original" exception

- - -
- - funcOrException - -
- Signature: obj
- Modifiers: mutable
-
-
-

This field holds either the function to run or a LazyWithContextFailure object recording the exception raised -from running the function. It is null if the thunk has been evaluated successfully.

- - -
- - value - -
- Signature: 'T
- Modifiers: mutable
-
-
-

This field holds the result of a successful computation. It's initial value is Unchecked.defaultof

- - -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Force(ctxt) - -
- Signature: ctxt:'ctxt -> 'T
-
-
- -
- - x.IsDelayed - -
- Signature: bool
-
-
- -

CompiledName: get_IsDelayed

-
- - x.IsForced - -
- Signature: bool
-
-
- -

CompiledName: get_IsForced

-
- - x.UnsynchronizedForce(ctxt) - -
- Signature: ctxt:'ctxt -> 'T
-
-
- -
-

Static members

- - - - - - - - - - - - - - -
Static memberDescription
- - LazyWithContext.Create(...) - -
- Signature: (f:('ctxt -> 'T) * findOriginalException:(exn -> exn)) -> LazyWithContext<'T,'ctxt>
-
-
- -
- - LazyWithContext.NotLazy(x) - -
- Signature: x:'T -> LazyWithContext<'T,'ctxt>
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-lazywithcontextfailure.html b/docs/reference/fsharp-compiler-abstractil-internal-library-lazywithcontextfailure.html deleted file mode 100644 index b50ab0e2e0..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-lazywithcontextfailure.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - LazyWithContextFailure - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LazyWithContextFailure

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(exn) - -
- Signature: exn:exn -> LazyWithContextFailure
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Exception - -
- Signature: exn
-
-
- -

CompiledName: get_Exception

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - LazyWithContextFailure.Undefined - -
- Signature: LazyWithContextFailure
-
-
- -

CompiledName: get_Undefined

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-list-frontandback.html b/docs/reference/fsharp-compiler-abstractil-internal-library-list-frontandback.html deleted file mode 100644 index 72c18b7a5f..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-list-frontandback.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - FrontAndBack - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FrontAndBack

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: List -

-
-
- - - -

Active patterns

- - - - - - - - - - -
Active patternDescription
- - ( |NonEmpty|Empty| )(l) - -
- Signature: l:'?682995 list -> Choice<('?682995 list * '?682995),unit>
- Type parameters: '?682995
-
- -

CompiledName: |NonEmpty|Empty|

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-list.html b/docs/reference/fsharp-compiler-abstractil-internal-library-list.html deleted file mode 100644 index c98c6946d5..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-list.html +++ /dev/null @@ -1,604 +0,0 @@ - - - - - List - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

List

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library -

-
-
- - -

Nested types and modules

-
- - - - - - - - - - -
ModuleDescription
- FrontAndBack - - -
- -
- -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - assoc x l - -
- Signature: x:'d -> l:('d * 'e) list -> 'e
- Type parameters: 'd, 'e
-
- -
- - checkq l1 l2 - -
- Signature: l1:'?682916 list -> l2:'?682916 list -> bool
- Type parameters: '?682916
-
- -
- - collect2 f xs ys - -
- Signature: f:('?682966 -> '?682967 -> '?682968 list) -> xs:'?682966 list -> ys:'?682967 list -> '?682968 list
- Type parameters: '?682966, '?682967, '?682968
-
- -
- - collectFold f s l - -
- Signature: f:('a -> 'b -> 'c list * 'a) -> s:'a -> l:'b list -> 'c list * 'a
- Type parameters: 'a, 'b, 'c
-
- -
- - collectSquared f xss - -
- Signature: f:('a2 -> 'a3 list) -> xss:'a2 list list -> 'a3 list
- Type parameters: 'a2, 'a3
-
- -
- - count pred xs - -
- Signature: pred:('b -> bool) -> xs:'b list -> int
- Type parameters: 'b
-
- -
- - drop n l - -
- Signature: n:int -> l:'a list -> 'a list
- Type parameters: 'a
-
- -
- - existsi f xs - -
- Signature: f:(int -> 'a2 -> bool) -> xs:'a2 list -> bool
- Type parameters: 'a2
-
- -
- - existsSquared f xss - -
- Signature: f:('a -> bool) -> xss:'a list list -> bool
- Type parameters: 'a
-
- -
- - existsTrue(xs) - -
- Signature: xs:bool list -> bool
-
-
- -
- - findi n f l - -
- Signature: n:int -> f:('?682908 -> bool) -> l:'?682908 list -> ('?682908 * int) option
- Type parameters: '?682908
-
- -
- - forallSquared f xss - -
- Signature: f:('?682984 -> bool) -> xss:'?682984 list list -> bool
- Type parameters: '?682984
-
- -
- - frontAndBack(l) - -
- Signature: l:'a list -> 'a list * 'a
- Type parameters: 'a
-
- -
- - headAndTail(l) - -
- Signature: l:'a list -> 'a * 'a list
- Type parameters: 'a
-
- -
- - indexNotFound() - -
- Signature: unit -> '?682945
- Type parameters: '?682945
-
- -
- - iter3 f l1 l2 l3 - -
- Signature: f:('?682936 -> '?682937 -> '?682938 -> unit) -> l1:'?682936 list -> l2:'?682937 list -> l3:'?682938 list -> unit
- Type parameters: '?682936, '?682937, '?682938
-
- -
- - iterSquared f xss - -
- Signature: f:('a -> unit) -> xss:'a list list -> unit
- Type parameters: 'a
-
- -
- - lengthsEqAndForall2 p l1 l2 - -
- Signature: p:('a -> 'b -> bool) -> l1:'a list -> l2:'b list -> bool
- Type parameters: 'a, 'b
-
- -
- - mapFoldSquared f z xss - -
- Signature: f:('a2 -> 'a3 -> 'a4 * 'a2) -> z:'a2 -> xss:'a3 list list -> 'a4 list list * 'a2
- Type parameters: 'a2, 'a3, 'a4
-
- -
- - mapHeadTail fhead ftail _arg1 - -
- Signature: fhead:('a -> 'b) -> ftail:('a -> 'b) -> _arg1:'a list -> 'b list
- Type parameters: 'a, 'b
-
- -
- - mapiFoldSquared f z xss - -
- Signature: f:('a2 -> int * int * 'a3 -> 'a4 * 'a2) -> z:'a2 -> xss:'a3 list list -> 'a4 list list * 'a2
- Type parameters: 'a2, 'a3, 'a4
-
- -
- - mapiSquared f xss - -
- Signature: f:(int -> int -> 'a -> 'b) -> xss:'a list list -> 'b list list
- Type parameters: 'a, 'b
-
- -
- - mapNth n f xs - -
- Signature: n:int -> f:('a -> 'a) -> xs:'a list -> 'a list
- Type parameters: 'a
-
- -
- - mapq f inp - -
- Signature: f:('T -> 'T) -> inp:'T list -> 'T list
- Type parameters: 'T
-
- -
- - mapSquared f xss - -
- Signature: f:('a -> 'b) -> xss:'a list list -> 'b list list
- Type parameters: 'a, 'b
-
- -
- - memAssoc x l - -
- Signature: x:'d -> l:('d * 'e) list -> bool
- Type parameters: 'd, 'e
-
- -
- - memq x l - -
- Signature: x:'c -> l:'c list -> bool
- Type parameters: 'c
-
- -
- - order(eltOrder) - -
- Signature: eltOrder:IComparer<'T> -> IComparer<'T list>
- Type parameters: 'T
-
- -
- - range n m - -
- Signature: n:int -> m:int -> int list
-
-
- -
- - sortWithOrder c elements - -
- Signature: c:IComparer<'T> -> elements:'T list -> 'T list
- Type parameters: 'T
-
- -
- - splitAfter n l - -
- Signature: n:int -> l:'a list -> 'a list * 'a list
- Type parameters: 'a
-
- -
- - splitChoose select l - -
- Signature: select:('b -> Choice<'c,'d>) -> l:'b list -> 'c list * 'd list
- Type parameters: 'b, 'c, 'd
-
- -
- - takeUntil p l - -
- Signature: p:('a -> bool) -> l:'a list -> 'a list * 'a list
- Type parameters: 'a
-
- -
- - toArraySquared(xss) - -
- Signature: xss:'a2 list list -> 'a2 [] []
- Type parameters: 'a2
-
- -
- - tryRemove f inp - -
- Signature: f:('b -> bool) -> inp:'b list -> ('b * 'b list) option
- Type parameters: 'b
-
- -
- - unzip4(l) - -
- Signature: l:('g * 'h * 'i * 'j) list -> 'g list * 'h list * 'i list * 'j list
- Type parameters: 'g, 'h, 'i, 'j
-
- -
- - zip4 l1 l2 l3 l4 - -
- Signature: l1:'a2 list -> l2:'a3 list -> l3:'a4 list -> l4:'a5 list -> ('a2 * 'a3 * 'a4 * 'a5) list
- Type parameters: 'a2, 'a3, 'a4, 'a5
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-lock-1.html b/docs/reference/fsharp-compiler-abstractil-internal-library-lock-1.html deleted file mode 100644 index 96c1aa0a92..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-lock-1.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - Lock<'LockTokenType> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Lock<'LockTokenType>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-

Encapsulates a lock associated with a particular token-type representing the acquisition of that lock.

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> Lock<'LockTokenType>
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.AcquireLock(f) - -
- Signature: (f:('LockTokenType -> 'a)) -> 'a
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-locktoken.html b/docs/reference/fsharp-compiler-abstractil-internal-library-locktoken.html deleted file mode 100644 index b30cc3eebe..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-locktoken.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - LockToken - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LockToken

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-

A base type for various types of tokens that must be passed when a lock is taken. -Each different static lock should declare a new subtype of this type.

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-map.html b/docs/reference/fsharp-compiler-abstractil-internal-library-map.html deleted file mode 100644 index 331c8b2ee7..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-map.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - Map - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Map

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library -

-
-
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - tryFindMulti k map - -
- Signature: k:'a -> map:Map<'a,'b list> -> 'b list
- Type parameters: 'a, 'b
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-memoizationtable-2.html b/docs/reference/fsharp-compiler-abstractil-internal-library-memoizationtable-2.html deleted file mode 100644 index 3307711560..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-memoizationtable-2.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - MemoizationTable<'T, 'U> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

MemoizationTable<'T, 'U>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-

memoize tables (all entries cached, never collected)

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(compute, keyComparer, canMemoize) - -
- Signature: (compute:('T -> 'U) * keyComparer:IEqualityComparer<'T> * canMemoize:('T -> bool) option) -> MemoizationTable<'T,'U>
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Apply(x) - -
- Signature: x:'T -> 'U
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-multimap-2.html b/docs/reference/fsharp-compiler-abstractil-internal-library-multimap-2.html deleted file mode 100644 index fb8061c9d7..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-multimap-2.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - MultiMap<'T, 'U> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

MultiMap<'T, 'U>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Count - -
- Signature: int
-
-
- -

CompiledName: get_Count

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [key] - -
- Signature: key:'T -> 'U list
-
-
- -

CompiledName: get_Item

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-multimapmodule.html b/docs/reference/fsharp-compiler-abstractil-internal-library-multimapmodule.html deleted file mode 100644 index e57cf85c81..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-multimapmodule.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - MultiMap - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

MultiMap

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library - - Attributes:
-[<CompilationRepresentation(4)>]
- -
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - add v x m - -
- Signature: v:'c -> x:'d -> m:MultiMap<'c,'d> -> Map<'c,'d list>
- Type parameters: 'c, 'd
-
- -
- - empty - -
- Signature: MultiMap<'c,'d>
- Type parameters: 'c, 'd
-
- -
- - existsInRange f m - -
- Signature: f:('?683334 -> bool) -> m:MultiMap<'?683335,'?683334> -> bool
- Type parameters: '?683334, '?683335
-
- -
- - find v m - -
- Signature: v:'c -> m:MultiMap<'c,'d> -> 'd list
- Type parameters: 'c, 'd
-
- -
- - initBy f xs - -
- Signature: f:('a -> 'b) -> xs:seq<'a> -> MultiMap<'b,'a>
- Type parameters: 'a, 'b
-
- -
- - range(m) - -
- Signature: m:MultiMap<'?683343,'?683344> -> '?683344 list
- Type parameters: '?683343, '?683344
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-namemap-1.html b/docs/reference/fsharp-compiler-abstractil-internal-library-namemap-1.html deleted file mode 100644 index e18e118673..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-namemap-1.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - NameMap<'T> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NameMap<'T>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Count - -
- Signature: int
-
-
- -

CompiledName: get_Count

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [key] - -
- Signature: key:string -> 'T
-
-
- -

CompiledName: get_Item

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-namemapmodule.html b/docs/reference/fsharp-compiler-abstractil-internal-library-namemapmodule.html deleted file mode 100644 index 998d263a78..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-namemapmodule.html +++ /dev/null @@ -1,479 +0,0 @@ - - - - - NameMap - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NameMap

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library - - Attributes:
-[<CompilationRepresentation(4)>]
- -
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - add v x m - -
- Signature: v:string -> x:'T -> m:NameMap<'T> -> Map<string,'T>
- Type parameters: 'T
-
- -
- - empty - -
- Signature: Map<'c,'d>
- Type parameters: 'c, 'd
-
- -
- - exists f m - -
- Signature: f:('a -> 'b -> bool) -> m:Map<'a,'b> -> bool
- Type parameters: 'a, 'b
-
- -
- - existsInRange p m - -
- Signature: p:('?683304 -> bool) -> m:Map<'?683305,'?683304> -> bool
- Type parameters: '?683304, '?683305
-
- -
- - filterRange f l - -
- Signature: f:('T -> bool) -> l:NameMap<'T> -> Map<string,'T>
- Type parameters: 'T
-
- -
- - find v m - -
- Signature: v:string -> m:NameMap<'T> -> 'T
- Type parameters: 'T
-
- -
- - foldBack f m z - -
- Signature: f:(string -> 'T -> '?683240 -> '?683240) -> m:NameMap<'T> -> z:'?683240 -> '?683240
- Type parameters: 'T, '?683240
-
- -
- - foldBackRange f l acc - -
- Signature: f:('T -> 'a -> 'a) -> l:NameMap<'T> -> acc:'a -> 'a
- Type parameters: 'T, 'a
-
- -
- - forall f m - -
- Signature: f:('?683242 -> '?683243 -> bool) -> m:Map<'?683242,'?683243> -> bool
- Type parameters: '?683242, '?683243
-
- -
- - isEmpty(m) - -
- Signature: m:NameMap<'T> -> bool
- Type parameters: 'T
-
- -
- - iter f l - -
- Signature: f:('T -> unit) -> l:NameMap<'T> -> unit
- Type parameters: 'T
-
- -
- - layer m1 m2 - -
- Signature: m1:NameMap<'T> -> m2:Map<string,'T> -> Map<string,'T>
- Type parameters: 'T
-
- -
- - layerAdditive addf m1 m2 - -
- Signature: addf:('a list -> 'b -> 'a list) -> m1:Map<'c,'b> -> m2:Map<'c,'a list> -> Map<'c,'a list>
- Type parameters: 'a, 'b, 'c
-
-

Not a very useful function - only called in one place - should be changed

- - -
- - map f l - -
- Signature: f:('T -> 'a) -> l:NameMap<'T> -> Map<string,'a>
- Type parameters: 'T, 'a
-
- -
- - mapFilter f l - -
- Signature: f:('T -> '?683285 option) -> l:NameMap<'T> -> Map<string,'?683285>
- Type parameters: 'T, '?683285
-
- -
- - mapFold f s l - -
- Signature: f:('?683275 -> string -> 'T -> '?683277 * '?683275) -> s:'?683275 -> l:NameMap<'T> -> Map<string,'?683277> * '?683275
- Type parameters: '?683275, 'T, '?683277
-
- -
- - mem v m - -
- Signature: v:string -> m:NameMap<'T> -> bool
- Type parameters: 'T
-
- -
- - ofKeyedList f l - -
- Signature: f:('c -> 'd) -> l:'c list -> Map<'d,'c>
- Type parameters: 'c, 'd
-
- -
- - ofList(l) - -
- Signature: l:(string * 'T) list -> NameMap<'T>
- Type parameters: 'T
-
- -
- - ofSeq(l) - -
- Signature: l:seq<string * 'T> -> NameMap<'T>
- Type parameters: 'T
-
- -
- - partition f l - -
- Signature: f:('T -> bool) -> l:NameMap<'T> -> Map<string,'T> * Map<string,'T>
- Type parameters: 'T
-
- -
- - range(m) - -
- Signature: m:Map<'a,'b> -> 'b list
- Type parameters: 'a, 'b
-
- -
- - suball2 errf p m1 m2 - -
- Signature: errf:('b -> 'c -> bool) -> p:('d -> 'c -> bool) -> m1:Map<'b,'d> -> m2:Map<'b,'c> -> bool
- Type parameters: 'b, 'c, 'd
-
- -
- - subfold2 errf f m1 m2 acc - -
- Signature: errf:('?683266 -> '?683267 -> '?683268) -> f:('?683266 -> '?683269 -> '?683267 -> '?683268 -> '?683268) -> m1:Map<'?683266,'?683269> -> m2:Map<'?683266,'?683267> -> acc:'?683268 -> '?683268
- Type parameters: '?683266, '?683267, '?683268, '?683269
-
-

For every entry in m2 find an entry in m1 and fold

- - -
- - toList(l) - -
- Signature: l:NameMap<'T> -> (string * 'T) list
- Type parameters: 'T
-
- -
- - tryFind v m - -
- Signature: v:string -> m:NameMap<'T> -> 'T option
- Type parameters: 'T
-
- -
- - tryFindInRange p m - -
- Signature: p:('?683307 -> bool) -> m:Map<'?683308,'?683307> -> '?683307 option
- Type parameters: '?683307, '?683308
-
- -
- - union unionf ms - -
- Signature: unionf:(seq<'a> -> 'b) -> ms:seq<NameMap<'a>> -> Map<string,'b>
- Type parameters: 'a, 'b
-
-

Union entries by identical key, using the provided function to union sets of values

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-namemultimap-1.html b/docs/reference/fsharp-compiler-abstractil-internal-library-namemultimap-1.html deleted file mode 100644 index c03eaf01ed..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-namemultimap-1.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - NameMultiMap<'T> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NameMultiMap<'T>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Count - -
- Signature: int
-
-
- -

CompiledName: get_Count

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [key] - -
- Signature: key:string -> 'T list
-
-
- -

CompiledName: get_Item

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-namemultimapmodule.html b/docs/reference/fsharp-compiler-abstractil-internal-library-namemultimapmodule.html deleted file mode 100644 index 0c6c4ab0b5..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-namemultimapmodule.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - NameMultiMap - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NameMultiMap

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library - - Attributes:
-[<CompilationRepresentation(4)>]
- -
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - add v x m - -
- Signature: v:string -> x:'T -> m:NameMultiMap<'T> -> Map<string,'T list>
- Type parameters: 'T
-
- -
- - chooseRange f m - -
- Signature: f:('T -> 'b option) -> m:NameMultiMap<'T> -> 'b list
- Type parameters: 'T, 'b
-
- -
- - empty - -
- Signature: NameMultiMap<'T>
- Type parameters: 'T
-
- -
- - existsInRange f m - -
- Signature: f:('T -> bool) -> m:NameMultiMap<'T> -> bool
- Type parameters: 'T
-
- -
- - find v m - -
- Signature: v:string -> m:NameMultiMap<'T> -> 'T list
- Type parameters: 'T
-
- -
- - initBy f xs - -
- Signature: f:('T -> string) -> xs:seq<'T> -> NameMultiMap<'T>
- Type parameters: 'T
-
- -
- - map f m - -
- Signature: f:('T -> '?683325) -> m:NameMultiMap<'T> -> Map<string,'?683325 list>
- Type parameters: 'T, '?683325
-
- -
- - ofList(xs) - -
- Signature: xs:(string * 'T) list -> NameMultiMap<'T>
- Type parameters: 'T
-
- -
- - range(m) - -
- Signature: m:NameMultiMap<'T> -> 'T list
- Type parameters: 'T
-
- -
- - rangeReversingEachBucket(m) - -
- Signature: m:NameMultiMap<'T> -> 'T list
- Type parameters: 'T
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-option.html b/docs/reference/fsharp-compiler-abstractil-internal-library-option.html deleted file mode 100644 index 387ca380f9..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-option.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - Option - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Option

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - -
Function or valueDescription
- - attempt(f) - -
- Signature: f:(unit -> 'T) -> 'T option
- Type parameters: 'T
-
- -
- - mapFold f s opt - -
- Signature: f:('a -> 'b -> 'c * 'a) -> s:'a -> opt:'b option -> 'c option * 'a
- Type parameters: 'a, 'b, 'c
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-order.html b/docs/reference/fsharp-compiler-abstractil-internal-library-order.html deleted file mode 100644 index abd33fea26..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-order.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Order - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Order

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - orderBy(p) - -
- Signature: p:('T -> 'U) -> IComparer<'T>
- Type parameters: 'T, 'U
-
- -
- - orderOn p pxOrder - -
- Signature: p:('T -> 'U) -> pxOrder:IComparer<'U> -> IComparer<'T>
- Type parameters: 'T, 'U
-
- -
- - toFunction pxOrder x y - -
- Signature: pxOrder:IComparer<'U> -> x:'U -> y:'U -> int
- Type parameters: 'U
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-resizearray.html b/docs/reference/fsharp-compiler-abstractil-internal-library-resizearray.html deleted file mode 100644 index 219585de4f..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-resizearray.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - ResizeArray - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ResizeArray

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - -
Function or valueDescription
- - chunkBySize chunkSize f items - -
- Signature: chunkSize:int -> f:('t -> '?683000) -> items:ResizeArray<'t> -> '?683000 [] []
- Type parameters: 't, '?683000
-
-

Split a ResizeArray into an array of smaller chunks. -This requires items/chunkSize Array copies of length chunkSize if items/chunkSize % 0 = 0, -otherwise items/chunkSize + 1 Array copies.

- - -
- - mapToSmallArrayChunks f inp - -
- Signature: f:('t -> 'a) -> inp:ResizeArray<'t> -> 'a [] []
- Type parameters: 't, 'a
-
-

Split a large ResizeArray into a series of array chunks that are each under the Large Object Heap limit. -This is done to help prevent a stop-the-world collection of the single large array, instead allowing for a greater -probability of smaller collections. Stop-the-world is still possible, just less likely.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-resultorexception-1.html b/docs/reference/fsharp-compiler-abstractil-internal-library-resultorexception-1.html deleted file mode 100644 index 8fe83c3f30..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-resultorexception-1.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - ResultOrException<'TResult> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ResultOrException<'TResult>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Exception(Exception) - -
- Signature: Exception
-
-
- -
- - Result('TResult) - -
- Signature: 'TResult
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-resultorexceptionmodule.html b/docs/reference/fsharp-compiler-abstractil-internal-library-resultorexceptionmodule.html deleted file mode 100644 index 62fe328e16..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-resultorexceptionmodule.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - - ResultOrException - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ResultOrException

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library - - Attributes:
-[<CompilationRepresentation(4)>]
- -
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - ( |?> ) res f - -
- Signature: res:ResultOrException<'a> -> f:('a -> 'b) -> ResultOrException<'b>
- Type parameters: 'a, 'b
-
- -

CompiledName: op_BarQmarkGreater

-
- - ForceRaise(res) - -
- Signature: res:ResultOrException<'a> -> 'a
- Type parameters: 'a
-
- -
- - otherwise f x - -
- Signature: f:(unit -> ResultOrException<'a2>) -> x:ResultOrException<'a2> -> ResultOrException<'a2>
- Type parameters: 'a2
-
- -
- - raze(b) - -
- Signature: b:exn -> ResultOrException<'b>
- Type parameters: 'b
-
- -
- - success(a) - -
- Signature: a:'b -> ResultOrException<'b>
- Type parameters: 'b
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-shim-defaultfilesystem.html b/docs/reference/fsharp-compiler-abstractil-internal-library-shim-defaultfilesystem.html deleted file mode 100644 index 45958ff1d2..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-shim-defaultfilesystem.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - DefaultFileSystem - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DefaultFileSystem

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Shim
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> DefaultFileSystem
-
-
- -

CompiledName: .ctor

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-shim-ifilesystem.html b/docs/reference/fsharp-compiler-abstractil-internal-library-shim-ifilesystem.html deleted file mode 100644 index d13d289988..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-shim-ifilesystem.html +++ /dev/null @@ -1,328 +0,0 @@ - - - - - IFileSystem - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

IFileSystem

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Shim
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AssemblyLoad(assemblyName) - -
- Signature: assemblyName:AssemblyName -> Assembly
- Modifiers: abstract
-
-
-

Used to load a dependency for F# Interactive and in an unused corner-case of type provider loading

- - -
- - x.AssemblyLoadFrom(fileName) - -
- Signature: fileName:string -> Assembly
- Modifiers: abstract
-
-
-

Used to load type providers and located assemblies in F# Interactive

- - -
- - x.FileDelete(fileName) - -
- Signature: fileName:string -> unit
- Modifiers: abstract
-
-
-

A shim over File.Delete

- - -
- - x.FileStreamCreateShim(fileName) - -
- Signature: fileName:string -> Stream
- Modifiers: abstract
-
-
-

A shim over FileStream with FileMode.Create, FileAccess.Write, FileShare.Read

- - -
- - x.FileStreamReadShim(fileName) - -
- Signature: fileName:string -> Stream
- Modifiers: abstract
-
-
-

A shim over FileStream with FileMode.Open, FileAccess.Read, FileShare.ReadWrite

- - -
- - x.FileStreamWriteExistingShim(fileName) - -
- Signature: fileName:string -> Stream
- Modifiers: abstract
-
-
-

A shim over FileStream with FileMode.Open, FileAccess.Write, FileShare.Read

- - -
- - x.GetFullPathShim(fileName) - -
- Signature: fileName:string -> string
- Modifiers: abstract
-
-
-

Take in a filename with an absolute path, and return the same filename -but canonicalized with respect to extra path separators (e.g. C:\\foo.txt) -and '..' portions

- - -
- - x.GetLastWriteTimeShim(fileName) - -
- Signature: fileName:string -> DateTime
- Modifiers: abstract
-
-
-

Utc time of the last modification

- - -
- - x.GetTempPathShim() - -
- Signature: unit -> string
- Modifiers: abstract
-
-
-

A shim over Path.GetTempPath

- - -
- - x.IsInvalidPathShim(filename) - -
- Signature: filename:string -> bool
- Modifiers: abstract
-
-
-

A shim over Path.IsInvalidPath

- - -
- - x.IsPathRootedShim(path) - -
- Signature: path:string -> bool
- Modifiers: abstract
-
-
-

A shim over Path.IsPathRooted

- - -
- - x.IsStableFileHeuristic(fileName) - -
- Signature: fileName:string -> bool
- Modifiers: abstract
-
-
-

Used to determine if a file will not be subject to deletion during the lifetime of a typical client process.

- - -
- - x.ReadAllBytesShim(fileName) - -
- Signature: fileName:string -> byte []
- Modifiers: abstract
-
-
-

A shim over File.ReadAllBytes

- - -
- - x.SafeExists(fileName) - -
- Signature: fileName:string -> bool
- Modifiers: abstract
-
-
-

A shim over File.Exists

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-shim.html b/docs/reference/fsharp-compiler-abstractil-internal-library-shim.html deleted file mode 100644 index 783f597db5..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-shim.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - - Shim - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Shim

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library - - Attributes:
-[<AutoOpen>]
- -
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - -
TypeDescription
- DefaultFileSystem - - -
- IFileSystem - - -
- -
- -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - FileSystem - -
- Signature: IFileSystem
-
-
- -
-

Type extensions

- - - - - - - - - - - - - - -
Type extensionDescription
- - File.OpenReaderAndRetry(...) - -
- Signature: (filename:string * codepage:int option * retryLocked:bool) -> StreamReader
-
-
- -

CompiledName: File.OpenReaderAndRetry.Static

-
- - File.ReadBinaryChunk(...) - -
- Signature: (fileName:string * start:int * len:int) -> byte []
-
-
- -

CompiledName: File.ReadBinaryChunk.Static

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-string.html b/docs/reference/fsharp-compiler-abstractil-internal-library-string.html deleted file mode 100644 index 42327f9ed5..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-string.html +++ /dev/null @@ -1,379 +0,0 @@ - - - - - String - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

String

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - capitalize(s) - -
- Signature: s:string -> string
-
-
- -
- - contains s c - -
- Signature: s:string -> c:char -> bool
-
-
- -
- - dropPrefix s t - -
- Signature: s:string -> t:string -> string
-
-
- -
- - dropSuffix s t - -
- Signature: s:string -> t:string -> string
-
-
- -
- - extractTrailingIndex(str) - -
- Signature: str:string -> string * int option
-
-
- -
- - get str i - -
- Signature: str:string -> i:int -> char
-
-
- -
- - getLines(str) - -
- Signature: str:string -> string []
-
-
- -
- - isUpper(s) - -
- Signature: s:string -> bool
-
-
- -
- - lowercase(s) - -
- Signature: s:string -> string
-
-
- -
- - lowerCaseFirstChar(str) - -
- Signature: str:string -> string
-
-
- -
- - make n c - -
- Signature: n:int -> c:char -> string
-
-
- -
- - order - -
- Signature: IComparer<string>
-
-
- -
- - split options separator value - -
- Signature: options:StringSplitOptions -> separator:string [] -> value:string -> string []
-
-
-

Splits a string into substrings based on the strings in the array separators

- - -
- - sub s start len - -
- Signature: s:string -> start:int -> len:int -> string
-
-
- -
- - toCharArray(str) - -
- Signature: str:string -> char []
-
-
- -
- - trim(value) - -
- Signature: value:string -> string
-
-
-

Remove all trailing and leading whitespace from the string -return null if the string is null

- - -
- - uncapitalize(s) - -
- Signature: s:string -> string
-
-
- -
- - uppercase(s) - -
- Signature: s:string -> string
-
-
- -
-

Active patterns

- - - - - - - - - - - - - - -
Active patternDescription
- - ( |Contains|_| ) pattern value - -
- Signature: pattern:string -> value:string -> unit option
-
-
- -

CompiledName: |Contains|_|

-
- - ( |StartsWith|_| ) pattern value - -
- Signature: pattern:string -> value:string -> unit option
-
-
- -

CompiledName: |StartsWith|_|

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-tables.html b/docs/reference/fsharp-compiler-abstractil-internal-library-tables.html deleted file mode 100644 index 72ab7f4392..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-tables.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - Tables - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Tables

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library -

-
-

Intern tables to save space.

- -
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - memoize(f) - -
- Signature: f:('a -> 'b) -> 'a -> 'b
- Type parameters: 'a, 'b
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-undefinedexception.html b/docs/reference/fsharp-compiler-abstractil-internal-library-undefinedexception.html deleted file mode 100644 index 2fff727212..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-undefinedexception.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - UndefinedException - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

UndefinedException

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-uniquestampgenerator-1.html b/docs/reference/fsharp-compiler-abstractil-internal-library-uniquestampgenerator-1.html deleted file mode 100644 index 587478d82a..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-uniquestampgenerator-1.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - UniqueStampGenerator<'T> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

UniqueStampGenerator<'T>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
-

-
-

Generates unique stamps

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> UniqueStampGenerator<'T>
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Encode(str) - -
- Signature: str:'T -> int
-
-
- -
- - x.Table - -
- Signature: KeyCollection<'T,int>
-
-
- -

CompiledName: get_Table

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-valueoptioninternal.html b/docs/reference/fsharp-compiler-abstractil-internal-library-valueoptioninternal.html deleted file mode 100644 index 2c2d5d6834..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-valueoptioninternal.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - ValueOptionInternal - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ValueOptionInternal

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library -

-
-

chunk the provided input into arrays that are smaller than the LOH limit -in order to prevent long-term storage of those values

- -
- - - -

Functions and values

- - - - - - - - - - - - - - -
Function or valueDescription
- - bind f x - -
- Signature: f:('c -> 'd voption) -> x:'c voption -> 'd voption
- Type parameters: 'c, 'd
-
- -
- - ofOption(x) - -
- Signature: x:'c option -> 'c voption
- Type parameters: 'c
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library-valueorcancelled-1.html b/docs/reference/fsharp-compiler-abstractil-internal-library-valueorcancelled-1.html deleted file mode 100644 index e743547b5e..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library-valueorcancelled-1.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - ValueOrCancelled<'TResult> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ValueOrCancelled<'TResult>

-

- - Namespace: FSharp.Compiler.AbstractIL.Internal
- Parent Module: Library
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Cancelled(OperationCanceledException) - -
- Signature: OperationCanceledException
-
-
- -
- - Value('TResult) - -
- Signature: 'TResult
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-library.html b/docs/reference/fsharp-compiler-abstractil-internal-library.html deleted file mode 100644 index 1859a7feb4..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-library.html +++ /dev/null @@ -1,934 +0,0 @@ - - - - - Library - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Library

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- AnyCallerThreadToken - -

Represents a token that indicates execution on a any of several potential user threads calling the F# compiler services.

- - -
- Cancellable<'TResult> - -

Represents a cancellable computation with explicit representation of a cancelled result.

-

A cancellable computation is passed may be cancelled via a CancellationToken, which is propagated implicitly.
-If cancellation occurs, it is propagated as data rather than by raising an OperationCanceledException.

- - -
- CancellableBuilder - - -
- CompilationThreadToken - -

Represents a token that indicates execution on the compilation thread, i.e. -- we have full access to the (partially mutable) TAST and TcImports data structures -- compiler execution may result in type provider invocations when resolving types and members -- we can access various caches in the SourceCodeServices

-

Like other execution tokens this should be passed via argument passing and not captured/stored beyond -the lifetime of stack-based calls. This is not checked, it is a discipline within the compiler code.

- - -
- DictionaryExtensions - - -
- Eventually<'T> - -

Computations that can cooperatively yield by returning a continuation

-
    -
  • -

    Any yield of a NotYetDone should typically be "abandonable" without adverse consequences. No resource release -will be called when the computation is abandoned.

    -
  • -
  • -

    Computations suspend via a NotYetDone may use local state (mutables), where these are -captured by the NotYetDone closure. Computations do not need to be restartable.

    -
  • -
  • -

    The key thing is that you can take an Eventually value and run it with -Eventually.repeatedlyProgressUntilDoneOrTimeShareOverOrCanceled

    -
  • -
  • Cancellation results in a suspended computation rather than complete abandonment
  • -
- - -
- EventuallyBuilder - - -
- ExecutionToken - -

Represents a permission active at this point in execution

- - -
- IPartialEqualityComparer<'T> - -

Interface that defines methods for comparing objects using partial equality relation

- - -
- InlineDelayInit<'T> - -

An efficient lazy for inline storage in a class type. Results in fewer thunks.

- - -
- LayeredMap<'Key, 'Value> - - -
- LayeredMultiMap<'Key, 'Value> - -

Immutable map collection, with explicit flattening to a backing dictionary

- - -
- LazyWithContext<'T, 'ctxt> - -

Just like "Lazy" but EVERY forcer must provide an instance of "ctxt", e.g. to help track errors -on forcing back to at least one sensible user location

- - -
- LazyWithContextFailure - - -
- Lock<'LockTokenType> - -

Encapsulates a lock associated with a particular token-type representing the acquisition of that lock.

- - -
- LockToken - -

A base type for various types of tokens that must be passed when a lock is taken. -Each different static lock should declare a new subtype of this type.

- - -
- MemoizationTable<'T, 'U> - -

memoize tables (all entries cached, never collected)

- - -
- MultiMap<'T, 'U> - - -
- NameMap<'T> - - -
- NameMultiMap<'T> - - -
- ResultOrException<'TResult> - - -
- UndefinedException - - -
- UniqueStampGenerator<'T> - -

Generates unique stamps

- - -
- ValueOrCancelled<'TResult> - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ModuleDescription
- Array - - -
- Cancellable - - -
- Dictionary - - -
- Eventually - - -
- IPartialEqualityComparer - - -
- Lazy - - -
- List - - -
- Map - - -
- MultiMap - - -
- NameMap - - -
- NameMultiMap - - -
- Option - - -
- Order - - -
- ResizeArray - - -
- ResultOrException - - -
- Shim - - -
- String - - -
- Tables - -

Intern tables to save space.

- - -
- ValueOptionInternal - -

chunk the provided input into arrays that are smaller than the LOH limit -in order to prevent long-term storage of those values

- - -
- -
- -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - ( === ) x y - -
- Signature: x:'a -> y:'a -> bool
- Type parameters: 'a
-
- -

CompiledName: op_EqualsEqualsEquals

-
- - ( >>>& ) x n - -
- Signature: x:int32 -> n:int32 -> int32
-
-
- -

CompiledName: op_GreaterGreaterGreaterAmp

-
- - AssumeAnyCallerThreadWithoutEvidence() - -
- Signature: unit -> AnyCallerThreadToken
-
-
- -
- - AssumeCompilationThreadWithoutEvidence() - -
- Signature: unit -> CompilationThreadToken
-
-
-

Represents a place in the compiler codebase where we assume we are executing on a compilation thread

- - -
- - AssumeLockWithoutEvidence() - -
- Signature: unit -> 'LockTokenType
- Type parameters: 'LockTokenType
-
- -
- - cancellable - -
- Signature: CancellableBuilder
-
-
- -
- - DoesNotRequireCompilerThreadTokenAndCouldPossiblyBeMadeConcurrent(...) - -
- Signature: _ctok:CompilationThreadToken -> unit
-
-
-

Represents a place in the compiler codebase where we are passed a CompilationThreadToken unnecessarily. -This represents code that may potentially not need to be executed on the compilation thread.

- - -
- - eventually - -
- Signature: EventuallyBuilder
-
-
- -
- - foldOn p f z x - -
- Signature: p:('c -> 'd) -> f:('e -> 'd -> 'f) -> z:'e -> x:'c -> 'f
- Type parameters: 'c, 'd, 'e, 'f
-
- -
- - getHole(r) - -
- Signature: r:'a option ref -> 'a
- Type parameters: 'a
-
-

Get an initialization hole

- - -
- - isNil(l) - -
- Signature: l:'a list -> bool
- Type parameters: 'a
-
- -
- - isNilOrSingleton(l) - -
- Signature: l:'a list -> bool
- Type parameters: 'a
-
-

Returns true if the list has less than 2 elements. Otherwise false.

- - -
- - isNonNull(x) - -
- Signature: x:'a -> bool
- Type parameters: 'a
-
- -
- - isSingleton(l) - -
- Signature: l:'a list -> bool
- Type parameters: 'a
-
-

Returns true if the list contains exactly 1 element. Otherwise false.

- - -
- - LOH_SIZE_THRESHOLD_BYTES - -
- Signature: int
-
-
-

Per the docs the threshold for the Large Object Heap is 85000 bytes: https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/large-object-heap#how-an-object-ends-up-on-the-large-object-heap-and-how-gc-handles-them -We set the limit to be 80k to account for larger pointer sizes for when F# is running 64-bit.

- - -
- - nonNull msg x - -
- Signature: msg:string -> x:'?682645 -> '?682645
- Type parameters: '?682645
-
- -
- - notFound() - -
- Signature: unit -> 'd
- Type parameters: 'd
-
- -
- - notlazy(v) - -
- Signature: v:'a -> Lazy<'a>
- Type parameters: 'a
-
- -
- - reportTime - -
- Signature: bool -> string -> unit
-
-
- -
- - RequireCompilationThread(_ctok) - -
- Signature: _ctok:CompilationThreadToken -> unit
-
-
-

Represents a place where we are stating that execution on the compilation thread is required. The -reason why will be documented in a comment in the code at the callsite.

- - -
-

Type extensions

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Type extensionDescription
- - x.AddAndMarkAsCollapsible(kvs) - -
- Signature: (kvs:KeyValuePair<'Key,'Value> []) -> Map<'Key,'Value>
-
-
- -

CompiledName: Map`2.AddAndMarkAsCollapsible

-
- - Map.Empty - -
- Signature: Map<'Key,'Value>
-
-
- -

CompiledName: Map`2.get_Empty.Static

-
- - Map.Empty - -
- Signature: Map<'Key,'Value>
-
-
- -

CompiledName: Map`2.get_Empty.Static

-
- - x.EndsWithOrdinal(value) - -
- Signature: value:string -> bool
-
-
- -

CompiledName: String.EndsWithOrdinal

-
- - x.LinearTryModifyThenLaterFlatten(...) - -
- Signature: (key:'Key * f:('Value option -> 'Value)) -> Map<'Key,'Value>
-
-
- -

CompiledName: Map`2.LinearTryModifyThenLaterFlatten

-
- - x.MarkAsCollapsible() - -
- Signature: unit -> Map<'Key,'Value>
-
-
- -

CompiledName: Map`2.MarkAsCollapsible

-
- - x.StartsWithOrdinal(value) - -
- Signature: value:string -> bool
-
-
- -

CompiledName: String.StartsWithOrdinal

-
- - x.Values - -
- Signature: 'Value list
-
-
- -

CompiledName: Map`2.get_Values

-
- - x.Values - -
- Signature: 'Value list
-
-
- -

CompiledName: Map`2.get_Values

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-abstractil-internal-utils.html b/docs/reference/fsharp-compiler-abstractil-internal-utils.html deleted file mode 100644 index 6356513f12..0000000000 --- a/docs/reference/fsharp-compiler-abstractil-internal-utils.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - Utils - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Utils

-

- Namespace: FSharp.Compiler.AbstractIL.Internal
-

-
-
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - runningOnMono - -
- Signature: bool
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-compilerglobalstate-nicenamegenerator.html b/docs/reference/fsharp-compiler-compilerglobalstate-nicenamegenerator.html deleted file mode 100644 index 51b8b58ce5..0000000000 --- a/docs/reference/fsharp-compiler-compilerglobalstate-nicenamegenerator.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - NiceNameGenerator - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NiceNameGenerator

-

- - Namespace: FSharp.Compiler
- Parent Module: CompilerGlobalState
-

-
-

Generates compiler-generated names. Each name generated also includes the StartLine number of the range passed in -at the point of first generation.

-

This type may be accessed concurrently, though in practice it is only used from the compilation thread. -It is made concurrency-safe since a global instance of the type is allocated in tast.fs, and it is good -policy to make all globally-allocated objects concurrency safe in case future versions of the compiler -are used to host multiple concurrent instances of compilation.

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> NiceNameGenerator
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.FreshCompilerGeneratedName(name, m) - -
- Signature: (name:string * m:range) -> string
-
-
- -
- - x.Reset() - -
- Signature: unit -> unit
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-compilerglobalstate-stablenicenamegenerator.html b/docs/reference/fsharp-compiler-compilerglobalstate-stablenicenamegenerator.html deleted file mode 100644 index 74d596f663..0000000000 --- a/docs/reference/fsharp-compiler-compilerglobalstate-stablenicenamegenerator.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - StableNiceNameGenerator - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

StableNiceNameGenerator

-

- - Namespace: FSharp.Compiler
- Parent Module: CompilerGlobalState
-

-
-

Generates compiler-generated names marked up with a source code location, but if given the same unique value then -return precisely the same name. Each name generated also includes the StartLine number of the range passed in -at the point of first generation.

-

This type may be accessed concurrently, though in practice it is only used from the compilation thread. -It is made concurrency-safe since a global instance of the type is allocated in tast.fs.

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> StableNiceNameGenerator
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.GetUniqueCompilerGeneratedName(...) - -
- Signature: (name:string * m:range * uniq:int64) -> string
-
-
- -
- - x.Reset() - -
- Signature: unit -> unit
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-compilerglobalstate-unique.html b/docs/reference/fsharp-compiler-compilerglobalstate-unique.html deleted file mode 100644 index 1a9837fc8d..0000000000 --- a/docs/reference/fsharp-compiler-compilerglobalstate-unique.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - Unique - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Unique

-

- - Namespace: FSharp.Compiler
- Parent Module: CompilerGlobalState
-

-
-

Unique name generator for stamps attached to lambdas and object expressions

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-compilerglobalstate.html b/docs/reference/fsharp-compiler-compilerglobalstate.html deleted file mode 100644 index 4dd63487ed..0000000000 --- a/docs/reference/fsharp-compiler-compilerglobalstate.html +++ /dev/null @@ -1,183 +0,0 @@ - - - - - CompilerGlobalState - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

CompilerGlobalState

-

- Namespace: FSharp.Compiler
-

-
-

Defines the global environment for all type checking.

- -
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - -
TypeDescription
- NiceNameGenerator - -

Generates compiler-generated names. Each name generated also includes the StartLine number of the range passed in -at the point of first generation.

-

This type may be accessed concurrently, though in practice it is only used from the compilation thread. -It is made concurrency-safe since a global instance of the type is allocated in tast.fs, and it is good -policy to make all globally-allocated objects concurrency safe in case future versions of the compiler -are used to host multiple concurrent instances of compilation.

- - -
- StableNiceNameGenerator - -

Generates compiler-generated names marked up with a source code location, but if given the same unique value then -return precisely the same name. Each name generated also includes the StartLine number of the range passed in -at the point of first generation.

-

This type may be accessed concurrently, though in practice it is only used from the compilation thread. -It is made concurrency-safe since a global instance of the type is allocated in tast.fs.

- - -
- Unique - -

Unique name generator for stamps attached to lambdas and object expressions

- - -
- -
- -

Functions and values

- - - - - - - - - - - - - - -
Function or valueDescription
- - newStamp - -
- Signature: unit -> int64
-
-
-

Unique name generator for stamps attached to to valspecs, tyconspecs etc.

- - -
- - newUnique - -
- Signature: unit -> int64
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-buildphase.html b/docs/reference/fsharp-compiler-errorlogger-buildphase.html deleted file mode 100644 index 13a5f935f7..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-buildphase.html +++ /dev/null @@ -1,252 +0,0 @@ - - - - - BuildPhase - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

BuildPhase

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Closed enumeration of build phases.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - CodeGen - -
- Signature:
-
-
- -
- - Compile - -
- Signature:
-
-
- -
- - DefaultPhase - -
- Signature:
-
-
- -
- - IlGen - -
- Signature:
-
-
- -
- - IlxGen - -
- Signature:
-
-
- -
- - Interactive - -
- Signature:
-
-
- -
- - Optimize - -
- Signature:
-
-
- -
- - Output - -
- Signature:
-
-
- -
- - Parameter - -
- Signature:
-
-
- -
- - Parse - -
- Signature:
-
-
- -
- - TypeCheck - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-buildphasesubcategory.html b/docs/reference/fsharp-compiler-errorlogger-buildphasesubcategory.html deleted file mode 100644 index 43f864c71c..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-buildphasesubcategory.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - BuildPhaseSubcategory - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

BuildPhaseSubcategory

-

- Namespace: FSharp.Compiler
- Parent Module: ErrorLogger -

-
-

Literal build phase subcategory strings.

- -
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - CodeGen - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - Compile - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - DefaultPhase - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - IlGen - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - IlxGen - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - Interactive - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - Internal - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - Optimize - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - Output - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - Parameter - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - Parse - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - TypeCheck - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-capturingerrorlogger.html b/docs/reference/fsharp-compiler-errorlogger-capturingerrorlogger.html deleted file mode 100644 index 6468f16303..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-capturingerrorlogger.html +++ /dev/null @@ -1,151 +0,0 @@ - - - - - CapturingErrorLogger - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

CapturingErrorLogger

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(nm) - -
- Signature: nm:string -> CapturingErrorLogger
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.CommitDelayedDiagnostics(errorLogger) - -
- Signature: errorLogger:ErrorLogger -> unit
-
-
- -
- - x.Diagnostics - -
- Signature: (PhasedDiagnostic * bool) list
-
-
- -

CompiledName: get_Diagnostics

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-deprecated.html b/docs/reference/fsharp-compiler-errorlogger-deprecated.html deleted file mode 100644 index 80bd3b2914..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-deprecated.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - Deprecated - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Deprecated

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: string
-
-
- -
- - Data1 - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-error.html b/docs/reference/fsharp-compiler-errorlogger-error.html deleted file mode 100644 index ede3620ec5..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-error.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - Error - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Error

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: int * string
-
-
- -
- - Data1 - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-errorlogger.html b/docs/reference/fsharp-compiler-errorlogger-errorlogger.html deleted file mode 100644 index ee1539759c..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-errorlogger.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - ErrorLogger - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ErrorLogger

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
- - Attributes:
-[<AbstractClass>]
-[<DebuggerDisplay("{DebugDisplay()}")>]
- -
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(nameForDebugging) - -
- Signature: nameForDebugging:string -> ErrorLogger
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.DebugDisplay() - -
- Signature: unit -> string
-
-
- -
- - x.DiagnosticSink(phasedError, isError) - -
- Signature: (phasedError:PhasedDiagnostic * isError:bool) -> unit
- Modifiers: abstract
-
-
- -
- - x.ErrorCount - -
- Signature: int
- Modifiers: abstract
-
-
- -

CompiledName: get_ErrorCount

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-errorloggerextensions.html b/docs/reference/fsharp-compiler-errorlogger-errorloggerextensions.html deleted file mode 100644 index da79568fb6..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-errorloggerextensions.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - ErrorLoggerExtensions - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ErrorLoggerExtensions

-

- Namespace: FSharp.Compiler
- Parent Module: ErrorLogger - - Attributes:
-[<AutoOpen>]
- -
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - PreserveStackTrace(exn) - -
- Signature: exn:'a -> unit
- Type parameters: 'a
-
-

Instruct the exception not to reset itself when thrown again.

- - -
- - ReraiseIfWatsonable(exn) - -
- Signature: exn:exn -> unit
-
-
-

Reraise an exception if it is one we want to report to Watson.

- - -
- - tryAndDetectDev15 - -
- Signature: bool
-
-
- -
-

Type extensions

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Type extensionDescription
- - x.Error(exn) - -
- Signature: exn:exn -> 'a
- Type parameters: 'a
-
- -

CompiledName: ErrorLogger.Error

-
- - x.ErrorR(exn) - -
- Signature: exn:exn -> unit
-
-
- -

CompiledName: ErrorLogger.ErrorR

-
- - x.ErrorRecovery exn m - -
- Signature: exn:exn -> m:range -> unit
-
-
- -

CompiledName: ErrorLogger.ErrorRecovery

-
- - x.ErrorRecoveryNoRange(exn) - -
- Signature: exn:exn -> unit
-
-
- -

CompiledName: ErrorLogger.ErrorRecoveryNoRange

-
- - x.SimulateError(ph) - -
- Signature: ph:PhasedDiagnostic -> '?684835
- Type parameters: '?684835
-
- -

CompiledName: ErrorLogger.SimulateError

-
- - x.StopProcessingRecovery exn m - -
- Signature: exn:exn -> m:range -> unit
-
-
- -

CompiledName: ErrorLogger.StopProcessingRecovery

-
- - x.Warning(exn) - -
- Signature: exn:exn -> unit
-
-
- -

CompiledName: ErrorLogger.Warning

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-errorstyle.html b/docs/reference/fsharp-compiler-errorlogger-errorstyle.html deleted file mode 100644 index 18c6e08046..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-errorstyle.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - ErrorStyle - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ErrorStyle

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents the style being used to format errors

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - DefaultErrors - -
- Signature:
-
-
- -
- - EmacsErrors - -
- Signature:
-
-
- -
- - GccErrors - -
- Signature:
-
-
- -
- - TestErrors - -
- Signature:
-
-
- -
- - VSErrors - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-errorwithsuggestions.html b/docs/reference/fsharp-compiler-errorlogger-errorwithsuggestions.html deleted file mode 100644 index 2dca6e84df..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-errorwithsuggestions.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - ErrorWithSuggestions - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ErrorWithSuggestions

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: int * string
-
-
- -
- - Data1 - -
- Signature: range
-
-
- -
- - Data2 - -
- Signature: string
-
-
- -
- - Data3 - -
- Signature: Suggestions
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-exiter.html b/docs/reference/fsharp-compiler-errorlogger-exiter.html deleted file mode 100644 index fd8e7f2869..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-exiter.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - Exiter - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Exiter

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Exit(arg1) - -
- Signature: int -> 'T
- Modifiers: abstract
- Type parameters: 'T
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-experimental.html b/docs/reference/fsharp-compiler-errorlogger-experimental.html deleted file mode 100644 index 398c748d43..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-experimental.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - Experimental - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Experimental

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: string
-
-
- -
- - Data1 - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-fsharperrorseverityoptions.html b/docs/reference/fsharp-compiler-errorlogger-fsharperrorseverityoptions.html deleted file mode 100644 index 1ea2035580..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-fsharperrorseverityoptions.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - FSharpErrorSeverityOptions - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpErrorSeverityOptions

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - GlobalWarnAsError - -
- Signature: bool
-
-
- -
- - WarnAsError - -
- Signature: int list
-
-
- -
- - WarnAsWarn - -
- Signature: int list
-
-
- -
- - WarnLevel - -
- Signature: int
-
-
- -
- - WarnOff - -
- Signature: int list
-
-
- -
- - WarnOn - -
- Signature: int list
-
-
- -
-

Static members

- - - - - - - - - - -
Static memberDescription
- - FSharpErrorSeverityOptions.Default - -
- Signature: FSharpErrorSeverityOptions
-
-
- -

CompiledName: get_Default

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-imperativeoperationresult.html b/docs/reference/fsharp-compiler-errorlogger-imperativeoperationresult.html deleted file mode 100644 index fc92c804db..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-imperativeoperationresult.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - ImperativeOperationResult - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ImperativeOperationResult

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-internalerror.html b/docs/reference/fsharp-compiler-errorlogger-internalerror.html deleted file mode 100644 index 004687197d..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-internalerror.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - InternalError - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

InternalError

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Data1 - -
- Signature: range
-
-
- -
- - msg - -
- Signature: string
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-libraryuseonly.html b/docs/reference/fsharp-compiler-errorlogger-libraryuseonly.html deleted file mode 100644 index 2f4cb88033..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-libraryuseonly.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - LibraryUseOnly - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LibraryUseOnly

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-numberederror.html b/docs/reference/fsharp-compiler-errorlogger-numberederror.html deleted file mode 100644 index 939c43e40d..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-numberederror.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - NumberedError - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NumberedError

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: int * string
-
-
- -
- - Data1 - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-operationresult-1.html b/docs/reference/fsharp-compiler-errorlogger-operationresult-1.html deleted file mode 100644 index 8e6b0fbdf8..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-operationresult-1.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - OperationResult<'T> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

OperationResult<'T>

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - ErrorResult(exn list,exn) - -
- Signature: exn list * exn
-
-
- -
- - OkResult(exn list,'T) - -
- Signature: exn list * 'T
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-operationresult.html b/docs/reference/fsharp-compiler-errorlogger-operationresult.html deleted file mode 100644 index cc359f3a5c..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-operationresult.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - OperationResult - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

OperationResult

-

- Namespace: FSharp.Compiler
- Parent Module: ErrorLogger - - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - OperationResult.ignore(res) - -
- Signature: res:OperationResult<'a> -> OperationResult<unit>
- Type parameters: 'a
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-phaseddiagnostic.html b/docs/reference/fsharp-compiler-errorlogger-phaseddiagnostic.html deleted file mode 100644 index b7c1330a50..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-phaseddiagnostic.html +++ /dev/null @@ -1,229 +0,0 @@ - - - - - PhasedDiagnostic - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PhasedDiagnostic

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
- - Attributes:
-[<DebuggerDisplay("{DebugDisplay()}")>]
- -
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Exception - -
- Signature: exn
-
-
- -
- - Phase - -
- Signature: BuildPhase
-
-
- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.DebugDisplay() - -
- Signature: unit -> string
-
-
- -
- - x.IsPhaseInCompile() - -
- Signature: unit -> bool
-
-
-

the language service knows about.

- - -
- - x.Subcategory() - -
- Signature: unit -> string
-
-
-

This is the textual subcategory to display in error and warning messages (shows only under --vserrors):

- - - -
1: 
-
file1.fs(72): subcategory warning FS0072: This is a warning message
-
- - -
-

Static members

- - - - - - - - - - - - - - -
Static memberDescription
- - PhasedDiagnostic.Create(exn, phase) - -
- Signature: (exn:exn * phase:BuildPhase) -> PhasedDiagnostic
-
-
-

Construct a phased error

- - -
- - PhasedDiagnostic.IsSubcategoryOfCompile(...) - -
- Signature: subcategory:string -> bool
-
-
-

Return true if the textual phase given is from the compile part of the build process. -This set needs to be equal to the set of subcategories that the language service can produce.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-possibleunverifiablecode.html b/docs/reference/fsharp-compiler-errorlogger-possibleunverifiablecode.html deleted file mode 100644 index 577c689995..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-possibleunverifiablecode.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - PossibleUnverifiableCode - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PossibleUnverifiableCode

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-reportederror.html b/docs/reference/fsharp-compiler-errorlogger-reportederror.html deleted file mode 100644 index 7231c80460..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-reportederror.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - ReportedError - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ReportedError

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-

Thrown when immediate, local error recovery is not possible. This indicates -we've reported an error but need to make a non-local transfer of control. -Error recovery may catch this and continue (see 'errorRecovery')

-

The exception that caused the report is carried as data because in some -situations (LazyWithContext) we may need to re-report the original error -when a lazy thunk is re-evaluated.

- -
-

Record Fields

- - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: exn option
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-stopprocessingexn.html b/docs/reference/fsharp-compiler-errorlogger-stopprocessingexn.html deleted file mode 100644 index 28621001a7..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-stopprocessingexn.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - StopProcessingExn - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

StopProcessingExn

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-

Thrown when we stop processing the F# Interactive entry or #load.

- -
-

Record Fields

- - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: exn option
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-suggestions.html b/docs/reference/fsharp-compiler-errorlogger-suggestions.html deleted file mode 100644 index 2c14a31bb8..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-suggestions.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - Suggestions - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Suggestions

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-trackerrorsbuilder.html b/docs/reference/fsharp-compiler-errorlogger-trackerrorsbuilder.html deleted file mode 100644 index 81a2a7a38a..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-trackerrorsbuilder.html +++ /dev/null @@ -1,241 +0,0 @@ - - - - - TrackErrorsBuilder - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

TrackErrorsBuilder

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> TrackErrorsBuilder
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Bind(res, k) - -
- Signature: (res:OperationResult<'a> * k:('a -> OperationResult<'b>)) -> OperationResult<'b>
- Type parameters: 'a, 'b
-
- -
- - x.Combine(expr1, expr2) - -
- Signature: (expr1:OperationResult<'h> * expr2:('h -> OperationResult<'i>)) -> OperationResult<'i>
- Type parameters: 'h, 'i
-
- -
- - x.Delay(fn) - -
- Signature: (fn:(unit -> 'a)) -> unit -> 'a
- Type parameters: 'a
-
- -
- - x.For(seq, k) - -
- Signature: (seq:'a list * k:('a -> OperationResult<unit>)) -> OperationResult<unit>
- Type parameters: 'a
-
- -
- - x.Return(res) - -
- Signature: res:'h -> OperationResult<'h>
- Type parameters: 'h
-
- -
- - x.ReturnFrom(res) - -
- Signature: res:'a -> 'a
- Type parameters: 'a
-
- -
- - x.Run(fn) - -
- Signature: (fn:(unit -> 'a)) -> 'a
- Type parameters: 'a
-
- -
- - x.While(gd, k) - -
- Signature: (gd:(unit -> bool) * k:(unit -> OperationResult<unit>)) -> OperationResult<unit>
-
-
- -
- - x.Zero() - -
- Signature: unit -> OperationResult<unit>
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-unresolvedpathreference.html b/docs/reference/fsharp-compiler-errorlogger-unresolvedpathreference.html deleted file mode 100644 index 5f8da21930..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-unresolvedpathreference.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - UnresolvedPathReference - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

UnresolvedPathReference

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: string
-
-
- -
- - Data1 - -
- Signature: string
-
-
- -
- - Data2 - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-unresolvedpathreferencenorange.html b/docs/reference/fsharp-compiler-errorlogger-unresolvedpathreferencenorange.html deleted file mode 100644 index a0571cf249..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-unresolvedpathreferencenorange.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - UnresolvedPathReferenceNoRange - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

UnresolvedPathReferenceNoRange

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: string
-
-
- -
- - Data1 - -
- Signature: string
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-unresolvedreferenceerror.html b/docs/reference/fsharp-compiler-errorlogger-unresolvedreferenceerror.html deleted file mode 100644 index 89719568e0..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-unresolvedreferenceerror.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - UnresolvedReferenceError - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

UnresolvedReferenceError

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: string
-
-
- -
- - Data1 - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-unresolvedreferencenorange.html b/docs/reference/fsharp-compiler-errorlogger-unresolvedreferencenorange.html deleted file mode 100644 index 10956c4c22..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-unresolvedreferencenorange.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - UnresolvedReferenceNoRange - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

UnresolvedReferenceNoRange

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: string
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-usercompilermessage.html b/docs/reference/fsharp-compiler-errorlogger-usercompilermessage.html deleted file mode 100644 index 032ef9711e..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-usercompilermessage.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - UserCompilerMessage - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

UserCompilerMessage

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: string
-
-
- -
- - Data1 - -
- Signature: int
-
-
- -
- - Data2 - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger-wrappederror.html b/docs/reference/fsharp-compiler-errorlogger-wrappederror.html deleted file mode 100644 index 6fab4c279a..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger-wrappederror.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - WrappedError - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

WrappedError

-

- - Namespace: FSharp.Compiler
- Parent Module: ErrorLogger
-

-
-

Thrown when we want to add some range information to a .NET exception

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: exn
-
-
- -
- - Data1 - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-errorlogger.html b/docs/reference/fsharp-compiler-errorlogger.html deleted file mode 100644 index 287f901e52..0000000000 --- a/docs/reference/fsharp-compiler-errorlogger.html +++ /dev/null @@ -1,1144 +0,0 @@ - - - - - ErrorLogger - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ErrorLogger

-

- Namespace: FSharp.Compiler
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- BuildPhase - -

Closed enumeration of build phases.

- - -
- CapturingErrorLogger - - -
- Deprecated - - -
- Error - - -
- ErrorLogger - - -
- ErrorStyle - -

Represents the style being used to format errors

- - -
- ErrorWithSuggestions - - -
- Exiter - - -
- Experimental - - -
- FSharpErrorSeverityOptions - - -
- ImperativeOperationResult - - -
- InternalError - - -
- LibraryUseOnly - - -
- NumberedError - - -
- OperationResult<'T> - - -
- PhasedDiagnostic - - -
- PossibleUnverifiableCode - - -
- ReportedError - -

Thrown when immediate, local error recovery is not possible. This indicates -we've reported an error but need to make a non-local transfer of control. -Error recovery may catch this and continue (see 'errorRecovery')

-

The exception that caused the report is carried as data because in some -situations (LazyWithContext) we may need to re-report the original error -when a lazy thunk is re-evaluated.

- - -
- StopProcessingExn - -

Thrown when we stop processing the F# Interactive entry or #load.

- - -
- Suggestions - - -
- TrackErrorsBuilder - - -
- UnresolvedPathReference - - -
- UnresolvedPathReferenceNoRange - - -
- UnresolvedReferenceError - - -
- UnresolvedReferenceNoRange - - -
- UserCompilerMessage - - -
- WrappedError - -

Thrown when we want to add some range information to a .NET exception

- - -
- - - - - - - - - - - - - - - - - - -
ModuleDescription
- BuildPhaseSubcategory - -

Literal build phase subcategory strings.

- - -
- ErrorLoggerExtensions - - -
- OperationResult - - -
- -
- -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - ( ++ ) res f - -
- Signature: res:OperationResult<'a> -> f:('a -> OperationResult<'b>) -> OperationResult<'b>
- Type parameters: 'a, 'b
-
-

The bind in the monad. Stop on first error. Accumulate warnings and continue.

- - -

CompiledName: op_PlusPlus

-
- - AssertFalseErrorLogger - -
- Signature: ErrorLogger
-
-
- -
- - AtLeastOneD f l - -
- Signature: f:('h -> OperationResult<bool>) -> l:'h list -> OperationResult<bool>
- Type parameters: 'h
-
- -
- - AttachRange m exn - -
- Signature: m:range -> exn:exn -> exn
-
-
- -
- - CheckNoErrorsAndGetWarnings(res) - -
- Signature: res:OperationResult<'c> -> exn list option
- Type parameters: 'c
-
- -
- - CommitOperationResult(res) - -
- Signature: res:OperationResult<'a> -> 'a
- Type parameters: 'a
-
- -
- - CompleteD - -
- Signature: OperationResult<unit>
-
-
- -
- - conditionallySuppressErrorReporting(...) - -
- Signature: cond:bool -> f:(unit -> 'a2) -> 'a2
- Type parameters: 'a2
-
- -
- - deprecatedOperator(m) - -
- Signature: m:range -> unit
-
-
- -
- - deprecatedWithError s m - -
- Signature: s:string -> m:range -> unit
-
-
- -
- - diagnosticSink(phasedError, isError) - -
- Signature: (phasedError:PhasedDiagnostic * isError:bool) -> unit
-
-
- -
- - DiscardErrorsLogger - -
- Signature: ErrorLogger
-
-
- -
- - error(exn) - -
- Signature: exn:exn -> 'a
- Type parameters: 'a
-
-

Raises a special exception and returns 'T - can be caught later at an errorRecovery point.

- - -
- - ErrorD(err) - -
- Signature: err:exn -> OperationResult<'a>
- Type parameters: 'a
-
- -
- - errorR(exn) - -
- Signature: exn:exn -> unit
-
-
-

Raises an exception with error recovery and returns unit.

- - -
- - errorRecovery exn m - -
- Signature: exn:exn -> m:range -> unit
-
-
- -
- - errorRecoveryNoRange(exn) - -
- Signature: exn:exn -> unit
-
-
- -
- - errorSink(pe) - -
- Signature: pe:PhasedDiagnostic -> unit
-
-
- -
- - findOriginalException(err) - -
- Signature: err:exn -> exn
-
-
- -
- - Iterate2D f xs ys - -
- Signature: f:('h -> 'i -> OperationResult<unit>) -> xs:'h list -> ys:'i list -> OperationResult<unit>
- Type parameters: 'h, 'i
-
-

Stop on first error. Accumulate warnings and continue.

- - -
- - IterateD f xs - -
- Signature: f:('h -> OperationResult<unit>) -> xs:'h list -> OperationResult<unit>
- Type parameters: 'h
-
-

Stop on first error. Accumulate warnings and continue.

- - -
- - IterateIdxD f xs - -
- Signature: f:(int -> 'h -> OperationResult<unit>) -> xs:'h list -> OperationResult<unit>
- Type parameters: 'h
-
-

Stop on first error. Report index

- - -
- - libraryOnlyError(m) - -
- Signature: m:range -> unit
-
-
- -
- - libraryOnlyWarning(m) - -
- Signature: m:range -> unit
-
-
- -
- - MapD f xs - -
- Signature: f:('?684736 -> OperationResult<'?684737>) -> xs:'?684736 list -> OperationResult<'?684737 list>
- Type parameters: '?684736, '?684737
-
- -
- - mlCompatWarning s m - -
- Signature: s:String -> m:range -> unit
-
-
- -
- - NewlineifyErrorString(message) - -
- Signature: message:string -> string
-
-
- -
- - NormalizeErrorString(text) - -
- Signature: text:string -> string
-
-
-

fixes given string by replacing all control chars with spaces. -NOTE: newlines are recognized and replaced with stringThatIsAProxyForANewlineInFlatErrors (ASCII 29, the 'group separator'), -which is decoded by the IDE with 'NewlineifyErrorString' back into newlines, so that multi-line errors can be displayed in QuickInfo

- - -
- - NoSuggestions - -
- Signature: Suggestions
-
-
- -
- - OptionD f xs - -
- Signature: f:('?684759 -> OperationResult<unit>) -> xs:'?684759 option -> OperationResult<unit>
- Type parameters: '?684759
-
-

Stop on first error. Accumulate warnings and continue.

- - -
- - protectAssemblyExploration dflt f - -
- Signature: dflt:'a -> f:(unit -> 'a) -> 'a
- Type parameters: 'a
-
- -
- - protectAssemblyExplorationF dflt f - -
- Signature: dflt:(string * string -> 'b) -> f:(unit -> 'b) -> 'b
- Type parameters: 'b
-
- -
- - protectAssemblyExplorationNoReraise(...) - -
- Signature: dflt1:'a -> dflt2:'a -> f:(unit -> 'a) -> 'a
- Type parameters: 'a
-
- -
- - PushErrorLoggerPhaseUntilUnwind(...) - -
- Signature: errorLoggerTransformer:(ErrorLogger -> 'a) -> IDisposable
- Type parameters: 'a
-
-

NOTE: The change will be undone when the returned "unwind" object disposes

- - -
- - PushThreadBuildPhaseUntilUnwind(phase) - -
- Signature: phase:BuildPhase -> IDisposable
-
-
-

NOTE: The change will be undone when the returned "unwind" object disposes

- - -
- - QuitProcessExiter - -
- Signature: Exiter
-
-
- -
- - RaiseOperationResult(res) - -
- Signature: res:OperationResult<unit> -> unit
-
-
- -
- - RepeatWhileD nDeep body - -
- Signature: nDeep:int -> body:(int -> OperationResult<bool>) -> OperationResult<unit>
-
-
- -
- - report(f) - -
- Signature: f:(unit -> '?684705) -> '?684705
- Type parameters: '?684705
-
- -
- - reportLibraryOnlyFeatures - -
- Signature: bool
-
-
- -
- - ReportWarnings(warns) - -
- Signature: warns:'b list -> unit
- Type parameters: 'b
-
- -
- - ResultD(x) - -
- Signature: x:'h -> OperationResult<'h>
- Type parameters: 'h
-
- -
- - SetThreadBuildPhaseNoUnwind(phase) - -
- Signature: phase:BuildPhase -> unit
-
-
- -
- - SetThreadErrorLoggerNoUnwind(...) - -
- Signature: errorLogger:ErrorLogger -> unit
-
-
- -
- - simulateError(p) - -
- Signature: p:PhasedDiagnostic -> 'a
- Type parameters: 'a
-
-

Simulates an error. For test purposes only.

- - -
- - StopProcessing - -
- Signature: exn
- Type parameters: 'T
-
- -
- - stopProcessingRecovery exn m - -
- Signature: exn:exn -> m:range -> unit
-
-
- -
- - stringThatIsAProxyForANewlineInFlatErrors(...) - -
- Signature: String
-
-
- -
- - suppressErrorReporting(f) - -
- Signature: f:(unit -> 'a2) -> 'a2
- Type parameters: 'a2
-
- -
- - trackErrors - -
- Signature: TrackErrorsBuilder
-
-
- -
- - TryD f g - -
- Signature: f:(unit -> OperationResult<'a>) -> g:(exn -> OperationResult<'a>) -> OperationResult<'a>
- Type parameters: 'a
-
-

Keep the warnings, propagate the error to the exception continuation.

- - -
- - WarnD(err) - -
- Signature: err:exn -> OperationResult<unit>
-
-
- -
- - warning(exn) - -
- Signature: exn:exn -> unit
-
-
-

Raises a warning with error recovery and returns unit.

- - -
- - warnSink(pe) - -
- Signature: pe:PhasedDiagnostic -> unit
-
-
- -
- - WhileD gd body - -
- Signature: gd:(unit -> bool) -> body:(unit -> OperationResult<unit>) -> OperationResult<unit>
-
-
- -
-

Active patterns

- - - - - - - - - - -
Active patternDescription
- - ( |StopProcessing|_| )(exn) - -
- Signature: exn:exn -> unit option
-
-
- -

CompiledName: |StopProcessing|_|

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-interactive-shell-compilerinputstream.html b/docs/reference/fsharp-compiler-interactive-shell-compilerinputstream.html deleted file mode 100644 index 5d012f8081..0000000000 --- a/docs/reference/fsharp-compiler-interactive-shell-compilerinputstream.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - CompilerInputStream - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

CompilerInputStream

-

- - Namespace: FSharp.Compiler.Interactive
- Parent Module: Shell
- - Attributes:
-[<AllowNullLiteral>]
- -
-

-
-

Defines a read-only input stream used to feed content to the hosted F# Interactive dynamic compiler.

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> CompilerInputStream
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Add(str) - -
- Signature: str:string -> unit
-
-
-

Feeds content into the stream.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-interactive-shell-compileroutputstream.html b/docs/reference/fsharp-compiler-interactive-shell-compileroutputstream.html deleted file mode 100644 index a32624783a..0000000000 --- a/docs/reference/fsharp-compiler-interactive-shell-compileroutputstream.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - CompilerOutputStream - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

CompilerOutputStream

-

- - Namespace: FSharp.Compiler.Interactive
- Parent Module: Shell
- - Attributes:
-[<AllowNullLiteral>]
- -
-

-
-

Defines a write-only stream used to capture output of the hosted F# Interactive dynamic compiler.

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> CompilerOutputStream
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Read() - -
- Signature: unit -> string
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-interactive-shell-evaluationeventargs.html b/docs/reference/fsharp-compiler-interactive-shell-evaluationeventargs.html deleted file mode 100644 index 4c0ad07b00..0000000000 --- a/docs/reference/fsharp-compiler-interactive-shell-evaluationeventargs.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - EvaluationEventArgs - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

EvaluationEventArgs

-

- - Namespace: FSharp.Compiler.Interactive
- Parent Module: Shell
- - Attributes:
-[<Class>]
- -
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.FsiValue - -
- Signature: FsiValue option
-
-
-

The value of the symbol defined, if any

- - -

CompiledName: get_FsiValue

-
- - x.ImplementationDeclaration - -
- Signature: FSharpImplementationFileDeclaration
-
-
-

The details of the expression defined

- - -

CompiledName: get_ImplementationDeclaration

-
- - x.Name - -
- Signature: string
-
-
-

The display name of the symbol defined

- - -

CompiledName: get_Name

-
- - x.Symbol - -
- Signature: FSharpSymbol
-
-
-

The symbol defined

- - -

CompiledName: get_Symbol

-
- - x.SymbolUse - -
- Signature: FSharpSymbolUse
-
-
-

The FSharpSymbolUse for the symbol defined

- - -

CompiledName: get_SymbolUse

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-interactive-shell-fsicompilationexception.html b/docs/reference/fsharp-compiler-interactive-shell-fsicompilationexception.html deleted file mode 100644 index 857f8c069d..0000000000 --- a/docs/reference/fsharp-compiler-interactive-shell-fsicompilationexception.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - FsiCompilationException - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FsiCompilationException

-

- - Namespace: FSharp.Compiler.Interactive
- Parent Module: Shell
- - Attributes:
-[<Class>]
- -
-

-
-

Thrown when there was an error compiling the given code in FSI.

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(arg1, arg2) - -
- Signature: (string * FSharpErrorInfo [] option) -> FsiCompilationException
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.ErrorInfos - -
- Signature: FSharpErrorInfo [] option
-
-
- -

CompiledName: get_ErrorInfos

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-interactive-shell-fsievaluationsession.html b/docs/reference/fsharp-compiler-interactive-shell-fsievaluationsession.html deleted file mode 100644 index bd4b803a97..0000000000 --- a/docs/reference/fsharp-compiler-interactive-shell-fsievaluationsession.html +++ /dev/null @@ -1,528 +0,0 @@ - - - - - FsiEvaluationSession - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FsiEvaluationSession

-

- - Namespace: FSharp.Compiler.Interactive
- Parent Module: Shell
- - Attributes:
-[<Class>]
- -
-

-
-

Represents an F# Interactive evaluation session.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.CurrentPartialAssemblySignature - -
- Signature: FSharpAssemblySignature
-
-
-

Get a handle to the resolved view of the current signature of the incrementally generated assembly.

- - -

CompiledName: get_CurrentPartialAssemblySignature

-
- - x.DynamicAssembly - -
- Signature: Assembly
-
-
-

Get a handle to the dynamically generated assembly

- - -

CompiledName: get_DynamicAssembly

-
- - x.EvalExpression(code) - -
- Signature: code:string -> FsiValue option
-
-
-

Execute the code as if it had been entered as one or more interactions, with an -implicit termination at the end of the input. Stop on first error, discarding the rest -of the input. Errors are sent to the output writer. Parsing is performed on the current thread, and execution is performed -synchronously on the 'main' thread.

-

Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered -by input from 'stdin'.

- - -
- - x.EvalExpressionNonThrowing(code) - -
- Signature: code:string -> Choice<FsiValue option,exn> * FSharpErrorInfo []
-
-
-

Execute the code as if it had been entered as one or more interactions, with an -implicit termination at the end of the input. Stop on first error, discarding the rest -of the input. Errors and warnings are collected apart from any exception arising from execution -which is returned via a Choice. Parsing is performed on the current thread, and execution is performed -synchronously on the 'main' thread.

-

Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered -by input from 'stdin'.

- - -
- - x.EvalInteraction(...) - -
- Signature: (code:string * cancellationToken:CancellationToken option) -> unit
-
-
-

Execute the code as if it had been entered as one or more interactions, with an -implicit termination at the end of the input. Stop on first error, discarding the rest -of the input. Errors are sent to the output writer, a 'true' return value indicates there -were no errors overall. Execution is performed on the 'Run()' thread.

-

Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered -by input from 'stdin'.

- - -
- - x.EvalInteractionNonThrowing(...) - -
- Signature: (code:string * cancellationToken:CancellationToken option) -> Choice<FsiValue option,exn> * FSharpErrorInfo []
-
-
-

Execute the code as if it had been entered as one or more interactions, with an -implicit termination at the end of the input. Stop on first error, discarding the rest -of the input. Errors and warnings are collected apart from any exception arising from execution -which is returned via a Choice. Execution is performed on the 'Run()' thread.

-

Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered -by input from 'stdin'.

- - -
- - x.EvalScript(filePath) - -
- Signature: filePath:string -> unit
-
-
-

Execute the given script. Stop on first error, discarding the rest -of the script. Errors are sent to the output writer, a 'true' return value indicates there -were no errors overall. Execution is performed on the 'Run()' thread.

-

Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered -by input from 'stdin'.

- - -
- - x.EvalScriptNonThrowing(filePath) - -
- Signature: filePath:string -> Choice<unit,exn> * FSharpErrorInfo []
-
-
-

Execute the given script. Stop on first error, discarding the rest -of the script. Errors and warnings are collected apart from any exception arising from execution -which is returned via a Choice. Execution is performed on the 'Run()' thread.

-

Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered -by input from 'stdin'.

- - -
- - x.FormatValue(...) - -
- Signature: (reflectionValue:obj * reflectionType:Type) -> string
-
-
-

Format a value to a string using the current PrintDepth, PrintLength etc settings provided by the active fsi configuration object

- - -
- - x.GetCompletions(longIdent) - -
- Signature: longIdent:string -> seq<string>
-
-
-

A host calls this to get the completions for a long identifier, e.g. in the console

-

Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered -by input from 'stdin'.

- - -
- - x.InteractiveChecker - -
- Signature: FSharpChecker
-
-
-

The single, global interactive checker to use in conjunction with other operations -on the FsiEvaluationSession.

-

If you are using an FsiEvaluationSession in this process, you should only use this InteractiveChecker -for additional checking operations.

- - -

CompiledName: get_InteractiveChecker

-
- - x.Interrupt() - -
- Signature: unit -> unit
-
-
-

A host calls this to request an interrupt on the evaluation thread.

- - -
- - x.IsGui - -
- Signature: bool
-
-
-

A host calls this to determine if the --gui parameter is active

- - -

CompiledName: get_IsGui

-
- - x.LCID - -
- Signature: int option
-
-
-

A host calls this to get the active language ID if provided by fsi-server-lcid

- - -

CompiledName: get_LCID

-
- - x.ParseAndCheckInteraction(code) - -
- Signature: code:string -> Async<FSharpParseFileResults * FSharpCheckFileResults * FSharpCheckProjectResults>
-
-
-

Typecheck the given script fragment in the type checking context implied by the current state -of F# Interactive. The results can be used to access intellisense, perform resolutions, -check brace matching and other information.

-

Operations may be run concurrently with other requests to the InteractiveChecker.

-

Due to a current limitation, it is not fully thread-safe to run this operation concurrently with evaluation triggered -by input from 'stdin'.

- - -
- - x.PartialAssemblySignatureUpdated - -
- Signature: IEvent<unit>
-
-
-

Raised when an interaction is successfully typechecked and executed, resulting in an update to the -type checking state.

-

This event is triggered after parsing and checking, either via input from 'stdin', or via a call to EvalInteraction.

- - -

CompiledName: get_PartialAssemblySignatureUpdated

-
- - x.ReportUnhandledException(exn) - -
- Signature: exn:exn -> unit
-
-
-

A host calls this to report an unhandled exception in a standard way, e.g. an exception on the GUI thread gets printed to stderr

- - -
- - x.Run() - -
- Signature: unit -> unit
-
-
-

Load the dummy interaction, load the initial files, and, -if interacting, start the background thread to read the standard input.

-

Performs these steps: -- Load the dummy interaction, if any -- Set up exception handling, if any -- Load the initial files, if any -- Start the background thread to read the standard input, if any -- Sit in the GUI event loop indefinitely, if needed

- - -
- - x.ValueBound - -
- Signature: IEvent<obj * Type * string>
-
-
-

Event fires when a root-level value is bound to an identifier, e.g., via let x = ....

- - -

CompiledName: get_ValueBound

-
-

Static members

- - - - - - - - - - - - - - - - - - - - - - -
Static memberDescription
- - FsiEvaluationSession.Create(...) - -
- Signature: (fsiConfig:FsiEvaluationSessionHostConfig * argv:string [] * inReader:TextReader * outWriter:TextWriter * errorWriter:TextWriter * collectible:bool option * legacyReferenceResolver:Resolver option) -> FsiEvaluationSession
-
-
-

Create an FsiEvaluationSession, reading from the given text input, writing to the given text output and error writers.

-Create an FsiEvaluationSession, reading from the given text input, writing to the given text output and error writers -The dynamic configuration of the evaluation session -The command line arguments for the evaluation session -Read input from the given reader -Write output to the given writer -Optionally make the dynamic assembly for the session collectible - - -
- - FsiEvaluationSession.GetDefaultConfiguration(...) - -
- Signature: unit -> FsiEvaluationSessionHostConfig
-
-
-

Get a configuration that uses a private inbuilt implementation of the 'fsi' object and does not -implicitly reference FSharp.Compiler.Interactive.Settings.dll.

- - -
- - FsiEvaluationSession.GetDefaultConfiguration(...) - -
- Signature: fsiObj:obj -> FsiEvaluationSessionHostConfig
-
-
-

Get a configuration that uses the 'fsi' object (normally from FSharp.Compiler.Interactive.Settings.dll, -an object from another DLL with identical characteristics) to provide an implementation of the configuration. -FSharp.Compiler.Interactive.Settings.dll is referenced by default.

- - -
- - FsiEvaluationSession.GetDefaultConfiguration(...) - -
- Signature: (fsiObj:obj * useFsiAuxLib:bool) -> FsiEvaluationSessionHostConfig
-
-
-

Get a configuration that uses the 'fsi' object (normally from FSharp.Compiler.Interactive.Settings.dll, -an object from another DLL with identical characteristics) to provide an implementation of the configuration. -The flag indicates if FSharp.Compiler.Interactive.Settings.dll is referenced by default.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-interactive-shell-fsievaluationsessionhostconfig.html b/docs/reference/fsharp-compiler-interactive-shell-fsievaluationsessionhostconfig.html deleted file mode 100644 index cb7520d4fd..0000000000 --- a/docs/reference/fsharp-compiler-interactive-shell-fsievaluationsessionhostconfig.html +++ /dev/null @@ -1,440 +0,0 @@ - - - - - FsiEvaluationSessionHostConfig - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FsiEvaluationSessionHostConfig

-

- - Namespace: FSharp.Compiler.Interactive
- Parent Module: Shell
- - Attributes:
-[<AbstractClass>]
- -
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> FsiEvaluationSessionHostConfig
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AddedPrinters - -
- Signature: Choice<(Type * (obj -> string)),(Type * (obj -> obj))> list
- Modifiers: abstract
-
-
-

Called by the evaluation session to ask the host for parameters to format text for output

- - -

CompiledName: get_AddedPrinters

-
- - x.EventLoopInvoke(codeToRun) - -
- Signature: (codeToRun:(unit -> 'T)) -> 'T
- Modifiers: abstract
- Type parameters: 'T
-
-

Request that the given operation be run synchronously on the event loop.

- - -
- - x.EventLoopRun() - -
- Signature: unit -> bool
- Modifiers: abstract
-
-
-

Called by the evaluation session to ask the host to enter a dispatch loop like Application.Run(). -Only called if --gui option is used (which is the default). -Gets called towards the end of startup and every time a ThreadAbort escaped to the backup driver loop. -Return true if a 'restart' is required, which is a bit meaningless.

- - -
- - x.EventLoopScheduleRestart() - -
- Signature: unit -> unit
- Modifiers: abstract
-
-
-

Schedule a restart for the event loop.

- - -
- - x.FloatingPointFormat - -
- Signature: string
- Modifiers: abstract
-
-
-

Called by the evaluation session to ask the host for parameters to format text for output

- - -

CompiledName: get_FloatingPointFormat

-
- - x.FormatProvider - -
- Signature: IFormatProvider
- Modifiers: abstract
-
-
-

Called by the evaluation session to ask the host for parameters to format text for output

- - -

CompiledName: get_FormatProvider

-
- - x.GetOptionalConsoleReadLine(...) - -
- Signature: probeToSeeIfConsoleWorks:bool -> (unit -> string) option
- Modifiers: abstract
-
-
-

Indicate a special console "readline" reader for the evaluation session, if any. A "console" gets used if --readline is specified (the default on Windows + .NET); and --fsi-server is not -given (always combine with --readline-), and OptionalConsoleReadLine is given. -When a console is used, special rules apply to "peekahead", which allows early typing on the console. -Peekahead happens if --peekahead- is not specified (the default). -In this case, a prompt is printed early, a background thread is created and -the OptionalConsoleReadLine is used to read the first line. -If a console is not used, then inReader.Peek() is called early instead. -Further lines are read using OptionalConsoleReadLine(). -If not provided, lines are read using inReader.ReadLine().

- - -
- - x.OnEvaluation - -
- Signature: IEvent<EvaluationEventArgs>
-
-
-

Hook for listening for evaluation bindings

- - -

CompiledName: get_OnEvaluation

-
- - x.PrintDepth - -
- Signature: int
- Modifiers: abstract
-
-
-

Called by the evaluation session to ask the host for parameters to format text for output

- - -

CompiledName: get_PrintDepth

-
- - x.PrintLength - -
- Signature: int
- Modifiers: abstract
-
-
-

Called by the evaluation session to ask the host for parameters to format text for output

- - -

CompiledName: get_PrintLength

-
- - x.PrintSize - -
- Signature: int
- Modifiers: abstract
-
-
-

Called by the evaluation session to ask the host for parameters to format text for output

- - -

CompiledName: get_PrintSize

-
- - x.PrintWidth - -
- Signature: int
- Modifiers: abstract
-
-
-

Called by the evaluation session to ask the host for parameters to format text for output

- - -

CompiledName: get_PrintWidth

-
- - x.ReportUserCommandLineArgs(arg1) - -
- Signature: (string []) -> unit
- Modifiers: abstract
-
-
-

The evaluation session calls this to report the preferred view of the command line arguments after -stripping things like "/use:file.fsx", "-r:Foo.dll" etc.

- - -
- - x.ShowDeclarationValues - -
- Signature: bool
- Modifiers: abstract
-
-
-

Called by the evaluation session to ask the host for parameters to format text for output

- - -

CompiledName: get_ShowDeclarationValues

-
- - x.ShowIEnumerable - -
- Signature: bool
- Modifiers: abstract
-
-
-

Called by the evaluation session to ask the host for parameters to format text for output

- - -

CompiledName: get_ShowIEnumerable

-
- - x.ShowProperties - -
- Signature: bool
- Modifiers: abstract
-
-
-

Called by the evaluation session to ask the host for parameters to format text for output

- - -

CompiledName: get_ShowProperties

-
- - x.StartServer(fsiServerName) - -
- Signature: fsiServerName:string -> unit
- Modifiers: abstract
-
-
-

The evaluation session calls this at an appropriate point in the startup phase if the --fsi-server parameter was given

- - -
- - x.UseFsiAuxLib - -
- Signature: bool
- Modifiers: abstract
-
-
-

Implicitly reference FSharp.Compiler.Interactive.Settings.dll

- - -

CompiledName: get_UseFsiAuxLib

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-interactive-shell-fsivalue.html b/docs/reference/fsharp-compiler-interactive-shell-fsivalue.html deleted file mode 100644 index 1750c2ff0b..0000000000 --- a/docs/reference/fsharp-compiler-interactive-shell-fsivalue.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - FsiValue - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FsiValue

-

- - Namespace: FSharp.Compiler.Interactive
- Parent Module: Shell
- - Attributes:
-[<Class>]
- -
-

-
-

Represents an evaluated F# value

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.ReflectionType - -
- Signature: Type
-
-
-

The type of the value, from the point of view of the .NET type system

- - -

CompiledName: get_ReflectionType

-
- - x.ReflectionValue - -
- Signature: obj
-
-
-

The value, as an object

- - -

CompiledName: get_ReflectionValue

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-interactive-shell-settings-ieventloop.html b/docs/reference/fsharp-compiler-interactive-shell-settings-ieventloop.html deleted file mode 100644 index 5b70bda908..0000000000 --- a/docs/reference/fsharp-compiler-interactive-shell-settings-ieventloop.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - IEventLoop - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

IEventLoop

-

- - Namespace: FSharp.Compiler.Interactive
- Parent Module: Settings
-

-
-

An event loop used by the currently executing F# Interactive session to execute code -in the context of a GUI or another event-based system.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Invoke(arg1) - -
- Signature: ((unit -> 'T)) -> 'T
- Modifiers: abstract
- Type parameters: 'T
-
-

Request that the given operation be run synchronously on the event loop.

- - -
- - x.Run() - -
- Signature: unit -> bool
- Modifiers: abstract
-
-
-

Run the event loop.

- - -
- - x.ScheduleRestart() - -
- Signature: unit -> unit
- Modifiers: abstract
-
-
-

Schedule a restart for the event loop.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-interactive-shell-settings-interactivesettings.html b/docs/reference/fsharp-compiler-interactive-shell-settings-interactivesettings.html deleted file mode 100644 index 37144eb0d3..0000000000 --- a/docs/reference/fsharp-compiler-interactive-shell-settings-interactivesettings.html +++ /dev/null @@ -1,499 +0,0 @@ - - - - - InteractiveSettings - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

InteractiveSettings

-

- - Namespace: FSharp.Compiler.Interactive
- Parent Module: Settings
- - Attributes:
-[<Sealed>]
- -
-

-
-

Operations supported by the currently executing F# Interactive session.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AddPrinter(arg1) - -
- Signature: (('T -> string)) -> unit
- Type parameters: 'T
-
-

Register a printer that controls the output of the interactive session.

- - -
- - x.AddPrintTransformer(arg1) - -
- Signature: (('T -> obj)) -> unit
- Type parameters: 'T
-
-

Register a print transformer that controls the output of the interactive session.

- - -
- - x.CommandLineArgs() - -
- Signature: unit -> string []
-
-
-

The command line arguments after ignoring the arguments relevant to the interactive -environment and replacing the first argument with the name of the last script file, -if any. Thus 'fsi.exe test1.fs test2.fs -- hello goodbye' will give arguments -'test2.fs', 'hello', 'goodbye'. This value will normally be different to those -returned by System.Environment.GetCommandLineArgs.

- - -

CompiledName: set_CommandLineArgs

-
- - x.CommandLineArgs() - -
- Signature: unit -> unit
-
-
-

The command line arguments after ignoring the arguments relevant to the interactive -environment and replacing the first argument with the name of the last script file, -if any. Thus 'fsi.exe test1.fs test2.fs -- hello goodbye' will give arguments -'test2.fs', 'hello', 'goodbye'. This value will normally be different to those -returned by System.Environment.GetCommandLineArgs.

- - -

CompiledName: get_CommandLineArgs

-
- - x.EventLoop() - -
- Signature: unit -> IEventLoop
-
-
-

Gets or sets a the current event loop being used to process interactions.

- - -

CompiledName: set_EventLoop

-
- - x.EventLoop() - -
- Signature: unit -> unit
-
-
-

Gets or sets a the current event loop being used to process interactions.

- - -

CompiledName: get_EventLoop

-
- - x.FloatingPointFormat() - -
- Signature: unit -> string
-
-
-

Get or set the floating point format used in the output of the interactive session.

- - -

CompiledName: set_FloatingPointFormat

-
- - x.FloatingPointFormat() - -
- Signature: unit -> unit
-
-
-

Get or set the floating point format used in the output of the interactive session.

- - -

CompiledName: get_FloatingPointFormat

-
- - x.FormatProvider() - -
- Signature: unit -> IFormatProvider
-
-
-

Get or set the format provider used in the output of the interactive session.

- - -

CompiledName: set_FormatProvider

-
- - x.FormatProvider() - -
- Signature: unit -> unit
-
-
-

Get or set the format provider used in the output of the interactive session.

- - -

CompiledName: get_FormatProvider

-
- - x.PrintDepth() - -
- Signature: unit -> int
-
-
-

Get or set the print depth of the interactive session.

- - -

CompiledName: set_PrintDepth

-
- - x.PrintDepth() - -
- Signature: unit -> unit
-
-
-

Get or set the print depth of the interactive session.

- - -

CompiledName: get_PrintDepth

-
- - x.PrintLength() - -
- Signature: unit -> int
-
-
-

Get or set the total print length of the interactive session.

- - -

CompiledName: set_PrintLength

-
- - x.PrintLength() - -
- Signature: unit -> unit
-
-
-

Get or set the total print length of the interactive session.

- - -

CompiledName: get_PrintLength

-
- - x.PrintSize() - -
- Signature: unit -> int
-
-
-

Get or set the total print size of the interactive session.

- - -

CompiledName: set_PrintSize

-
- - x.PrintSize() - -
- Signature: unit -> unit
-
-
-

Get or set the total print size of the interactive session.

- - -

CompiledName: get_PrintSize

-
- - x.PrintWidth() - -
- Signature: unit -> int
-
-
-

Get or set the print width of the interactive session.

- - -

CompiledName: set_PrintWidth

-
- - x.PrintWidth() - -
- Signature: unit -> unit
-
-
-

Get or set the print width of the interactive session.

- - -

CompiledName: get_PrintWidth

-
- - x.ShowDeclarationValues() - -
- Signature: unit -> bool
-
-
-

When set to 'false', disables the display of declaration values in the output of the interactive session.

- - -

CompiledName: set_ShowDeclarationValues

-
- - x.ShowDeclarationValues() - -
- Signature: unit -> unit
-
-
-

When set to 'false', disables the display of declaration values in the output of the interactive session.

- - -

CompiledName: get_ShowDeclarationValues

-
- - x.ShowIEnumerable() - -
- Signature: unit -> bool
-
-
-

When set to 'false', disables the display of sequences in the output of the interactive session.

- - -

CompiledName: set_ShowIEnumerable

-
- - x.ShowIEnumerable() - -
- Signature: unit -> unit
-
-
-

When set to 'false', disables the display of sequences in the output of the interactive session.

- - -

CompiledName: get_ShowIEnumerable

-
- - x.ShowProperties() - -
- Signature: unit -> bool
-
-
-

When set to 'false', disables the display of properties of evaluated objects in the output of the interactive session.

- - -

CompiledName: set_ShowProperties

-
- - x.ShowProperties() - -
- Signature: unit -> unit
-
-
-

When set to 'false', disables the display of properties of evaluated objects in the output of the interactive session.

- - -

CompiledName: get_ShowProperties

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-interactive-shell-settings.html b/docs/reference/fsharp-compiler-interactive-shell-settings.html deleted file mode 100644 index d982b62eb0..0000000000 --- a/docs/reference/fsharp-compiler-interactive-shell-settings.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - Settings - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Settings

-

- Namespace: FSharp.Compiler.Interactive
- Parent Module: Shell -

-
-

A default implementation of the 'fsi' object, used by GetDefaultConfiguration()

- -
- - -

Nested types and modules

-
- - - - - - - - - - - - - - -
TypeDescription
- IEventLoop - -

An event loop used by the currently executing F# Interactive session to execute code -in the context of a GUI or another event-based system.

- - -
- InteractiveSettings - -

Operations supported by the currently executing F# Interactive session.

- - -
- -
- -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - fsi - -
- Signature: InteractiveSettings
-
-
-

A default implementation of the 'fsi' object, used by GetDefaultConfiguration(). Note this -is a different object to FSharp.Compiler.Interactive.Settings.fsi in FSharp.Compiler.Interactive.Settings.dll, -which can be used as an alternative implementation of the interactive settings if passed as a parameter -to GetDefaultConfiguration(fsiObj).

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-interactive-shell.html b/docs/reference/fsharp-compiler-interactive-shell.html deleted file mode 100644 index 89fba6897b..0000000000 --- a/docs/reference/fsharp-compiler-interactive-shell.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - - Shell - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Shell

-

- Namespace: FSharp.Compiler.Interactive
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- CompilerInputStream - -

Defines a read-only input stream used to feed content to the hosted F# Interactive dynamic compiler.

- - -
- CompilerOutputStream - -

Defines a write-only stream used to capture output of the hosted F# Interactive dynamic compiler.

- - -
- EvaluationEventArgs - - -
- FsiCompilationException - -

Thrown when there was an error compiling the given code in FSI.

- - -
- FsiEvaluationSession - -

Represents an F# Interactive evaluation session.

- - -
- FsiEvaluationSessionHostConfig - - -
- FsiValue - -

Represents an evaluated F# value

- - -
- - - - - - - - - - -
ModuleDescription
- Settings - -

A default implementation of the 'fsi' object, used by GetDefaultConfiguration()

- - -
- -
- - -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-layout.html b/docs/reference/fsharp-compiler-layout-layout.html deleted file mode 100644 index ac1040971c..0000000000 --- a/docs/reference/fsharp-compiler-layout-layout.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - layout - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

layout

-

- - Namespace: FSharp.Compiler
- Parent Module: Layout
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-layoutrenderer-2.html b/docs/reference/fsharp-compiler-layout-layoutrenderer-2.html deleted file mode 100644 index e1b0bb832c..0000000000 --- a/docs/reference/fsharp-compiler-layout-layoutrenderer-2.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - LayoutRenderer<'a, 'b> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LayoutRenderer<'a, 'b>

-

- - Namespace: FSharp.Compiler
- Parent Module: Layout
-

-
-

Render a Layout yielding an 'a using a 'b (hidden state) type

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AddBreak arg1 arg2 - -
- Signature: 'b -> int -> 'b
- Modifiers: abstract
-
-
- -
- - x.AddTag arg1 (arg2, arg3, arg4) - -
- Signature: 'b -> (string * (string * string) list * bool) -> 'b
- Modifiers: abstract
-
-
- -
- - x.AddText arg1 arg2 - -
- Signature: 'b -> TaggedText -> 'b
- Modifiers: abstract
-
-
- -
- - x.Finish(arg1) - -
- Signature: 'b -> 'a
- Modifiers: abstract
-
-
- -
- - x.Start() - -
- Signature: unit -> 'b
- Modifiers: abstract
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-layouttag.html b/docs/reference/fsharp-compiler-layout-layouttag.html deleted file mode 100644 index fe2c78c834..0000000000 --- a/docs/reference/fsharp-compiler-layout-layouttag.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - LayoutTag - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LayoutTag

-

- - Namespace: FSharp.Compiler
- Parent Module: Layout
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-leftl.html b/docs/reference/fsharp-compiler-layout-leftl.html deleted file mode 100644 index a7b993b139..0000000000 --- a/docs/reference/fsharp-compiler-layout-leftl.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - LeftL - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LeftL

-

- Namespace: FSharp.Compiler
- Parent Module: Layout -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - colon - -
- Signature: Layout
-
-
- -
- - keywordTypedefof - -
- Signature: Layout
-
-
- -
- - keywordTypeof - -
- Signature: Layout
-
-
- -
- - leftBracketAngle - -
- Signature: Layout
-
-
- -
- - leftBracketBar - -
- Signature: Layout
-
-
- -
- - leftParen - -
- Signature: Layout
-
-
- -
- - questionMark - -
- Signature: Layout
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-navigabletaggedtext.html b/docs/reference/fsharp-compiler-layout-navigabletaggedtext.html deleted file mode 100644 index 146bcfc715..0000000000 --- a/docs/reference/fsharp-compiler-layout-navigabletaggedtext.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - NavigableTaggedText - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NavigableTaggedText

-

- - Namespace: FSharp.Compiler
- Parent Module: Layout
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(arg1, arg2) - -
- Signature: (TaggedText * range) -> NavigableTaggedText
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
- -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-noresult.html b/docs/reference/fsharp-compiler-layout-noresult.html deleted file mode 100644 index f85f9e4e5e..0000000000 --- a/docs/reference/fsharp-compiler-layout-noresult.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - NoResult - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NoResult

-

- - Namespace: FSharp.Compiler
- Parent Module: Layout
-

-
-
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - NoResult - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-nostate.html b/docs/reference/fsharp-compiler-layout-nostate.html deleted file mode 100644 index 1844a29e10..0000000000 --- a/docs/reference/fsharp-compiler-layout-nostate.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - NoState - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NoState

-

- - Namespace: FSharp.Compiler
- Parent Module: Layout
-

-
-
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - NoState - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-rightl.html b/docs/reference/fsharp-compiler-layout-rightl.html deleted file mode 100644 index 7b6ae2be6b..0000000000 --- a/docs/reference/fsharp-compiler-layout-rightl.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - RightL - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

RightL

-

- Namespace: FSharp.Compiler
- Parent Module: Layout -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - colon - -
- Signature: Layout
-
-
- -
- - comma - -
- Signature: Layout
-
-
- -
- - rightAngle - -
- Signature: Layout
-
-
- -
- - rightBracket - -
- Signature: Layout
-
-
- -
- - rightBracketAngle - -
- Signature: Layout
-
-
- -
- - rightBracketBar - -
- Signature: Layout
-
-
- -
- - rightParen - -
- Signature: Layout
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-sepl.html b/docs/reference/fsharp-compiler-layout-sepl.html deleted file mode 100644 index 01503bdba5..0000000000 --- a/docs/reference/fsharp-compiler-layout-sepl.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - - SepL - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SepL

-

- Namespace: FSharp.Compiler
- Parent Module: Layout -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - colon - -
- Signature: Layout
-
-
- -
- - comma - -
- Signature: Layout
-
-
- -
- - dot - -
- Signature: Layout
-
-
- -
- - leftAngle - -
- Signature: Layout
-
-
- -
- - leftBracket - -
- Signature: Layout
-
-
- -
- - leftParen - -
- Signature: Layout
-
-
- -
- - lineBreak - -
- Signature: Layout
-
-
- -
- - questionMark - -
- Signature: Layout
-
-
- -
- - rightParen - -
- Signature: Layout
-
-
- -
- - space - -
- Signature: Layout
-
-
- -
- - star - -
- Signature: Layout
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-taggedtext.html b/docs/reference/fsharp-compiler-layout-taggedtext.html deleted file mode 100644 index 4f62e0343f..0000000000 --- a/docs/reference/fsharp-compiler-layout-taggedtext.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - - TaggedText - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

TaggedText

-

- - Namespace: FSharp.Compiler
- Parent Module: Layout
-

-
-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Tag - -
- Signature: LayoutTag
- Modifiers: abstract
-
-
- -

CompiledName: get_Tag

-
- - x.Text - -
- Signature: string
- Modifiers: abstract
-
-
- -

CompiledName: get_Text

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-taggedtextops-literals.html b/docs/reference/fsharp-compiler-layout-taggedtextops-literals.html deleted file mode 100644 index 5fc2baa534..0000000000 --- a/docs/reference/fsharp-compiler-layout-taggedtextops-literals.html +++ /dev/null @@ -1,390 +0,0 @@ - - - - - Literals - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Literals

-

- Namespace: FSharp.Compiler
- Parent Module: TaggedTextOps -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - arrow - -
- Signature: TaggedText
-
-
- -
- - colon - -
- Signature: TaggedText
-
-
- -
- - comma - -
- Signature: TaggedText
-
-
- -
- - dot - -
- Signature: TaggedText
-
-
- -
- - equals - -
- Signature: TaggedText
-
-
- -
- - keywordFalse - -
- Signature: TaggedText
-
-
- -
- - keywordTrue - -
- Signature: TaggedText
-
-
- -
- - leftAngle - -
- Signature: TaggedText
-
-
- -
- - leftBrace - -
- Signature: TaggedText
-
-
- -
- - leftBraceBar - -
- Signature: TaggedText
-
-
- -
- - leftBracket - -
- Signature: TaggedText
-
-
- -
- - leftParen - -
- Signature: TaggedText
-
-
- -
- - lineBreak - -
- Signature: TaggedText
-
-
- -
- - minus - -
- Signature: TaggedText
-
-
- -
- - questionMark - -
- Signature: TaggedText
-
-
- -
- - rightAngle - -
- Signature: TaggedText
-
-
- -
- - rightBrace - -
- Signature: TaggedText
-
-
- -
- - rightBraceBar - -
- Signature: TaggedText
-
-
- -
- - rightBracket - -
- Signature: TaggedText
-
-
- -
- - rightParen - -
- Signature: TaggedText
-
-
- -
- - semicolon - -
- Signature: TaggedText
-
-
- -
- - space - -
- Signature: TaggedText
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-taggedtextops.html b/docs/reference/fsharp-compiler-layout-taggedtextops.html deleted file mode 100644 index f8826cd72e..0000000000 --- a/docs/reference/fsharp-compiler-layout-taggedtextops.html +++ /dev/null @@ -1,552 +0,0 @@ - - - - - TaggedTextOps - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

TaggedTextOps

-

- Namespace: FSharp.Compiler
- Parent Module: Layout -

-
-
- - -

Nested types and modules

-
- - - - - - - - - - -
ModuleDescription
- Literals - - -
- -
- -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - tagActivePatternCase - -
- Signature: string -> TaggedText
-
-
- -
- - tagActivePatternResult - -
- Signature: string -> TaggedText
-
-
- -
- - tagAlias - -
- Signature: string -> TaggedText
-
-
- -
- - tagClass - -
- Signature: string -> TaggedText
-
-
- -
- - tagDelegate - -
- Signature: string -> TaggedText
-
-
- -
- - tagEnum - -
- Signature: string -> TaggedText
-
-
- -
- - tagEvent - -
- Signature: string -> TaggedText
-
-
- -
- - tagField - -
- Signature: string -> TaggedText
-
-
- -
- - tagInterface - -
- Signature: string -> TaggedText
-
-
- -
- - tagKeyword - -
- Signature: string -> TaggedText
-
-
- -
- - tagLineBreak - -
- Signature: string -> TaggedText
-
-
- -
- - tagLocal - -
- Signature: string -> TaggedText
-
-
- -
- - tagMember - -
- Signature: string -> TaggedText
-
-
- -
- - tagMethod - -
- Signature: string -> TaggedText
-
-
- -
- - tagModule - -
- Signature: string -> TaggedText
-
-
- -
- - tagModuleBinding - -
- Signature: string -> TaggedText
-
-
- -
- - tagNamespace - -
- Signature: string -> TaggedText
-
-
- -
- - tagNumericLiteral - -
- Signature: string -> TaggedText
-
-
- -
- - tagOperator - -
- Signature: string -> TaggedText
-
-
- -
- - tagParameter - -
- Signature: string -> TaggedText
-
-
- -
- - tagProperty - -
- Signature: string -> TaggedText
-
-
- -
- - tagPunctuation - -
- Signature: string -> TaggedText
-
-
- -
- - tagRecord - -
- Signature: string -> TaggedText
-
-
- -
- - tagRecordField - -
- Signature: string -> TaggedText
-
-
- -
- - tagSpace - -
- Signature: string -> TaggedText
-
-
- -
- - tagStringLiteral - -
- Signature: string -> TaggedText
-
-
- -
- - tagStruct - -
- Signature: string -> TaggedText
-
-
- -
- - tagText - -
- Signature: string -> TaggedText
-
-
- -
- - tagTypeParameter - -
- Signature: string -> TaggedText
-
-
- -
- - tagUnion - -
- Signature: string -> TaggedText
-
-
- -
- - tagUnionCase - -
- Signature: string -> TaggedText
-
-
- -
- - tagUnknownEntity - -
- Signature: string -> TaggedText
-
-
- -
- - tagUnknownType - -
- Signature: string -> TaggedText
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout-wordl.html b/docs/reference/fsharp-compiler-layout-wordl.html deleted file mode 100644 index 0e18e84d35..0000000000 --- a/docs/reference/fsharp-compiler-layout-wordl.html +++ /dev/null @@ -1,468 +0,0 @@ - - - - - WordL - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

WordL

-

- Namespace: FSharp.Compiler
- Parent Module: Layout -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - arrow - -
- Signature: Layout
-
-
- -
- - bar - -
- Signature: Layout
-
-
- -
- - colon - -
- Signature: Layout
-
-
- -
- - equals - -
- Signature: Layout
-
-
- -
- - keywordAbstract - -
- Signature: Layout
-
-
- -
- - keywordDelegate - -
- Signature: Layout
-
-
- -
- - keywordEnd - -
- Signature: Layout
-
-
- -
- - keywordEnum - -
- Signature: Layout
-
-
- -
- - keywordEvent - -
- Signature: Layout
-
-
- -
- - keywordFalse - -
- Signature: Layout
-
-
- -
- - keywordGet - -
- Signature: Layout
-
-
- -
- - keywordInherit - -
- Signature: Layout
-
-
- -
- - keywordInternal - -
- Signature: Layout
-
-
- -
- - keywordMember - -
- Signature: Layout
-
-
- -
- - keywordNested - -
- Signature: Layout
-
-
- -
- - keywordNew - -
- Signature: Layout
-
-
- -
- - keywordOf - -
- Signature: Layout
-
-
- -
- - keywordOverride - -
- Signature: Layout
-
-
- -
- - keywordPrivate - -
- Signature: Layout
-
-
- -
- - keywordSet - -
- Signature: Layout
-
-
- -
- - keywordStatic - -
- Signature: Layout
-
-
- -
- - keywordStruct - -
- Signature: Layout
-
-
- -
- - keywordTrue - -
- Signature: Layout
-
-
- -
- - keywordType - -
- Signature: Layout
-
-
- -
- - keywordVal - -
- Signature: Layout
-
-
- -
- - keywordWith - -
- Signature: Layout
-
-
- -
- - star - -
- Signature: Layout
-
-
- -
- - structUnit - -
- Signature: Layout
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-layout.html b/docs/reference/fsharp-compiler-layout.html deleted file mode 100644 index c7df457d35..0000000000 --- a/docs/reference/fsharp-compiler-layout.html +++ /dev/null @@ -1,711 +0,0 @@ - - - - - Layout - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Layout

-

- Namespace: FSharp.Compiler
-

-
-

DSL to create structured layout objects with optional breaks and render them

- -
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- LayoutRenderer<'a, 'b> - -

Render a Layout yielding an 'a using a 'b (hidden state) type

- - -
- LayoutTag - - -
- NavigableTaggedText - - -
- NoResult - - -
- NoState - - -
- TaggedText - - -
- layout - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
ModuleDescription
- LeftL - - -
- RightL - - -
- SepL - - -
- TaggedTextOps - - -
- WordL - - -
- -
- -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - ( -- ) arg1 arg2 - -
- Signature: Layout -> Layout -> Layout
-
-
- -

CompiledName: op_MinusMinus

-
- - ( --- ) arg1 arg2 - -
- Signature: Layout -> Layout -> Layout
-
-
-

optional break, indent=2

- - -

CompiledName: op_MinusMinusMinus

-
- - ( ---- ) arg1 arg2 - -
- Signature: Layout -> Layout -> Layout
-
-
-

optional break, indent=3

- - -

CompiledName: op_MinusMinusMinusMinus

-
- - ( ----- ) arg1 arg2 - -
- Signature: Layout -> Layout -> Layout
-
-
-

optional break, indent=4

- - -

CompiledName: op_MinusMinusMinusMinusMinus

-
- - ( @@ ) arg1 arg2 - -
- Signature: Layout -> Layout -> Layout
-
-
-

non-optional break ident=0

- - -

CompiledName: op_AtAt

-
- - ( @@- ) arg1 arg2 - -
- Signature: Layout -> Layout -> Layout
-
-
-

non-optional break ident=1

- - -

CompiledName: op_AtAtMinus

-
- - ( @@-- ) arg1 arg2 - -
- Signature: Layout -> Layout -> Layout
-
-
-

non-optional break ident=2

- - -

CompiledName: op_AtAtMinusMinus

-
- - ( ^^ ) arg1 arg2 - -
- Signature: Layout -> Layout -> Layout
-
-
-

never break "glue"

- - -

CompiledName: op_HatHat

-
- - ( ++ ) arg1 arg2 - -
- Signature: Layout -> Layout -> Layout
-
-
-

optional break, indent=0

- - -

CompiledName: op_PlusPlus

-
- - aboveL arg1 arg2 - -
- Signature: Layout -> Layout -> Layout
-
-
- -
- - aboveListL(arg1) - -
- Signature: Layout list -> Layout
-
-
- -
- - bracketL(arg1) - -
- Signature: Layout -> Layout
-
-
- -
- - bufferL arg1 arg2 - -
- Signature: StringBuilder -> Layout -> unit
-
-
- -
- - bufferR(arg1) - -
- Signature: StringBuilder -> LayoutRenderer<NoResult,NoState>
-
-
-

Render layout to StringBuilder

- - -
- - channelR(arg1) - -
- Signature: TextWriter -> LayoutRenderer<NoResult,NoState>
-
-
-

Render layout to channel

- - -
- - commaListL(arg1) - -
- Signature: Layout list -> Layout
-
-
- -
- - emptyL - -
- Signature: Layout
-
-
- -
- - isEmptyL(arg1) - -
- Signature: Layout -> bool
-
-
- -
- - leftL(arg1) - -
- Signature: TaggedText -> Layout
-
-
- -
- - listL arg1 arg2 - -
- Signature: ('a -> Layout) -> 'a list -> Layout
- Type parameters: 'a
-
- -
- - mkNav arg1 arg2 - -
- Signature: range -> TaggedText -> TaggedText
-
-
- -
- - optionL arg1 arg2 - -
- Signature: ('a -> Layout) -> 'a option -> Layout
- Type parameters: 'a
-
- -
- - outL arg1 arg2 - -
- Signature: TextWriter -> Layout -> unit
-
-
- -
- - renderL arg1 arg2 - -
- Signature: LayoutRenderer<'b,'a> -> Layout -> 'b
- Type parameters: 'b, 'a
-
-

Run a render on a Layout

- - -
- - rightL(arg1) - -
- Signature: TaggedText -> Layout
-
-
- -
- - semiListL(arg1) - -
- Signature: Layout list -> Layout
-
-
- -
- - sepL(arg1) - -
- Signature: TaggedText -> Layout
-
-
- -
- - sepListL arg1 arg2 - -
- Signature: Layout -> Layout list -> Layout
-
-
- -
- - showL(arg1) - -
- Signature: Layout -> string
-
-
- -
- - spaceListL(arg1) - -
- Signature: Layout list -> Layout
-
-
- -
- - squashTo arg1 arg2 - -
- Signature: int -> Layout -> Layout
-
-
- -
- - stringR - -
- Signature: LayoutRenderer<string,string list>
-
-
-

Render layout to string

- - -
- - taggedTextListR(collector) - -
- Signature: collector:(TaggedText -> unit) -> LayoutRenderer<NoResult,NoState>
-
-
-

Render layout to collector of TaggedText

- - -
- - tupleL(arg1) - -
- Signature: Layout list -> Layout
-
-
- -
- - wordL(arg1) - -
- Signature: TaggedText -> Layout
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-parsehelpers-lexbuflocalxmldocstore.html b/docs/reference/fsharp-compiler-parsehelpers-lexbuflocalxmldocstore.html deleted file mode 100644 index e0b39d25bb..0000000000 --- a/docs/reference/fsharp-compiler-parsehelpers-lexbuflocalxmldocstore.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - LexbufLocalXmlDocStore - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LexbufLocalXmlDocStore

-

- Namespace: FSharp.Compiler
- Parent Module: ParseHelpers -

-
-

XmlDoc F# lexer/parser state, held in the BufferLocalStore for the lexer. -This is the only use of the lexer BufferLocalStore in the codebase.

- -
- - - - -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-parsehelpers-lexcont.html b/docs/reference/fsharp-compiler-parsehelpers-lexcont.html deleted file mode 100644 index dd90d6d5af..0000000000 --- a/docs/reference/fsharp-compiler-parsehelpers-lexcont.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - LexCont - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LexCont

-

- - Namespace: FSharp.Compiler
- Parent Module: ParseHelpers
-

-
-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.LexerIfdefStack - -
- Signature: LexerIfdefStackEntries
-
-
- -

CompiledName: get_LexerIfdefStack

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-parsehelpers-lexerendlinecontinuation.html b/docs/reference/fsharp-compiler-parsehelpers-lexerendlinecontinuation.html deleted file mode 100644 index 82ced55fd2..0000000000 --- a/docs/reference/fsharp-compiler-parsehelpers-lexerendlinecontinuation.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - LexerEndlineContinuation - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LexerEndlineContinuation

-

- - Namespace: FSharp.Compiler
- Parent Module: ParseHelpers
-

-
-

Specifies how the 'endline' function in the lexer should continue after -it reaches end of line or eof. The options are to continue with 'token' function -or to continue with 'skip' function.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Skip(LexerIfdefStackEntries,int,range) - -
- Signature: LexerIfdefStackEntries * int * range
-
-
- -
- - Token(LexerIfdefStackEntries) - -
- Signature: LexerIfdefStackEntries
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.LexerIfdefStack - -
- Signature: LexerIfdefStackEntries
-
-
- -

CompiledName: get_LexerIfdefStack

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-parsehelpers-lexerifdefexpression.html b/docs/reference/fsharp-compiler-parsehelpers-lexerifdefexpression.html deleted file mode 100644 index 3cdf539975..0000000000 --- a/docs/reference/fsharp-compiler-parsehelpers-lexerifdefexpression.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - LexerIfdefExpression - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LexerIfdefExpression

-

- - Namespace: FSharp.Compiler
- Parent Module: ParseHelpers
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - IfdefAnd(...) - -
- Signature: LexerIfdefExpression * LexerIfdefExpression
-
-
- -
- - IfdefId(string) - -
- Signature: string
-
-
- -
- - IfdefNot(LexerIfdefExpression) - -
- Signature: LexerIfdefExpression
-
-
- -
- - IfdefOr(...) - -
- Signature: LexerIfdefExpression * LexerIfdefExpression
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-parsehelpers-lexerifdefstack.html b/docs/reference/fsharp-compiler-parsehelpers-lexerifdefstack.html deleted file mode 100644 index c217301545..0000000000 --- a/docs/reference/fsharp-compiler-parsehelpers-lexerifdefstack.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - LexerIfdefStack - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LexerIfdefStack

-

- - Namespace: FSharp.Compiler
- Parent Module: ParseHelpers
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Head - -
- Signature: LexerIfdefStackEntry * range
-
-
- -

CompiledName: get_Head

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [index] - -
- Signature: index:int -> LexerIfdefStackEntry * range
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
-
-
- -

CompiledName: get_Length

-
- - x.Tail - -
- Signature: (LexerIfdefStackEntry * range) list
-
-
- -

CompiledName: get_Tail

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - List.Empty - -
- Signature: (LexerIfdefStackEntry * range) list
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-parsehelpers-lexerifdefstackentries.html b/docs/reference/fsharp-compiler-parsehelpers-lexerifdefstackentries.html deleted file mode 100644 index 121fda2c27..0000000000 --- a/docs/reference/fsharp-compiler-parsehelpers-lexerifdefstackentries.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - LexerIfdefStackEntries - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LexerIfdefStackEntries

-

- - Namespace: FSharp.Compiler
- Parent Module: ParseHelpers
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Head - -
- Signature: LexerIfdefStackEntry * range
-
-
- -

CompiledName: get_Head

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [index] - -
- Signature: index:int -> LexerIfdefStackEntry * range
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
-
-
- -

CompiledName: get_Length

-
- - x.Tail - -
- Signature: (LexerIfdefStackEntry * range) list
-
-
- -

CompiledName: get_Tail

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - List.Empty - -
- Signature: (LexerIfdefStackEntry * range) list
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-parsehelpers-lexerifdefstackentry.html b/docs/reference/fsharp-compiler-parsehelpers-lexerifdefstackentry.html deleted file mode 100644 index 7123161711..0000000000 --- a/docs/reference/fsharp-compiler-parsehelpers-lexerifdefstackentry.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - LexerIfdefStackEntry - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LexerIfdefStackEntry

-

- - Namespace: FSharp.Compiler
- Parent Module: ParseHelpers
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - IfDefElse - -
- Signature:
-
-
- -
- - IfDefIf - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-parsehelpers-lexerwhitespacecontinuation.html b/docs/reference/fsharp-compiler-parsehelpers-lexerwhitespacecontinuation.html deleted file mode 100644 index 681e27377c..0000000000 --- a/docs/reference/fsharp-compiler-parsehelpers-lexerwhitespacecontinuation.html +++ /dev/null @@ -1,292 +0,0 @@ - - - - - LexerWhitespaceContinuation - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LexerWhitespaceContinuation

-

- - Namespace: FSharp.Compiler
- Parent Module: ParseHelpers
- - Attributes:
-[<RequireQualifiedAccess>]
-[<NoComparison>]
-[<NoEquality>]
- -
-

-
-

The parser defines a number of tokens for whitespace and -comments eliminated by the lexer. These carry a specification of -a continuation for the lexer for continued processing after we've dealt with -the whitespace.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Comment(ifdef,int,range) - -
- Signature: LexerIfdefStackEntries * int * range
-
-
- -
- - EndLine(LexerEndlineContinuation) - -
- Signature: LexerEndlineContinuation
-
-
- -
- - IfDefSkip(ifdef,int,range) - -
- Signature: LexerIfdefStackEntries * int * range
-
-
- -
- - MLOnly(ifdef,range) - -
- Signature: LexerIfdefStackEntries * range
-
-
- -
- - SingleLineComment(ifdef,int,range) - -
- Signature: LexerIfdefStackEntries * int * range
-
-
- -
- - String(ifdef,range) - -
- Signature: LexerIfdefStackEntries * range
-
-
- -
- - StringInComment(ifdef,int,range) - -
- Signature: LexerIfdefStackEntries * int * range
-
-
- -
- - Token(ifdef) - -
- Signature: LexerIfdefStackEntries
-
-
- -
- - TripleQuoteString(ifdef,range) - -
- Signature: LexerIfdefStackEntries * range
-
-
- -
- - TripleQuoteStringInComment(...) - -
- Signature: LexerIfdefStackEntries * int * range
-
-
- -
- - VerbatimString(ifdef,range) - -
- Signature: LexerIfdefStackEntries * range
-
-
- -
- - VerbatimStringInComment(ifdef,int,range) - -
- Signature: LexerIfdefStackEntries * int * range
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.LexerIfdefStack - -
- Signature: LexerIfdefStackEntries
-
-
- -

CompiledName: get_LexerIfdefStack

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-parsehelpers-syntaxerror.html b/docs/reference/fsharp-compiler-parsehelpers-syntaxerror.html deleted file mode 100644 index 0fba31e931..0000000000 --- a/docs/reference/fsharp-compiler-parsehelpers-syntaxerror.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - SyntaxError - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SyntaxError

-

- - Namespace: FSharp.Compiler
- Parent Module: ParseHelpers
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

The error raised by the parseerrorrich function, which is called by the parser engine -when a syntax error occurs. The first object is the ParseErrorContext which contains a dump of -information about the grammar at the point where the error occurred, e.g. what tokens -are valid to shift next at that point in the grammar. This information is processed in CompileOps.fs.

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: obj
-
-
- -
- - range - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-parsehelpers.html b/docs/reference/fsharp-compiler-parsehelpers.html deleted file mode 100644 index d6b1ac181b..0000000000 --- a/docs/reference/fsharp-compiler-parsehelpers.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - ParseHelpers - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParseHelpers

-

- Namespace: FSharp.Compiler
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- LexCont - - -
- LexerEndlineContinuation - -

Specifies how the 'endline' function in the lexer should continue after -it reaches end of line or eof. The options are to continue with 'token' function -or to continue with 'skip' function.

- - -
- LexerIfdefExpression - - -
- LexerIfdefStack - - -
- LexerIfdefStackEntries - - -
- LexerIfdefStackEntry - - -
- LexerWhitespaceContinuation - -

The parser defines a number of tokens for whitespace and -comments eliminated by the lexer. These carry a specification of -a continuation for the lexer for continued processing after we've dealt with -the whitespace.

- - -
- SyntaxError - -

The error raised by the parseerrorrich function, which is called by the parser engine -when a syntax error occurs. The first object is the ParseErrorContext which contains a dump of -information about the grammar at the point where the error occurred, e.g. what tokens -are valid to shift next at that point in the grammar. This information is processed in CompileOps.fs.

- - -
- - - - - - - - - - -
ModuleDescription
- LexbufLocalXmlDocStore - -

XmlDoc F# lexer/parser state, held in the BufferLocalStore for the lexer. -This is the only use of the lexer BufferLocalStore in the codebase.

- - -
- -
- -

Functions and values

- - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - LexerIfdefEval lookup _arg1 - -
- Signature: lookup:(string -> bool) -> _arg1:LexerIfdefExpression -> bool
-
-
- -
- - ParseAssemblyCodeInstructions s m - -
- Signature: s:string -> m:range -> ILInstr array
-
-
- -
- - ParseAssemblyCodeType s m - -
- Signature: s:string -> m:range -> ILType
-
-
-

Helper for parsing the inline IL fragments.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-partiallongname.html b/docs/reference/fsharp-compiler-partiallongname.html deleted file mode 100644 index 32a301aed2..0000000000 --- a/docs/reference/fsharp-compiler-partiallongname.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - PartialLongName - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PartialLongName

-

- - Namespace: FSharp.Compiler
-

-
-

Qualified long name.

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - EndColumn - -
- Signature: int
-
-
-

The column number at the end of full partial name.

- - -
- - LastDotPos - -
- Signature: int option
-
-
-

Position of the last dot.

- - -
- - PartialIdent - -
- Signature: string
-
-
-

Last part of long ident.

- - -
- - QualifyingIdents - -
- Signature: string list
-
-
-

Qualifying idents, prior to the last dot, not including the last part.

- - -
-

Static members

- - - - - - - - - - -
Static memberDescription
- - PartialLongName.Empty(endColumn) - -
- Signature: endColumn:int -> PartialLongName
-
-
-

Empty partial long name.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-prettynaming-activepatterninfo.html b/docs/reference/fsharp-compiler-prettynaming-activepatterninfo.html deleted file mode 100644 index 2dfa988628..0000000000 --- a/docs/reference/fsharp-compiler-prettynaming-activepatterninfo.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - ActivePatternInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ActivePatternInfo

-

- - Namespace: FSharp.Compiler
- Parent Module: PrettyNaming
-

-
-
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - APInfo(bool,(string * range) list,range) - -
- Signature: bool * (string * range) list * range
-
-
- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.ActiveTags - -
- Signature: string list
-
-
- -

CompiledName: get_ActiveTags

-
- - x.ActiveTagsWithRanges - -
- Signature: (string * range) list
-
-
- -

CompiledName: get_ActiveTagsWithRanges

-
- - x.IsTotal - -
- Signature: bool
-
-
- -

CompiledName: get_IsTotal

-
- - x.Range - -
- Signature: range
-
-
- -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-prettynaming-customoperations.html b/docs/reference/fsharp-compiler-prettynaming-customoperations.html deleted file mode 100644 index 7fa52d7be2..0000000000 --- a/docs/reference/fsharp-compiler-prettynaming-customoperations.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - CustomOperations - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

CustomOperations

-

- Namespace: FSharp.Compiler
- Parent Module: PrettyNaming - - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - CustomOperations.Into - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-prettynaming-fsharplib.html b/docs/reference/fsharp-compiler-prettynaming-fsharplib.html deleted file mode 100644 index 04c5bc8469..0000000000 --- a/docs/reference/fsharp-compiler-prettynaming-fsharplib.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - FSharpLib - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpLib

-

- Namespace: FSharp.Compiler
- Parent Module: PrettyNaming - - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - FSharpLib.Core - -
- Signature: string
-
-
- -
- - FSharpLib.CorePath - -
- Signature: string list
-
-
- -
- - FSharpLib.Root - -
- Signature: string
-
-
- -
- - FSharpLib.RootPath - -
- Signature: string list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-prettynaming-invalidmangledstaticarg.html b/docs/reference/fsharp-compiler-prettynaming-invalidmangledstaticarg.html deleted file mode 100644 index 15cee7b2dc..0000000000 --- a/docs/reference/fsharp-compiler-prettynaming-invalidmangledstaticarg.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - InvalidMangledStaticArg - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

InvalidMangledStaticArg

-

- - Namespace: FSharp.Compiler
- Parent Module: PrettyNaming
-

-
-
-

Record Fields

- - - - - - - - - - -
Record FieldDescription
- - Data0 - -
- Signature: string
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-prettynaming-namearitypair.html b/docs/reference/fsharp-compiler-prettynaming-namearitypair.html deleted file mode 100644 index 4b07360c79..0000000000 --- a/docs/reference/fsharp-compiler-prettynaming-namearitypair.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - NameArityPair - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NameArityPair

-

- - Namespace: FSharp.Compiler
- Parent Module: PrettyNaming
-

-
-
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - NameArityPair(string,int) - -
- Signature: string * int
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-prettynaming.html b/docs/reference/fsharp-compiler-prettynaming.html deleted file mode 100644 index fe7a48dc6a..0000000000 --- a/docs/reference/fsharp-compiler-prettynaming.html +++ /dev/null @@ -1,982 +0,0 @@ - - - - - PrettyNaming - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PrettyNaming

-

- Namespace: FSharp.Compiler
-

-
-

Some general F# utilities for mangling / unmangling / manipulating names. -Anything to do with special names of identifiers and other lexical rules

- -
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - -
TypeDescription
- ActivePatternInfo - - -
- InvalidMangledStaticArg - - -
- NameArityPair - - -
- - - - - - - - - - - - - - -
ModuleDescription
- CustomOperations - - -
- FSharpLib - - -
- -
- -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - ActivePatternInfoOfValName nm m - -
- Signature: nm:string -> m:range -> ActivePatternInfo option
-
-
- -
- - ChopPropertyName(s) - -
- Signature: s:string -> string
-
-
-

Try to chop "get" or "set" from a string. -If the string does not start with "get" or "set", this function raises an exception.

- - -
- - CompileOpName - -
- Signature: string -> string
-
-
-

Compiles an operator into a mangled operator name. -For example, "!%" becomes "op_DereferencePercent". -This function accepts both built-in and custom operators.

- - -
- - CompilerGeneratedName(nm) - -
- Signature: nm:string -> string
-
-
- -
- - CompilerGeneratedNameSuffix(...) - -
- Signature: basicName:string -> suffix:string -> string
-
-
- -
- - computeMangledNameWithoutDefaultArgValues(...) - -
- Signature: (nm:string * staticArgs:obj [] * defaultArgValues:(string * string option) []) -> string
-
-
-

Mangle the static parameters for a provided type or method

- - -
- - DecodeGenericTypeName pos mangledName - -
- Signature: pos:int -> mangledName:string -> NameArityPair
-
-
- -
- - DecompileOpName - -
- Signature: string -> string
-
-
-

Decompiles a mangled operator name back into an operator. -For example, "op_DereferencePercent" becomes "!%". -This function accepts mangled names for both built-in and custom operators.

- - -
- - DemangleGenericTypeName(mangledName) - -
- Signature: mangledName:string -> string
-
-
- -
- - DemangleGenericTypeNameWithPos(...) - -
- Signature: pos:int -> mangledName:string -> string
-
-
- -
- - DemangleOperatorName(nm) - -
- Signature: nm:string -> string
-
-
- -
- - DemangleOperatorNameAsLayout(...) - -
- Signature: nonOpTagged:(string -> 'a) -> nm:string -> Layout
- Type parameters: 'a
-
- -
- - demangleProvidedTypeName(...) - -
- Signature: typeLogicalName:string -> string * (string * string) []
-
-
-

Demangle the static parameters

- - -
- - FSharpModuleSuffix - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - FSharpOptimizationDataResourceName - -
- Signature: string
-
-
- -
- - FSharpOptimizationDataResourceName2 - -
- Signature: string
-
-
- -
- - FSharpSignatureDataResourceName - -
- Signature: string
-
-
- -
- - FSharpSignatureDataResourceName2 - -
- Signature: string
-
-
- -
- - FsiDynamicModulePrefix - -
- Signature: string
-
-
-

The prefix of the names used for the fake namespace path added to all dynamic code entries in FSI.EXE

- - -
- - GetBasicNameOfPossibleCompilerGeneratedName(...) - -
- Signature: name:string -> string
-
-
- -
- - IllegalCharactersInTypeAndNamespaceNames - -
- Signature: char []
-
-
- -
- - IsActivePatternName(name) - -
- Signature: name:string -> bool
-
-
-

Determines if the specified name is a valid name for an active pattern.

- - -
- - IsCompilerGeneratedName(nm) - -
- Signature: nm:string -> bool
-
-
- -
- - IsIdentifierFirstCharacter(c) - -
- Signature: c:char -> bool
-
-
-

The characters that are allowed to be the first character of an identifier.

- - -
- - IsIdentifierPartCharacter(c) - -
- Signature: c:char -> bool
-
-
-

The characters that are allowed to be in an identifier.

- - -
- - IsInfixOperator - -
- Signature: string -> bool
-
-
- -
- - IsLongIdentifierPartCharacter(c) - -
- Signature: c:char -> bool
-
-
-

Is this character a part of a long identifier?

- - -
- - IsMangledOpName(n) - -
- Signature: n:string -> bool
-
-
- -
- - IsOperatorName(name) - -
- Signature: name:string -> bool
-
-
-

Returns true if given string is an operator display name, e.g. ( |>> )

- - -
- - IsOperatorOrBacktickedName(name) - -
- Signature: name:string -> bool
-
-
-

Returns true if given string is an operator or double backticked name, e.g. ( |>> ) or ( long identifier ). -(where ( long identifier ) is the display name for long identifier).

- - -
- - IsPrefixOperator(s) - -
- Signature: s:string -> bool
-
-
- -
- - IsPunctuation(s) - -
- Signature: s:string -> bool
-
-
- -
- - IsTernaryOperator(s) - -
- Signature: s:string -> bool
-
-
- -
- - isTildeOnlyString(s) - -
- Signature: s:string -> bool
-
-
- -
- - IsValidPrefixOperatorDefinitionName(s) - -
- Signature: s:string -> bool
-
-
- -
- - IsValidPrefixOperatorUse(s) - -
- Signature: s:string -> bool
-
-
- -
- - MangledGlobalName - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - mangleProvidedTypeName(...) - -
- Signature: (typeLogicalName:string * nonDefaultArgs:(string * string) []) -> string
-
-
-

Mangle the static parameters for a provided type or method

- - -
- - mkExceptionFieldName - -
- Signature: int -> string
-
-
-

Reuses generated exception field name objects for common field numbers

- - -
- - mkUnionCaseFieldName - -
- Signature: int -> int -> string
-
-
-

Reuses generated union case field name objects for common field numbers

- - -
- - opNameCons - -
- Signature: string
-
-
- -
- - opNameEquals - -
- Signature: string
-
-
- -
- - opNameEqualsNullable - -
- Signature: string
-
-
- -
- - opNameNil - -
- Signature: string
-
-
- -
- - opNameNullableEquals - -
- Signature: string
-
-
- -
- - opNameNullableEqualsNullable - -
- Signature: string
-
-
- -
- - opNamePrefix - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
-

Prefix for compiled (mangled) operator names.

- - -
- - outArgCompilerGeneratedName - -
- Signature: string
-
-
- -
- - parenGet - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - parenSet - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - qmark - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - qmarkSet - -
- Signature: string
- - Attributes:
-[<Literal>]
-
-
-
- -
- - SplitNamesForILPath(s) - -
- Signature: s:string -> string list
-
-
- -
- - TryChopPropertyName(s) - -
- Signature: s:string -> string option
-
-
-

Try to chop "get" or "set" from a string

- - -
- - TryDemangleGenericNameAndPos(n) - -
- Signature: n:string -> int voption
-
-
- -
- - unassignedTyparName - -
- Signature: string
-
-
- -
-

Active patterns

- - - - - - - - - - -
Active patternDescription
- - ( |Control|Equality|Relational|Indexer|FixedTypes|Other| )(...) - -
- Signature: opName:string -> Choice<unit,unit,unit,unit,unit,unit>
-
-
- -

CompiledName: |Control|Equality|Relational|Indexer|FixedTypes|Other|

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-quickparse.html b/docs/reference/fsharp-compiler-quickparse.html deleted file mode 100644 index ea14e17e73..0000000000 --- a/docs/reference/fsharp-compiler-quickparse.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - - QuickParse - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

QuickParse

-

- Namespace: FSharp.Compiler
-

-
-

Methods for cheaply and inaccurately parsing F#.

-

These methods are very old and are mostly to do with extracting "long identifier islands" -A.B.C -from F# source code, an approach taken from pre-F# VS samples for implementing intelliense.

-

This code should really no longer be needed since the language service has access to -parsed F# source code ASTs. However, the long identifiers are still passed back to GetDeclarations and friends in the -F# Compiler Service and it's annoyingly hard to remove their use completely.

-

In general it is unlikely much progress will be made by fixing this code - it will be better to -extract more information from the F# ASTs.

-

It's also surprising how hard even the job of getting long identifier islands can be. For example the code -below is inaccurate for long identifier chains involving ... identifiers. And there are special cases -for active pattern names and so on.

- -
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - CorrectIdentifierToken(...) - -
- Signature: tokenText:string -> tokenTag:int -> int
-
-
- -
- - GetCompleteIdentifierIsland(...) - -
- Signature: tolerateJustAfter:bool -> tokenText:string -> index:int -> (string * int * bool) option
-
-
-

Given a string and a position in that string, find an identifier as -expected by GotoDefinition. This will work when the cursor is -immediately before the identifier, within the identifier, or immediately -after the identifier.

-

'tolerateJustAfter' indicates that we tolerate being one character after the identifier, used -for goto-definition

-

In general, only identifiers composed from upper/lower letters and '.' are supported, but there -are a couple of explicitly handled exceptions to allow some common scenarios: -- When the name contains only letters and '|' symbol, it may be an active pattern, so we -treat it as a valid identifier - e.g. let ( |Identity| ) a = a -(but other identifiers that include '|' are not allowed - e.g. '||' operator) -- It searches for double tick () to see if the identifier could be something likea b``

-

REVIEW: Also support, e.g., operators, performing the necessary mangling. -(i.e., I would like that the name returned here can be passed as-is -(post .-chopping) to `GetDeclarationLocation.)

-

In addition, return the position where a . would go if we were making -a call to DeclItemsForNamesAtPosition for intellisense. This will -allow us to use find the correct qualified items rather than resorting -to the more expensive and less accurate environment lookup.

- - -
- - GetPartialLongName(lineStr, index) - -
- Signature: (lineStr:string * index:int) -> string list * string
-
-
-

Get the partial long name of the identifier to the left of index.

- - -
- - GetPartialLongNameEx(lineStr, index) - -
- Signature: (lineStr:string * index:int) -> PartialLongName
-
-
-

Get the partial long name of the identifier to the left of index. -For example, for System.DateTime.Now it returns PartialLongName ([|"System"; "DateTime"|], "Now", Some 32), where "32" pos of the last dot.

- - -
- - MagicalAdjustmentConstant - -
- Signature: int
-
-
-

Puts us after the last character.

- - -
- - TestMemberOrOverrideDeclaration(tokens) - -
- Signature: tokens:FSharpTokenInfo [] -> bool
-
-
-

Tests whether the user is typing something like "member x." or "override (comment) x."

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-range-fileindex.html b/docs/reference/fsharp-compiler-range-fileindex.html deleted file mode 100644 index 6cdc7893ec..0000000000 --- a/docs/reference/fsharp-compiler-range-fileindex.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - FileIndex - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FileIndex

-

- - Namespace: FSharp.Compiler
- Parent Module: Range
-

-
-

An index into a global tables of filenames

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-range-line.html b/docs/reference/fsharp-compiler-range-line.html deleted file mode 100644 index 83ec93ee72..0000000000 --- a/docs/reference/fsharp-compiler-range-line.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - Line - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Line

-

- Namespace: FSharp.Compiler
- Parent Module: Range -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - -
Function or valueDescription
- - fromZ(arg1) - -
- Signature: Line0 -> int
-
-
-

Convert a line number from zero-based line counting (used by Visual Studio) to one-based line counting (used internally in the F# compiler and in F# error messages)

- - -
- - toZ(arg1) - -
- Signature: int -> Line0
-
-
-

Convert a line number from one-based line counting (used internally in the F# compiler and in F# error messages) to zero-based line counting (used by Visual Studio)

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-range-line0.html b/docs/reference/fsharp-compiler-range-line0.html deleted file mode 100644 index 71f8de50d8..0000000000 --- a/docs/reference/fsharp-compiler-range-line0.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - Line0 - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Line0

-

- - Namespace: FSharp.Compiler
- Parent Module: Range
-

-
-

Represents a line number when using zero-based line counting (used by Visual Studio)

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-range-pos-0.html b/docs/reference/fsharp-compiler-range-pos-0.html deleted file mode 100644 index 4146c24a4e..0000000000 --- a/docs/reference/fsharp-compiler-range-pos-0.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - Pos - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Pos

-

- Namespace: FSharp.Compiler
- Parent Module: Range -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - -
Function or valueDescription
- - fromZ line column - -
- Signature: line:Line0 -> column:int -> pos
-
-
-

Convert a position from zero-based line counting (used by Visual Studio) to one-based line counting (used internally in the F# compiler and in F# error messages)

- - -
- - toZ(arg1) - -
- Signature: pos -> Pos01
-
-
-

Convert a position from one-based line counting (used internally in the F# compiler and in F# error messages) to zero-based line counting (used by Visual Studio)

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-range-pos.html b/docs/reference/fsharp-compiler-range-pos.html deleted file mode 100644 index 6dbddc7415..0000000000 --- a/docs/reference/fsharp-compiler-range-pos.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - pos - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

pos

-

- - Namespace: FSharp.Compiler
- Parent Module: Range
- - Attributes:
-[<Struct>]
-[<CustomEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a position in a file

- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Column - -
- Signature: int
-
-
-

The column number for the position

- - -

CompiledName: get_Column

-
- - x.Encoding - -
- Signature: int64
-
-
-

The encoding of the position as a 64-bit integer

- - -

CompiledName: get_Encoding

-
- - x.Line - -
- Signature: int
-
-
-

The line number for the position

- - -

CompiledName: get_Line

-
-

Static members

- - - - - - - - - - - - - - -
Static memberDescription
- - pos.Decode(arg1) - -
- Signature: int64 -> pos
-
-
-

Decode a position fro a 64-bit integer

- - -
- - pos.EncodingSize - -
- Signature: int
-
-
-

The maximum number of bits needed to store an encoded position

- - -

CompiledName: get_EncodingSize

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-range-pos01.html b/docs/reference/fsharp-compiler-range-pos01.html deleted file mode 100644 index 30e48b6f2f..0000000000 --- a/docs/reference/fsharp-compiler-range-pos01.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - Pos01 - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Pos01

-

- - Namespace: FSharp.Compiler
- Parent Module: Range
-

-
-

Represents a position using zero-based line counting (used by Visual Studio)

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Item1 - -
- Signature: Line0
-
-
- -
- - x.Item2 - -
- Signature: int
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-range-range-0.html b/docs/reference/fsharp-compiler-range-range-0.html deleted file mode 100644 index 5670e0b0b9..0000000000 --- a/docs/reference/fsharp-compiler-range-range-0.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - Range - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Range

-

- Namespace: FSharp.Compiler
- Parent Module: Range -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - comparer - -
- Signature: IEqualityComparer<range>
-
-
-

Equality comparer for range.

- - -
- - toFileZ(arg1) - -
- Signature: range -> string * Range01
-
-
-

Convert a range from one-based line counting (used internally in the F# compiler and in F# error messages) to zero-based line counting (used by Visual Studio)

- - -
- - toZ(arg1) - -
- Signature: range -> Range01
-
-
-

Convert a range from one-based line counting (used internally in the F# compiler and in F# error messages) to zero-based line counting (used by Visual Studio)

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-range-range.html b/docs/reference/fsharp-compiler-range-range.html deleted file mode 100644 index 7c50c4cf70..0000000000 --- a/docs/reference/fsharp-compiler-range-range.html +++ /dev/null @@ -1,343 +0,0 @@ - - - - - range - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

range

-

- - Namespace: FSharp.Compiler
- Parent Module: Range
- - Attributes:
-[<Struct>]
-[<CustomEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a range within a known file

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.End - -
- Signature: pos
-
-
-

The end position of the range

- - -

CompiledName: get_End

-
- - x.EndColumn - -
- Signature: int
-
-
-

The column number for the end position of the range

- - -

CompiledName: get_EndColumn

-
- - x.EndLine - -
- Signature: int
-
-
-

The line number for the end position of the range

- - -

CompiledName: get_EndLine

-
- - x.EndRange - -
- Signature: range
-
-
-

The empty range that is located at the end position of the range

- - -

CompiledName: get_EndRange

-
- - x.FileIndex - -
- Signature: int
-
-
-

The file index for the range

- - -

CompiledName: get_FileIndex

-
- - x.FileName - -
- Signature: string
-
-
-

The file name for the file of the range

- - -

CompiledName: get_FileName

-
- - x.IsSynthetic - -
- Signature: bool
-
-
-

Synthetic marks ranges which are produced by intermediate compilation phases. This -bit signifies that the range covers something that should not be visible to language -service operations like dot-completion.

- - -

CompiledName: get_IsSynthetic

-
- - x.MakeSynthetic() - -
- Signature: unit -> range
-
-
-

Convert a range to be synthetic

- - -
- - x.Start - -
- Signature: pos
-
-
-

The start position of the range

- - -

CompiledName: get_Start

-
- - x.StartColumn - -
- Signature: int
-
-
-

The start column of the range

- - -

CompiledName: get_StartColumn

-
- - x.StartLine - -
- Signature: int
-
-
-

The start line of the range

- - -

CompiledName: get_StartLine

-
- - x.StartRange - -
- Signature: range
-
-
-

The empty range that is located at the start position of the range

- - -

CompiledName: get_StartRange

-
- - x.ToShortString() - -
- Signature: unit -> string
-
-
-

Convert a range to string

- - -
-

Static members

- - - - - - - - - - -
Static memberDescription
- - range.Zero - -
- Signature: range
-
-
-

The range where all values are zero

- - -

CompiledName: get_Zero

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-range-range01.html b/docs/reference/fsharp-compiler-range-range01.html deleted file mode 100644 index 5d0b0e82ba..0000000000 --- a/docs/reference/fsharp-compiler-range-range01.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - Range01 - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Range01

-

- - Namespace: FSharp.Compiler
- Parent Module: Range
-

-
-

Represents a range using zero-based line counting (used by Visual Studio)

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Item1 - -
- Signature: Pos01
-
-
- -
- - x.Item2 - -
- Signature: Pos01
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-range.html b/docs/reference/fsharp-compiler-range.html deleted file mode 100644 index 3dacb66ed9..0000000000 --- a/docs/reference/fsharp-compiler-range.html +++ /dev/null @@ -1,632 +0,0 @@ - - - - - Range - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Range

-

- Namespace: FSharp.Compiler
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- FileIndex - -

An index into a global tables of filenames

- - -
- Line0 - -

Represents a line number when using zero-based line counting (used by Visual Studio)

- - -
- Pos01 - -

Represents a position using zero-based line counting (used by Visual Studio)

- - -
- Range01 - -

Represents a range using zero-based line counting (used by Visual Studio)

- - -
- pos - -

Represents a position in a file

- - -
- range - -

Represents a range within a known file

- - -
- - - - - - - - - - - - - - - - - - -
ModuleDescription
- Line - - -
- Pos - - -
- Range - - -
- -
- -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - commandLineArgsFileName - -
- Signature: string
-
-
- -
- - equals arg1 arg2 - -
- Signature: range -> range -> bool
-
-
- -
- - fileIndexOfFile(filePath) - -
- Signature: filePath:string -> FileIndex
-
-
-

Convert a file path to an index

- - -
- - fileOfFileIndex(arg1) - -
- Signature: FileIndex -> string
-
-
-

Convert an index into a file path

- - -
- - mkFileIndexRange arg1 arg2 arg3 - -
- Signature: FileIndex -> pos -> pos -> range
-
-
-

This view of range marks uses file indexes explicitly

- - -
- - mkPos line column - -
- Signature: line:int -> column:int -> pos
-
-
-

Create a position for the given line and column

- - -
- - mkRange arg1 arg2 arg3 - -
- Signature: string -> pos -> pos -> range
-
-
-

This view hides the use of file indexes and just uses filenames

- - -
- - outputPos arg1 arg2 - -
- Signature: TextWriter -> pos -> unit
-
-
-

Output a position

- - -
- - outputRange arg1 arg2 - -
- Signature: TextWriter -> range -> unit
-
-
-

Output a range

- - -
- - pos0 - -
- Signature: pos
-
-
-

The zero position

- - -
- - posEq arg1 arg2 - -
- Signature: pos -> pos -> bool
-
-
-

Compare positions for equality

- - -
- - posGeq arg1 arg2 - -
- Signature: pos -> pos -> bool
-
-
-

Compare positions for greater-than-or-equal-to

- - -
- - posGt arg1 arg2 - -
- Signature: pos -> pos -> bool
-
-
-

Compare positions for greater-than

- - -
- - posLt arg1 arg2 - -
- Signature: pos -> pos -> bool
-
-
-

Compare positions for less-than

- - -
- - posOrder - -
- Signature: IComparer<pos>
-
-
-

Ordering on positions

- - -
- - range0 - -
- Signature: range
-
-
-

The zero range

- - -
- - rangeBeforePos arg1 arg2 - -
- Signature: range -> pos -> bool
-
-
-

Test to see if a range occurs fully before a position

- - -
- - rangeCmdArgs - -
- Signature: range
-
-
-

A range associated with a dummy file for the command line arguments

- - -
- - rangeContainsPos arg1 arg2 - -
- Signature: range -> pos -> bool
-
-
-

Test to see if a range contains a position

- - -
- - rangeContainsRange arg1 arg2 - -
- Signature: range -> range -> bool
-
-
-

Test to see if one range contains another range

- - -
- - rangeN arg1 arg2 - -
- Signature: string -> int -> range
-
-
-

Make a dummy range for a file

- - -
- - rangeOrder - -
- Signature: IComparer<range>
-
-
-

not a total order, but enough to sort on ranges

- - -
- - rangeStartup - -
- Signature: range
-
-
-

A range associated with a dummy file called "startup"

- - -
- - startupFileName - -
- Signature: string
-
-
- -
- - stringOfPos(arg1) - -
- Signature: pos -> string
-
-
-

Convert a position to a string

- - -
- - stringOfRange(arg1) - -
- Signature: range -> string
-
-
-

Convert a range to a string

- - -
- - trimRangeToLine(arg1) - -
- Signature: range -> range
-
-
-

Reduce a range so it only covers a line

- - -
- - unionRanges arg1 arg2 - -
- Signature: range -> range -> range
-
-
-

Union two ranges, taking their first occurring start position and last occurring end position

- - -
- - unknownFileName - -
- Signature: string
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-referenceresolver-resolutionenvironment.html b/docs/reference/fsharp-compiler-referenceresolver-resolutionenvironment.html deleted file mode 100644 index fb4d711b22..0000000000 --- a/docs/reference/fsharp-compiler-referenceresolver-resolutionenvironment.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - ResolutionEnvironment - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ResolutionEnvironment

-

- - Namespace: FSharp.Compiler
- Parent Module: ReferenceResolver
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - CompilationAndEvaluation - -
- Signature:
-
-
-

Indicates a script or source being dynamically compiled and executed. Uses implementation assemblies.

- - -
- - EditingOrCompilation(isEditing) - -
- Signature: bool
-
-
-

Indicates a script or source being edited or compiled. Uses reference assemblies (not implementation assemblies).

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-referenceresolver-resolvedfile.html b/docs/reference/fsharp-compiler-referenceresolver-resolvedfile.html deleted file mode 100644 index 9413fc455f..0000000000 --- a/docs/reference/fsharp-compiler-referenceresolver-resolvedfile.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - ResolvedFile - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ResolvedFile

-

- - Namespace: FSharp.Compiler
- Parent Module: ReferenceResolver
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - baggage - -
- Signature: string
-
-
-

Round-tripped baggage

- - -
- - itemSpec - -
- Signature: string
-
-
-

Item specification.

- - -
- - prepareToolTip - -
- Signature: string * string -> string
-
-
-

Prepare textual information about where the assembly was resolved from, used for tooltip output

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-referenceresolver-resolver.html b/docs/reference/fsharp-compiler-referenceresolver-resolver.html deleted file mode 100644 index 7298a42495..0000000000 --- a/docs/reference/fsharp-compiler-referenceresolver-resolver.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - Resolver - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Resolver

-

- - Namespace: FSharp.Compiler
- Parent Module: ReferenceResolver
- - Attributes:
-[<AllowNullLiteral>]
- -
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.DotNetFrameworkReferenceAssembliesRootDirectory(...) - -
- Signature: string
- Modifiers: abstract
-
-
-

Get the Reference Assemblies directory for the .NET Framework (on Windows) -This is added to the default resolution path for -design-time compilations.

- - -

CompiledName: get_DotNetFrameworkReferenceAssembliesRootDirectory

-
- - x.HighestInstalledNetFrameworkVersion() - -
- Signature: unit -> string
- Modifiers: abstract
-
-
-

Get the "v4.5.1"-style moniker for the highest installed .NET Framework version. -This is the value passed back to Resolve if no explicit "mscorlib" has been given.

-

Note: If an explicit "mscorlib" is given, then --noframework is being used, and the whole ReferenceResolver logic is essentially -unused. However in the future an option may be added to allow an explicit specification of -a .NET Framework version to use for scripts.

- - -
- - x.Resolve(...) - -
- Signature: (resolutionEnvironment:ResolutionEnvironment * references:(string * string) [] * targetFrameworkVersion:string * targetFrameworkDirectories:string list * targetProcessorArchitecture:string * fsharpCoreDir:string * explicitIncludeDirs:string list * implicitIncludeDir:string * logMessage:(string -> unit) * logDiagnostic:(bool -> string -> string -> unit)) -> ResolvedFile []
- Modifiers: abstract
-
-
-

Perform assembly resolution on the given references under the given conditions

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-referenceresolver.html b/docs/reference/fsharp-compiler-referenceresolver.html deleted file mode 100644 index 539c3f0d72..0000000000 --- a/docs/reference/fsharp-compiler-referenceresolver.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - ReferenceResolver - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ReferenceResolver

-

- Namespace: FSharp.Compiler
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - -
TypeDescription
- ResolutionEnvironment - - -
- ResolvedFile - - -
- Resolver - - -
- -
- - -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-assemblycontentprovider.html b/docs/reference/fsharp-compiler-sourcecodeservices-assemblycontentprovider.html deleted file mode 100644 index 14969c7a42..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-assemblycontentprovider.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - AssemblyContentProvider - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

AssemblyContentProvider

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Provides assembly content.

- -
- - - -

Functions and values

- - - - - - - - - - - - - - -
Function or valueDescription
- - getAssemblyContent(...) - -
- Signature: withCache:((IAssemblyContentCache -> AssemblySymbol list) -> AssemblySymbol list) -> contentType:AssemblyContentType -> fileName:string option -> assemblies:FSharpAssembly list -> AssemblySymbol list
-
-
-

Returns (possibly cached) assembly content.

- - -
- - getAssemblySignatureContent arg1 arg2 - -
- Signature: AssemblyContentType -> FSharpAssemblySignature -> AssemblySymbol list
-
-
-

Given a FSharpAssemblySignature, returns assembly content.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-assemblycontenttype.html b/docs/reference/fsharp-compiler-sourcecodeservices-assemblycontenttype.html deleted file mode 100644 index b6d5047b5a..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-assemblycontenttype.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - AssemblyContentType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

AssemblyContentType

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Assembly content type.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Full - -
- Signature:
-
-
-

All assembly content.

- - -
- - Public - -
- Signature:
-
-
-

Public assembly content only.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-assemblypath.html b/docs/reference/fsharp-compiler-sourcecodeservices-assemblypath.html deleted file mode 100644 index a2c57a65d5..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-assemblypath.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - AssemblyPath - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

AssemblyPath

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Assembly path.

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Chars(arg1) - -
- Signature: int -> char
-
-
- -
- - x.Length - -
- Signature: int
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-assemblysymbol.html b/docs/reference/fsharp-compiler-sourcecodeservices-assemblysymbol.html deleted file mode 100644 index 439902eba0..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-assemblysymbol.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - - AssemblySymbol - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

AssemblySymbol

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<NoComparison>]
-[<NoEquality>]
- -
-

-
-

Represents type, module, member, function or value in a compiled assembly.

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - AutoOpenParent - -
- Signature: Idents option
-
-
-

Parent module that has AutoOpen attribute.

- - -
- - CleanedIdents - -
- Signature: Idents
-
-
-

Entity name parts with removed module suffixes (Ns.M1Module.M2Module.M3.entity -> Ns.M1.M2.M3.entity) -and replaced compiled names with display names (FSharpEntity.DisplayName, FSharpValueOrFunction.DisplayName). -Note: all parts are cleaned, not the last one.

- - -
- - FullName - -
- Signature: string
-
-
-

Full entity name as it's seen in compiled code (raw FSharpEntity.FullName, FSharpValueOrFunction.FullName).

- - -
- - Kind - -
- Signature: LookupType -> EntityKind
-
-
-

Function that returns EntityKind based of given LookupKind.

- - -
- - Namespace - -
- Signature: Idents option
-
-
-

FSharpEntity.Namespace.

- - -
- - NearestRequireQualifiedAccessParent - -
- Signature: Idents option
-
-
-

The most narrative parent module that has RequireQualifiedAccess attribute.

- - -
- - Symbol - -
- Signature: FSharpSymbol
-
-
- -
- - TopRequireQualifiedAccessParent - -
- Signature: Idents option
-
-
-

Parent module that has the largest scope and has RequireQualifiedAccess attribute.

- - -
- - UnresolvedSymbol - -
- Signature: UnresolvedSymbol
-
-
-

Cache display name and namespace, used for completion.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-asttraversal-astvisitorbase-1.html b/docs/reference/fsharp-compiler-sourcecodeservices-asttraversal-astvisitorbase-1.html deleted file mode 100644 index b10c784a1a..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-asttraversal-astvisitorbase-1.html +++ /dev/null @@ -1,390 +0,0 @@ - - - - - AstVisitorBase<'T> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

AstVisitorBase<'T>

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: AstTraversal
- - Attributes:
-[<AbstractClass>]
- -
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> AstVisitorBase<'T>
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.VisitBinding(arg1, arg2) - -
- Signature: ((SynBinding -> 'T option) * SynBinding) -> 'T option
- Modifiers: abstract
-
-
-

VisitBinding allows overriding binding behavior (note: by default it would defaultTraverse expression)

- - -
- - x.VisitComponentInfo(arg1) - -
- Signature: SynComponentInfo -> 'T option
- Modifiers: abstract
-
-
-

VisitComponentInfo allows overriding behavior when visiting type component infos

- - -
- - x.VisitExpr(arg1, arg2, arg3, arg4) - -
- Signature: (TraversePath * (SynExpr -> 'T option) * (SynExpr -> 'T option) * SynExpr) -> 'T option
- Modifiers: abstract
-
-
-

VisitExpr(path, traverseSynExpr, defaultTraverse, expr) -controls the behavior when a SynExpr is reached; it can just do -defaultTraverse(expr) if you have no special logic for this node, and want the default processing to pick which sub-node to dive deeper into -or can inject non-default behavior, which might incorporate: -traverseSynExpr(subExpr) to recurse deeper on some particular sub-expression based on your own logic -path helps to track AST nodes that were passed during traversal

- - -
- - x.VisitHashDirective(arg1) - -
- Signature: range -> 'T option
- Modifiers: abstract
-
-
-

VisitHashDirective allows overriding behavior when visiting hash directives in FSX scripts, like #r, #load and #I.

- - -
- - x.VisitImplicitInherit(...) - -
- Signature: ((SynExpr -> 'T option) * SynType * SynExpr * range) -> 'T option
- Modifiers: abstract
-
-
-

VisitImplicitInherit(defaultTraverse,ty,expr,m), defaults to just visiting expr

- - -
- - x.VisitInheritSynMemberDefn(...) - -
- Signature: (SynComponentInfo * SynTypeDefnKind * SynType * SynMemberDefns * range) -> 'T option
- Modifiers: abstract
-
-
-

VisitInheritSynMemberDefn allows overriding inherit behavior (by default do nothing)

- - -
- - x.VisitInterfaceSynMemberDefnType(arg1) - -
- Signature: SynType -> 'T option
- Modifiers: abstract
-
-
-

VisitInterfaceSynMemberDefnType allows overriding behavior for visiting interface member in types (by default - do nothing)

- - -
- - x.VisitLetOrUse(arg1, arg2, arg3, arg4) - -
- Signature: (TraversePath * (SynBinding -> 'T option) * SynBinding list * range) -> 'T option
- Modifiers: abstract
-
-
-

VisitLetOrUse allows overriding behavior when visiting module or local let or use bindings

- - -
- - x.VisitMatchClause(arg1, arg2) - -
- Signature: ((SynMatchClause -> 'T option) * SynMatchClause) -> 'T option
- Modifiers: abstract
-
-
-

VisitMatchClause allows overriding clause behavior (note: by default it would defaultTraverse expression)

- - -
- - x.VisitModuleDecl(arg1, arg2) - -
- Signature: ((SynModuleDecl -> 'T option) * SynModuleDecl) -> 'T option
- Modifiers: abstract
-
-
-

VisitModuleDecl allows overriding module declaration behavior

- - -
- - x.VisitModuleOrNamespace(arg1) - -
- Signature: SynModuleOrNamespace -> 'T option
- Modifiers: abstract
-
-
-

VisitModuleOrNamespace allows overriding behavior when visiting module or namespaces

- - -
- - x.VisitPat(arg1, arg2) - -
- Signature: ((SynPat -> 'T option) * SynPat) -> 'T option
- Modifiers: abstract
-
-
-

VisitPat allows overriding behavior when visiting patterns

- - -
- - x.VisitRecordField(arg1, arg2, arg3) - -
- Signature: (TraversePath * SynExpr option * LongIdentWithDots option) -> 'T option
- Modifiers: abstract
-
-
-

VisitRecordField allows overriding behavior when visiting l.h.s. of constructed record instances

- - -
- - x.VisitSimplePats(arg1) - -
- Signature: (SynSimplePat list) -> 'T option
- Modifiers: abstract
-
-
-

VisitType allows overriding behavior when visiting simple pats

- - -
- - x.VisitType(arg1, arg2) - -
- Signature: ((SynType -> 'T option) * SynType) -> 'T option
- Modifiers: abstract
-
-
-

VisitType allows overriding behavior when visiting type hints (x: ..., etc.)

- - -
- - x.VisitTypeAbbrev(arg1, arg2) - -
- Signature: (SynType * range) -> 'T option
- Modifiers: abstract
-
-
-

VisitTypeAbbrev(ty,m), defaults to ignoring this leaf of the AST

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-asttraversal-traversepath.html b/docs/reference/fsharp-compiler-sourcecodeservices-asttraversal-traversepath.html deleted file mode 100644 index 5639ed5232..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-asttraversal-traversepath.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - TraversePath - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

TraversePath

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: AstTraversal
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Head - -
- Signature: TraverseStep
-
-
- -

CompiledName: get_Head

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [index] - -
- Signature: index:int -> TraverseStep
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
-
-
- -

CompiledName: get_Length

-
- - x.Tail - -
- Signature: TraverseStep list
-
-
- -

CompiledName: get_Tail

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - List.Empty - -
- Signature: TraverseStep list
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-asttraversal-traversestep.html b/docs/reference/fsharp-compiler-sourcecodeservices-asttraversal-traversestep.html deleted file mode 100644 index 787bc7e7bf..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-asttraversal-traversestep.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - TraverseStep - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

TraverseStep

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: AstTraversal
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

used to track route during traversal AST

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Binding(SynBinding) - -
- Signature: SynBinding
-
-
- -
- - Expr(SynExpr) - -
- Signature: SynExpr
-
-
- -
- - MatchClause(SynMatchClause) - -
- Signature: SynMatchClause
-
-
- -
- - MemberDefn(SynMemberDefn) - -
- Signature: SynMemberDefn
-
-
- -
- - Module(SynModuleDecl) - -
- Signature: SynModuleDecl
-
-
- -
- - ModuleOrNamespace(SynModuleOrNamespace) - -
- Signature: SynModuleOrNamespace
-
-
- -
- - TypeDefn(SynTypeDefn) - -
- Signature: SynTypeDefn
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-asttraversal.html b/docs/reference/fsharp-compiler-sourcecodeservices-asttraversal.html deleted file mode 100644 index 049365f127..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-asttraversal.html +++ /dev/null @@ -1,222 +0,0 @@ - - - - - AstTraversal - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

AstTraversal

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

A range of utility functions to assist with traversing an AST

- -
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - -
TypeDescription
- AstVisitorBase<'T> - - -
- TraversePath - - -
- TraverseStep - -

used to track route during traversal AST

- - -
- -
- -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - dive node range project - -
- Signature: node:'d -> range:'e -> project:('d -> 'f) -> 'e * (unit -> 'f)
- Type parameters: 'd, 'e, 'f
-
- -
- - pick(...) - -
- Signature: pos:pos -> outerRange:range -> _debugObj:obj -> diveResults:(range * (unit -> 'c option)) list -> 'c option
- Type parameters: 'c
-
- -
- - rangeContainsPosEdgesExclusive m1 p - -
- Signature: m1:range -> p:pos -> bool
-
-
- -
- - rangeContainsPosLeftEdgeExclusiveAndRightEdgeInclusive(...) - -
- Signature: m1:range -> p:pos -> bool
-
-
- -
- - rangeContainsPosLeftEdgeInclusive m1 p - -
- Signature: m1:range -> p:pos -> bool
-
-
- -
- - Traverse(pos, parseTree, visitor) - -
- Signature: (pos:pos * parseTree:ParsedInput * visitor:AstVisitorBase<'T>) -> 'T option
- Type parameters: 'T
-
-

traverse an implementation file walking all the way down to SynExpr or TypeAbbrev at a particular location

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-basicpatterns.html b/docs/reference/fsharp-compiler-sourcecodeservices-basicpatterns.html deleted file mode 100644 index 67e765748b..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-basicpatterns.html +++ /dev/null @@ -1,829 +0,0 @@ - - - - - BasicPatterns - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

BasicPatterns

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

A collection of active patterns to analyze expressions

- -
- - - -

Active patterns

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Active patternDescription
- - ( |AddressOf|_| )(arg1) - -
- Signature: FSharpExpr -> FSharpExpr option
-
-
-

Matches expressions which take the address of a location

- - -

CompiledName: |AddressOf|_|

-
- - ( |AddressSet|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpExpr) option
-
-
-

Matches expressions which set the contents of an address

- - -

CompiledName: |AddressSet|_|

-
- - ( |AnonRecordGet|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpType * int) option
-
-
-

Matches expressions getting a field from an anonymous record. The integer represents the -index into the sorted fields of the anonymous record.

- - -

CompiledName: |AnonRecordGet|_|

-
- - ( |Application|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpType list * FSharpExpr list) option
-
-
-

Matches expressions which are the application of function values

- - -

CompiledName: |Application|_|

-
- - ( |BaseValue|_| )(arg1) - -
- Signature: FSharpExpr -> FSharpType option
-
-
-

Matches expressions which are uses of the 'base' value

- - -

CompiledName: |BaseValue|_|

-
- - ( |Call|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr option * FSharpMemberOrFunctionOrValue * FSharpType list * FSharpType list * FSharpExpr list) option
-
-
-

Matches expressions which are calls to members or module-defined functions. When calling curried functions and members the -arguments are collapsed to a single collection of arguments, as done in the compiled version of these.

- - -

CompiledName: |Call|_|

-
- - ( |Coerce|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpType * FSharpExpr) option
-
-
-

Matches expressions which coerce the type of a value

- - -

CompiledName: |Coerce|_|

-
- - ( |Const|_| )(arg1) - -
- Signature: FSharpExpr -> (obj * FSharpType) option
-
-
-

Matches constant expressions, including signed and unsigned integers, strings, characters, booleans, arrays -of bytes and arrays of unit16.

- - -

CompiledName: |Const|_|

-
- - ( |DecisionTree|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * (FSharpMemberOrFunctionOrValue list * FSharpExpr) list) option
-
-
-

Matches expressions with a decision expression, each branch of which ends in DecisionTreeSuccess passing control and values to one of the targets.

- - -

CompiledName: |DecisionTree|_|

-
- - ( |DecisionTreeSuccess|_| )(arg1) - -
- Signature: FSharpExpr -> (int * FSharpExpr list) option
-
-
-

Special expressions at the end of a conditional decision structure in the decision expression node of a DecisionTree . -The given expressions are passed as values to the decision tree target.

- - -

CompiledName: |DecisionTreeSuccess|_|

-
- - ( |DefaultValue|_| )(arg1) - -
- Signature: FSharpExpr -> FSharpType option
-
-
-

Matches default-value expressions, including null expressions

- - -

CompiledName: |DefaultValue|_|

-
- - ( |FastIntegerForLoop|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpExpr * FSharpExpr * bool) option
-
-
-

Matches fast-integer loops (up or down)

- - -

CompiledName: |FastIntegerForLoop|_|

-
- - ( |FSharpFieldGet|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr option * FSharpType * FSharpField) option
-
-
-

Matches expressions which get a field from a record or class

- - -

CompiledName: |FSharpFieldGet|_|

-
- - ( |FSharpFieldSet|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr option * FSharpType * FSharpField * FSharpExpr) option
-
-
-

Matches expressions which set a field in a record or class

- - -

CompiledName: |FSharpFieldSet|_|

-
- - ( |IfThenElse|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpExpr * FSharpExpr) option
-
-
-

Matches expressions which are conditionals

- - -

CompiledName: |IfThenElse|_|

-
- - ( |ILAsm|_| )(arg1) - -
- Signature: FSharpExpr -> (string * FSharpType list * FSharpExpr list) option
-
-
-

Matches expressions which are IL assembly code

- - -

CompiledName: |ILAsm|_|

-
- - ( |ILFieldGet|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr option * FSharpType * string) option
-
-
-

Matches expressions which fetch a field from a .NET type

- - -

CompiledName: |ILFieldGet|_|

-
- - ( |ILFieldSet|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr option * FSharpType * string * FSharpExpr) option
-
-
-

Matches expressions which set a field in a .NET type

- - -

CompiledName: |ILFieldSet|_|

-
- - ( |Lambda|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpMemberOrFunctionOrValue * FSharpExpr) option
-
-
-

Matches expressions which are lambda abstractions

- - -

CompiledName: |Lambda|_|

-
- - ( |Let|_| )(arg1) - -
- Signature: FSharpExpr -> ((FSharpMemberOrFunctionOrValue * FSharpExpr) * FSharpExpr) option
-
-
-

Matches expressions which are let definitions

- - -

CompiledName: |Let|_|

-
- - ( |LetRec|_| )(arg1) - -
- Signature: FSharpExpr -> ((FSharpMemberOrFunctionOrValue * FSharpExpr) list * FSharpExpr) option
-
-
-

Matches expressions which are let-rec definitions

- - -

CompiledName: |LetRec|_|

-
- - ( |NewAnonRecord|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpType * FSharpExpr list) option
-
-
-

Matches anonymous record expressions

- - -

CompiledName: |NewAnonRecord|_|

-
- - ( |NewArray|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpType * FSharpExpr list) option
-
-
-

Matches array expressions

- - -

CompiledName: |NewArray|_|

-
- - ( |NewDelegate|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpType * FSharpExpr) option
-
-
-

Matches expressions which create an instance of a delegate type

- - -

CompiledName: |NewDelegate|_|

-
- - ( |NewObject|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpMemberOrFunctionOrValue * FSharpType list * FSharpExpr list) option
-
-
-

Matches expressions which are calls to object constructors

- - -

CompiledName: |NewObject|_|

-
- - ( |NewRecord|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpType * FSharpExpr list) option
-
-
-

Matches record expressions

- - -

CompiledName: |NewRecord|_|

-
- - ( |NewTuple|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpType * FSharpExpr list) option
-
-
-

Matches tuple expressions

- - -

CompiledName: |NewTuple|_|

-
- - ( |NewUnionCase|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpType * FSharpUnionCase * FSharpExpr list) option
-
-
-

Matches expressions which create an object corresponding to a union case

- - -

CompiledName: |NewUnionCase|_|

-
- - ( |ObjectExpr|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpType * FSharpExpr * FSharpObjectExprOverride list * (FSharpType * FSharpObjectExprOverride list) list) option
-
-
-

Matches object expressions, returning the base type, the base call, the overrides and the interface implementations

- - -

CompiledName: |ObjectExpr|_|

-
- - ( |Quote|_| )(arg1) - -
- Signature: FSharpExpr -> FSharpExpr option
-
-
-

Matches expressions which are quotation literals

- - -

CompiledName: |Quote|_|

-
- - ( |Sequential|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpExpr) option
-
-
-

Matches sequential expressions

- - -

CompiledName: |Sequential|_|

-
- - ( |ThisValue|_| )(arg1) - -
- Signature: FSharpExpr -> FSharpType option
-
-
-

Matches expressions which are uses of the 'this' value

- - -

CompiledName: |ThisValue|_|

-
- - ( |TraitCall|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpType list * string * MemberFlags * FSharpType list * FSharpType list * FSharpExpr list) option
-
-
-

Matches expressions for an unresolved call to a trait

- - -

CompiledName: |TraitCall|_|

-
- - ( |TryFinally|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpExpr) option
-
-
-

Matches try/finally expressions

- - -

CompiledName: |TryFinally|_|

-
- - ( |TryWith|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpMemberOrFunctionOrValue * FSharpExpr * FSharpMemberOrFunctionOrValue * FSharpExpr) option
-
-
-

Matches try/with expressions

- - -

CompiledName: |TryWith|_|

-
- - ( |TupleGet|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpType * int * FSharpExpr) option
-
-
-

Matches expressions which get a value from a tuple

- - -

CompiledName: |TupleGet|_|

-
- - ( |TypeLambda|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpGenericParameter list * FSharpExpr) option
-
-
-

Matches expressions which are type abstractions

- - -

CompiledName: |TypeLambda|_|

-
- - ( |TypeTest|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpType * FSharpExpr) option
-
-
-

Matches expressions which test the runtime type of a value

- - -

CompiledName: |TypeTest|_|

-
- - ( |UnionCaseGet|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpType * FSharpUnionCase * FSharpField) option
-
-
-

Matches expressions which get a field from a union case

- - -

CompiledName: |UnionCaseGet|_|

-
- - ( |UnionCaseSet|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpType * FSharpUnionCase * FSharpField * FSharpExpr) option
-
-
-

Matches expressions which set a field from a union case (only used in FSharp.Core itself)

- - -

CompiledName: |UnionCaseSet|_|

-
- - ( |UnionCaseTag|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpType) option
-
-
-

Matches expressions which gets the tag for a union case

- - -

CompiledName: |UnionCaseTag|_|

-
- - ( |UnionCaseTest|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpType * FSharpUnionCase) option
-
-
-

Matches expressions which test if an expression corresponds to a particular union case

- - -

CompiledName: |UnionCaseTest|_|

-
- - ( |Value|_| )(arg1) - -
- Signature: FSharpExpr -> FSharpMemberOrFunctionOrValue option
-
-
-

Matches expressions which are uses of values

- - -

CompiledName: |Value|_|

-
- - ( |ValueSet|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpMemberOrFunctionOrValue * FSharpExpr) option
-
-
-

Matches expressions which set the contents of a mutable variable

- - -

CompiledName: |ValueSet|_|

-
- - ( |WhileLoop|_| )(arg1) - -
- Signature: FSharpExpr -> (FSharpExpr * FSharpExpr) option
-
-
-

Matches while loops

- - -

CompiledName: |WhileLoop|_|

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-compilerenvironment.html b/docs/reference/fsharp-compiler-sourcecodeservices-compilerenvironment.html deleted file mode 100644 index b9ba15b2ab..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-compilerenvironment.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - CompilerEnvironment - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

CompilerEnvironment

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Information about the compilation environment

- -
-

Static members

- - - - - - - - - - -
Static memberDescription
- - CompilerEnvironment.BinFolderOfDefaultFSharpCompiler(...) - -
- Signature: (probePoint:string option) -> string option
-
-
-

The default location of FSharp.Core.dll and fsc.exe based on the version of fsc.exe that is running

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-compilerenvironmentmodule.html b/docs/reference/fsharp-compiler-sourcecodeservices-compilerenvironmentmodule.html deleted file mode 100644 index d3f35f9f2b..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-compilerenvironmentmodule.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - CompilerEnvironment - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

CompilerEnvironment

-

- Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<CompilationRepresentation(4)>]
- -
-

-
-

Information about the compilation environment

- -
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - DefaultReferencesForOrphanSources(...) - -
- Signature: assumeDotNetFramework:bool -> string list
-
-
-

These are the names of assemblies that should be referenced for .fs or .fsi files that -are not associated with a project.

- - -
- - GetCompilationDefinesForEditing(...) - -
- Signature: parsingOptions:FSharpParsingOptions -> string list
-
-
-

Return the compilation defines that should be used when editing the given file.

- - -
- - IsCheckerSupportedSubcategory(arg1) - -
- Signature: string -> bool
-
-
-

Return true if this is a subcategory of error or warning message that the language service can emit

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-completioncontext.html b/docs/reference/fsharp-compiler-sourcecodeservices-completioncontext.html deleted file mode 100644 index 12a6e33008..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-completioncontext.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - CompletionContext - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

CompletionContext

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - AttributeApplication - -
- Signature:
-
-
- -
- - Inherit(...) - -
- Signature: InheritanceContext * CompletionPath
-
-
-

completing something after the inherit keyword

- - -
- - Invalid - -
- Signature:
-
-
-

completion context cannot be determined due to errors

- - -
- - OpenDeclaration - -
- Signature:
-
-
- -
- - ParameterList(pos,HashSet<string>) - -
- Signature: pos * HashSet<string>
-
-
-

completing named parameters\setters in parameter list of constructor\method calls -end of name ast node * list of properties\parameters that were already set

- - -
- - PatternType - -
- Signature:
-
-
-

completing pattern type (e.g. foo (x: |))

- - -
- - RangeOperator - -
- Signature:
-
-
- -
- - RecordField(RecordContext) - -
- Signature: RecordContext
-
-
-

completing records field

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-completionitemkind.html b/docs/reference/fsharp-compiler-sourcecodeservices-completionitemkind.html deleted file mode 100644 index efe25117b8..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-completionitemkind.html +++ /dev/null @@ -1,197 +0,0 @@ - - - - - CompletionItemKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

CompletionItemKind

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Argument - -
- Signature:
-
-
- -
- - CustomOperation - -
- Signature:
-
-
- -
- - Event - -
- Signature:
-
-
- -
- - Field - -
- Signature:
-
-
- -
- - Method(isExtension) - -
- Signature: bool
-
-
- -
- - Other - -
- Signature:
-
-
- -
- - Property - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-completionpath.html b/docs/reference/fsharp-compiler-sourcecodeservices-completionpath.html deleted file mode 100644 index 1ea9794d13..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-completionpath.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - CompletionPath - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

CompletionPath

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Item1 - -
- Signature: string list
-
-
- -
- - x.Item2 - -
- Signature: string option
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-debuggerenvironment.html b/docs/reference/fsharp-compiler-sourcecodeservices-debuggerenvironment.html deleted file mode 100644 index 77fb2ad577..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-debuggerenvironment.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - DebuggerEnvironment - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DebuggerEnvironment

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Information about the debugging environment

- -
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - GetLanguageID() - -
- Signature: unit -> Guid
-
-
-

Return the language ID, which is the expression evaluator id that the -debugger will use.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-entity.html b/docs/reference/fsharp-compiler-sourcecodeservices-entity.html deleted file mode 100644 index 2f007460c4..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-entity.html +++ /dev/null @@ -1,178 +0,0 @@ - - - - - Entity - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Entity

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Helper data structure representing a symbol, suitable for implementing unresolved identifiers resolution code fixes.

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - FullRelativeName - -
- Signature: StringLongIdent
-
-
-

Full name, relative to the current scope.

- - -
- - LastIdent - -
- Signature: string
-
-
-

Last part of the entity's full name.

- - -
- - Name - -
- Signature: StringLongIdent
-
-
-

Full display name (i.e. last ident plus modules with RequireQualifiedAccess attribute prefixed).

- - -
- - Namespace - -
- Signature: StringLongIdent option
-
-
-

Namespace that is needed to open to make the entity resolvable in the current scope.

- - -
- - Qualifier - -
- Signature: StringLongIdent
-
-
-

Ident parts needed to append to the current ident to make it resolvable in current scope.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-entitycache.html b/docs/reference/fsharp-compiler-sourcecodeservices-entitycache.html deleted file mode 100644 index 2fd5197e35..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-entitycache.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - EntityCache - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

EntityCache

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Thread safe wrapper over IAssemblyContentCache.

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> EntityCache
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Clear() - -
- Signature: unit -> unit
-
-
-

Clears the cache.

- - -
- - x.Locking(arg1) - -
- Signature: ((IAssemblyContentCache -> 'T)) -> 'T
- Type parameters: 'T
-
-

Performs an operation on the cache in thread safe manner.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-entitykind.html b/docs/reference/fsharp-compiler-sourcecodeservices-entitykind.html deleted file mode 100644 index 91716ce02d..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-entitykind.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - EntityKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

EntityKind

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Attribute - -
- Signature:
-
-
- -
- - FunctionOrValue(isActivePattern) - -
- Signature: bool
-
-
- -
- - Module(ModuleKind) - -
- Signature: ModuleKind
-
-
- -
- - Type - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-extensions.html b/docs/reference/fsharp-compiler-sourcecodeservices-extensions.html deleted file mode 100644 index cb87c194be..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-extensions.html +++ /dev/null @@ -1,300 +0,0 @@ - - - - - Extensions - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Extensions

-

- Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<AutoOpen>]
- -
-

-
-
- - - -

Type extensions

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Type extensionDescription
- - x.FullTypeSafe - -
- Signature: FSharpType option
-
-
-

Safe version of FullType.

- - -

CompiledName: FSharpMemberOrFunctionOrValue.get_FullTypeSafe

-
- - x.FullTypeSafe - -
- Signature: FSharpType option
-
-
-

Safe version of FullType.

- - -

CompiledName: FSharpMemberOrFunctionOrValue.get_FullTypeSafe

-
- - x.PublicNestedEntities - -
- Signature: seq<FSharpEntity>
-
-
-

Public nested entities (methods, functions, values, nested modules).

- - -

CompiledName: FSharpEntity.get_PublicNestedEntities

-
- - x.PublicNestedEntities - -
- Signature: seq<FSharpEntity>
-
-
-

Public nested entities (methods, functions, values, nested modules).

- - -

CompiledName: FSharpEntity.get_PublicNestedEntities

-
- - x.TryGetEntities() - -
- Signature: unit -> seq<FSharpEntity>
-
-
-

Safe version of Entities.

- - -

CompiledName: FSharpAssemblySignature.TryGetEntities

-
- - x.TryGetFullCompiledName() - -
- Signature: unit -> string option
-
-
-

Safe version of CompiledName.

- - -

CompiledName: FSharpEntity.TryGetFullCompiledName

-
- - x.TryGetFullCompiledOperatorNameIdents() - -
- Signature: unit -> Idents option
-
-
-

Full operator compiled name.

- - -

CompiledName: FSharpMemberOrFunctionOrValue.TryGetFullCompiledOperatorNameIdents

-
- - x.TryGetFullDisplayName() - -
- Signature: unit -> string option
-
-
-

Safe version of DisplayName.

- - -

CompiledName: FSharpEntity.TryGetFullDisplayName

-
- - x.TryGetFullDisplayName() - -
- Signature: unit -> string option
-
-
-

Full name with last part replaced with display name.

- - -

CompiledName: FSharpMemberOrFunctionOrValue.TryGetFullDisplayName

-
- - x.TryGetFullName() - -
- Signature: unit -> string option
-
-
-

Safe version of FullName.

- - -

CompiledName: FSharpEntity.TryGetFullName

-
- - x.TryGetMembersFunctionsAndValues - -
- Signature: IList<FSharpMemberOrFunctionOrValue>
-
-
-

Safe version of GetMembersFunctionsAndValues.

- - -

CompiledName: FSharpEntity.get_TryGetMembersFunctionsAndValues

-
- - x.TryGetMembersFunctionsAndValues - -
- Signature: IList<FSharpMemberOrFunctionOrValue>
-
-
-

Safe version of GetMembersFunctionsAndValues.

- - -

CompiledName: FSharpEntity.get_TryGetMembersFunctionsAndValues

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-externalsymbol.html b/docs/reference/fsharp-compiler-sourcecodeservices-externalsymbol.html deleted file mode 100644 index 91c4d4cd60..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-externalsymbol.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - ExternalSymbol - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ExternalSymbol

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents a symbol in an external (non F#) assembly

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Constructor(typeName,args) - -
- Signature: string * ParamTypeSymbol list
-
-
- -
- - Event(typeName,name) - -
- Signature: string * string
-
-
- -
- - Field(typeName,name) - -
- Signature: string * string
-
-
- -
- - Method(...) - -
- Signature: string * string * ParamTypeSymbol list * int
-
-
- -
- - Property(typeName,name) - -
- Signature: string * string
-
-
- -
- - Type(fullName) - -
- Signature: string
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-externaltype.html b/docs/reference/fsharp-compiler-sourcecodeservices-externaltype.html deleted file mode 100644 index f467bbffa5..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-externaltype.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - ExternalType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ExternalType

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents a type in an external (non F#) assembly.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Array(inner) - -
- Signature: ExternalType
-
-
-

Array of type that is defined in non-F# assembly.

- - -
- - Pointer(inner) - -
- Signature: ExternalType
-
-
-

Pointer defined in non-F# assembly.

- - -
- - Type(fullName,genericArgs) - -
- Signature: string * ExternalType list
-
-
-

Type defined in non-F# assembly.

- - -
- - TypeVar(typeName) - -
- Signature: string
-
-
-

Type variable defined in non-F# assembly.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-externaltypemodule.html b/docs/reference/fsharp-compiler-sourcecodeservices-externaltypemodule.html deleted file mode 100644 index 13b74be8ad..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-externaltypemodule.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - ExternalType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ExternalType

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - - - -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpabstractparameter.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpabstractparameter.html deleted file mode 100644 index 8da479faf2..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpabstractparameter.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - FSharpAbstractParameter - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpAbstractParameter

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Represents a parameter in an abstract method of a class or interface

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Attributes - -
- Signature: IList<FSharpAttribute>
-
-
-

The declared attributes of the parameter

- - -

CompiledName: get_Attributes

-
- - x.IsInArg - -
- Signature: bool
-
-
-

Indicate this is an in argument

- - -

CompiledName: get_IsInArg

-
- - x.IsOptionalArg - -
- Signature: bool
-
-
-

Indicate this is an optional argument

- - -

CompiledName: get_IsOptionalArg

-
- - x.IsOutArg - -
- Signature: bool
-
-
-

Indicate this is an out argument

- - -

CompiledName: get_IsOutArg

-
- - x.Name - -
- Signature: string option
-
-
-

The optional name of the parameter

- - -

CompiledName: get_Name

-
- - x.Type - -
- Signature: FSharpType
-
-
-

The declared or inferred type of the parameter

- - -

CompiledName: get_Type

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpabstractsignature.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpabstractsignature.html deleted file mode 100644 index c2ae83c9a7..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpabstractsignature.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - FSharpAbstractSignature - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpAbstractSignature

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Represents the signature of an abstract slot of a class or interface

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AbstractArguments - -
- Signature: IList<IList<FSharpAbstractParameter>>
-
-
-

Get the arguments of the abstract slot

- - -

CompiledName: get_AbstractArguments

-
- - x.AbstractReturnType - -
- Signature: FSharpType
-
-
-

Get the return type of the abstract slot

- - -

CompiledName: get_AbstractReturnType

-
- - x.DeclaringType - -
- Signature: FSharpType
-
-
-

Get the declaring type of the abstract slot

- - -

CompiledName: get_DeclaringType

-
- - x.DeclaringTypeGenericParameters - -
- Signature: IList<FSharpGenericParameter>
-
-
-

Get the generic arguments of the type defining the abstract slot

- - -

CompiledName: get_DeclaringTypeGenericParameters

-
- - x.MethodGenericParameters - -
- Signature: IList<FSharpGenericParameter>
-
-
-

Get the generic arguments of the abstract slot

- - -

CompiledName: get_MethodGenericParameters

-
- - x.Name - -
- Signature: string
-
-
-

Get the name of the abstract slot

- - -

CompiledName: get_Name

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpaccessibility.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpaccessibility.html deleted file mode 100644 index fe91b574ed..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpaccessibility.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - FSharpAccessibility - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpAccessibility

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Indicates the accessibility of a symbol, as seen by the F# language

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.IsInternal - -
- Signature: bool
-
-
-

Indicates the symbol has internal accessibility.

- - -

CompiledName: get_IsInternal

-
- - x.IsPrivate - -
- Signature: bool
-
-
-

Indicates the symbol has private accessibility.

- - -

CompiledName: get_IsPrivate

-
- - x.IsProtected - -
- Signature: bool
-
-
-

Indicates the symbol has protected accessibility.

- - -

CompiledName: get_IsProtected

-
- - x.IsPublic - -
- Signature: bool
-
-
-

Indicates the symbol has public accessibility.

- - -

CompiledName: get_IsPublic

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpaccessibilityrights.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpaccessibilityrights.html deleted file mode 100644 index 540b76e827..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpaccessibilityrights.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - FSharpAccessibilityRights - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpAccessibilityRights

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Represents the rights of a compilation to access symbols

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpactivepatterncase.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpactivepatterncase.html deleted file mode 100644 index 901fb0bab8..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpactivepatterncase.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - FSharpActivePatternCase - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpActivePatternCase

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

A subtype of FSharpSymbol that represents a single case within an active pattern

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.DeclarationLocation - -
- Signature: range
-
-
-

The location of declaration of the active pattern case

- - -

CompiledName: get_DeclarationLocation

-
- - x.Group - -
- Signature: FSharpActivePatternGroup
-
-
-

The group of active pattern cases this belongs to

- - -

CompiledName: get_Group

-
- - x.Index - -
- Signature: int
-
-
-

Index of the case in the pattern group

- - -

CompiledName: get_Index

-
- - x.Name - -
- Signature: string
-
-
-

The name of the active pattern case

- - -

CompiledName: get_Name

-
- - x.XmlDoc - -
- Signature: IList<string>
-
-
-

Get the in-memory XML documentation for the active pattern case, used when code is checked in-memory

- - -

CompiledName: get_XmlDoc

-
- - x.XmlDocSig - -
- Signature: string
-
-
-

XML documentation signature for the active pattern case, used for .xml file lookup for compiled code

- - -

CompiledName: get_XmlDocSig

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpactivepatterngroup.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpactivepatterngroup.html deleted file mode 100644 index a2ed6d576b..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpactivepatterngroup.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - FSharpActivePatternGroup - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpActivePatternGroup

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Represents all cases within an active pattern

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.DeclaringEntity - -
- Signature: FSharpEntity option
-
-
-

Try to get the entity in which the active pattern is declared

- - -

CompiledName: get_DeclaringEntity

-
- - x.IsTotal - -
- Signature: bool
-
-
-

Indicate this is a total active pattern

- - -

CompiledName: get_IsTotal

-
- - x.Name - -
- Signature: string option
-
-
-

The whole group name

- - -

CompiledName: get_Name

-
- - x.Names - -
- Signature: IList<string>
-
-
-

The names of the active pattern cases

- - -

CompiledName: get_Names

-
- - x.OverallType - -
- Signature: FSharpType
-
-
-

Get the type indicating signature of the active pattern

- - -

CompiledName: get_OverallType

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpanonrecordtypedetails.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpanonrecordtypedetails.html deleted file mode 100644 index 99a3d06579..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpanonrecordtypedetails.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - FSharpAnonRecordTypeDetails - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpAnonRecordTypeDetails

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

A subtype of FSharpSymbol that represents a record or union case field as seen by the F# language

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Assembly - -
- Signature: FSharpAssembly
-
-
-

The assembly where the compiled form of the anonymous type is defined

- - -

CompiledName: get_Assembly

-
- - x.CompiledName - -
- Signature: string
-
-
-

The name of the compiled form of the anonymous type

- - -

CompiledName: get_CompiledName

-
- - x.EnclosingCompiledTypeNames - -
- Signature: string list
-
-
-

Names of any enclosing types of the compiled form of the anonymous type (if the anonymous type was defined as a nested type)

- - -

CompiledName: get_EnclosingCompiledTypeNames

-
- - x.SortedFieldNames - -
- Signature: string []
-
-
-

The sorted labels of the anonymous type

- - -

CompiledName: get_SortedFieldNames

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpassembly.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpassembly.html deleted file mode 100644 index 6d47edf35d..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpassembly.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - FSharpAssembly - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpAssembly

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Represents an assembly as seen by the F# language

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.CodeLocation - -
- Signature: string
- - Attributes:
-[<Obsolete("This item is obsolete, it is not useful")>]
-
-
-
-
- WARNING: This API is obsolete -

This item is obsolete, it is not useful

-
- -

CompiledName: get_CodeLocation

-
- - x.Contents - -
- Signature: FSharpAssemblySignature
-
-
-

The contents of the this assembly

- - -

CompiledName: get_Contents

-
- - x.FileName - -
- Signature: string option
-
-
-

The file name for the assembly, if any

- - -

CompiledName: get_FileName

-
- - x.IsProviderGenerated - -
- Signature: bool
-
-
-

Indicates if the assembly was generated by a type provider and is due for static linking

- - -

CompiledName: get_IsProviderGenerated

-
- - x.QualifiedName - -
- Signature: string
-
-
-

The qualified name of the assembly

- - -

CompiledName: get_QualifiedName

-
- - x.SimpleName - -
- Signature: string
-
-
-

The simple name for the assembly

- - -

CompiledName: get_SimpleName

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpassemblycontents.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpassemblycontents.html deleted file mode 100644 index bf15bd83be..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpassemblycontents.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - FSharpAssemblyContents - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpAssemblyContents

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Represents the definitional contents of an assembly, as seen by the F# language

- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.ImplementationFiles - -
- Signature: FSharpImplementationFileContents list
-
-
-

The contents of the implementation files in the assembly

- - -

CompiledName: get_ImplementationFiles

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpassemblysignature.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpassemblysignature.html deleted file mode 100644 index 52b60dba29..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpassemblysignature.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - FSharpAssemblySignature - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpAssemblySignature

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Represents an inferred signature of part of an assembly as seen by the F# language

- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Attributes - -
- Signature: IList<FSharpAttribute>
-
-
-

Get the declared attributes for the assembly. -Only available when parsing an entire project.

- - -

CompiledName: get_Attributes

-
- - x.Entities - -
- Signature: IList<FSharpEntity>
-
-
-

The (non-nested) module and type definitions in this signature

- - -

CompiledName: get_Entities

-
- - x.FindEntityByPath(arg1) - -
- Signature: (string list) -> FSharpEntity option
-
-
-

Find entity using compiled names

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpattribute.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpattribute.html deleted file mode 100644 index 68ca3d9bcc..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpattribute.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - FSharpAttribute - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpAttribute

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Represents a custom attribute attached to F# source code or a compiler .NET component

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AttributeType - -
- Signature: FSharpEntity
-
-
-

The type of the attribute

- - -

CompiledName: get_AttributeType

-
- - x.ConstructorArguments - -
- Signature: IList<FSharpType * obj>
-
-
-

The arguments to the constructor for the attribute

- - -

CompiledName: get_ConstructorArguments

-
- - x.Format(context) - -
- Signature: context:FSharpDisplayContext -> string
-
-
-

Format the attribute using the rules of the given display context

- - -
- - x.IsUnresolved - -
- Signature: bool
-
-
-

Indicates if the attribute type is in an unresolved assembly

- - -

CompiledName: get_IsUnresolved

-
- - x.NamedArguments - -
- Signature: IList<FSharpType * string * bool * obj>
-
-
-

The named arguments for the attribute

- - -

CompiledName: get_NamedArguments

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpchecker.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpchecker.html deleted file mode 100644 index 4580874945..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpchecker.html +++ /dev/null @@ -1,918 +0,0 @@ - - - - - FSharpChecker - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpChecker

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
-[<AutoSerializable(false)>]
- -
-

-
-

Used to parse and check F# source code.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.BeforeBackgroundFileCheck - -
- Signature: IEvent<string * obj option>
-
-
-

Notify the host that the logical type checking context for a file has now been updated internally -and that the file has become eligible to be re-typechecked for errors.

-

The event will be raised on a background thread.

- - -

CompiledName: get_BeforeBackgroundFileCheck

-
- - x.CheckFileInProject(...) - -
- Signature: (parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * textSnapshotInfo:obj option * userOpName:string option) -> Async<FSharpCheckFileAnswer>
-
-
-

Check a source code file, returning a handle to the results

-

Note: all files except the one being checked are read from the FileSystem API

-

Return FSharpCheckFileAnswer.Aborted if a parse tree was not available.

- - -
- - x.CheckFileInProjectAllowingStaleCachedResults(...) - -
- Signature: (parsed:FSharpParseFileResults * filename:string * fileversion:int * source:string * options:FSharpProjectOptions * textSnapshotInfo:obj option * userOpName:string option) -> Async<FSharpCheckFileAnswer option>
- - Attributes:
-[<Obsolete("This member should no longer be used, please use 'CheckFileInProject'")>]
-
-
-
-
- WARNING: This API is obsolete -

This member should no longer be used, please use 'CheckFileInProject'

-
-

Check a source code file, returning a handle to the results of the parse including -the reconstructed types in the file.All files except the one being checked are read from the FileSystem APINote: returns NoAntecedent if the background builder is not yet done preparing the type check context for the -file (e.g. loading references and parsing/checking files in the project that this file depends upon). -In this case, the caller can either retry, or wait for FileTypeCheckStateIsDirty to be raised for this file.

- - -
- - x.CheckProjectInBackground(...) - -
- Signature: (options:FSharpProjectOptions * userOpName:string option) -> unit
-
-
-

Set the project to be checked in the background. Overrides any previous call to CheckProjectInBackground

- - -
- - x.ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients(...) - -
- Signature: unit -> unit
-
-
-

Flush all caches and garbage collect

- - -
- - x.Compile(...) - -
- Signature: (ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * pdbFile:string option * executable:bool option * noframework:bool option * userOpName:string option) -> Async<FSharpErrorInfo [] * int>
-
-
-

TypeCheck and compile provided AST

- - -
- - x.Compile(argv, userOpName) - -
- Signature: (argv:string [] * userOpName:string option) -> Async<FSharpErrorInfo [] * int>
-
-
-

Compile using the given flags. Source files names are resolved via the FileSystem API. -The output file must be given by a -o flag. -The first argument is ignored and can just be "fsc.exe".

- - -
- - x.CompileToDynamicAssembly(...) - -
- Signature: (ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * debug:bool option * noframework:bool option * userOpName:string option) -> Async<FSharpErrorInfo [] * int * Assembly option>
-
-
-

TypeCheck and compile provided AST

- - -
- - x.CompileToDynamicAssembly(...) - -
- Signature: (otherFlags:string [] * execute:(TextWriter * TextWriter) option * userOpName:string option) -> Async<FSharpErrorInfo [] * int * Assembly option>
-
-
-

Compiles to a dynamic assembly using the given flags.

-

The first argument is ignored and can just be "fsc.exe".

-

Any source files names are resolved via the FileSystem API. An output file name must be given by a -o flag, but this will not -be written - instead a dynamic assembly will be created and loaded.

-

If the 'execute' parameter is given the entry points for the code are executed and -the given TextWriters are used for the stdout and stderr streams respectively. In this -case, a global setting is modified during the execution.

- - -
- - x.CurrentQueueLength - -
- Signature: int
-
-
-

Current queue length of the service, for debug purposes. -In addition, a single async operation or a step of a background build -may be in progress - such an operation is not counted in the queue length.

- - -

CompiledName: get_CurrentQueueLength

-
- - x.FileChecked - -
- Signature: IEvent<string * obj option>
-
-
-

Raised after a check of a file in the background analysis.

-

The event will be raised on a background thread.

- - -

CompiledName: get_FileChecked

-
- - x.FileParsed - -
- Signature: IEvent<string * obj option>
-
-
-

Raised after a parse of a file in the background analysis.

-

The event will be raised on a background thread.

- - -

CompiledName: get_FileParsed

-
- - x.FindBackgroundReferencesInFile(...) - -
- Signature: (filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * userOpName:string option) -> Async<seq<range>>
-
-
-

Optimized find references for a given symbol in a file of project.All files are read from the FileSystem API, including the file being checked.

- - -
- - x.GetBackgroundCheckResultsForFileInProject(...) - -
- Signature: (filename:string * options:FSharpProjectOptions * userOpName:string option) -> Async<FSharpParseFileResults * FSharpCheckFileResults>
-
-
-

Like CheckFileInProject, but uses the existing results from the background builder.All files are read from the FileSystem API, including the file being checked.

- - -
- - x.GetBackgroundParseResultsForFileInProject(...) - -
- Signature: (filename:string * options:FSharpProjectOptions * userOpName:string option) -> Async<FSharpParseFileResults>
-
-
-

Like ParseFile, but uses results from the background builder.All files are read from the FileSystem API, including the file being checked.

- - -
- - x.GetBackgroundSemanticClassificationForFile(...) - -
- Signature: (filename:string * options:FSharpProjectOptions * userOpName:string option) -> Async<(range * SemanticClassificationType) []>
-
-
-

Get semantic classification for a file.All files are read from the FileSystem API, including the file being checked.

- - -
- - x.GetParsingOptionsFromCommandLineArgs(...) - -
- Signature: (argv:string list * isInteractive:bool option) -> FSharpParsingOptions * FSharpErrorInfo list
-
-
-

Get the FSharpParsingOptions implied by a set of command line arguments.

- - -
- - x.GetParsingOptionsFromCommandLineArgs(...) - -
- Signature: (sourceFiles:string list * argv:string list * isInteractive:bool option) -> FSharpParsingOptions * FSharpErrorInfo list
-
-
-

Get the FSharpParsingOptions implied by a set of command line arguments and list of source files.

- - -
- - x.GetParsingOptionsFromProjectOptions(...) - -
- Signature: FSharpProjectOptions -> FSharpParsingOptions * FSharpErrorInfo list
-
-
-

Get the FSharpParsingOptions implied by a FSharpProjectOptions.

- - -
- - x.GetProjectOptionsFromCommandLineArgs(...) - -
- Signature: (projectFileName:string * argv:string [] * loadedTimeStamp:DateTime option * extraProjectInfo:obj option) -> FSharpProjectOptions
-
-
-

Get the FSharpProjectOptions implied by a set of command line arguments.

- - -
- - x.GetProjectOptionsFromScript(...) - -
- Signature: (filename:string * sourceText:ISourceText * previewEnabled:bool option * loadedTimeStamp:DateTime option * otherFlags:string [] option * useFsiAuxLib:bool option * useSdkRefs:bool option * assumeDotNetFramework:bool option * extraProjectInfo:obj option * optionsStamp:int64 option * userOpName:string option) -> Async<FSharpProjectOptions * FSharpErrorInfo list>
-
-
-

For a given script file, get the FSharpProjectOptions implied by the #load closure.All files are read from the FileSystem API, except the file being checked.

- - -
- - x.ImplicitlyStartBackgroundWork() - -
- Signature: unit -> bool
-
-
-

Get or set a flag which controls if background work is started implicitly.

-

If true, calls to CheckFileInProject implicitly start a background check of that project, replacing -any other background checks in progress. This is useful in IDE applications with spare CPU cycles as -it prepares the project analysis results for use. The default is 'true'.

- - -

CompiledName: set_ImplicitlyStartBackgroundWork

-
- - x.ImplicitlyStartBackgroundWork() - -
- Signature: unit -> unit
-
-
-

Get or set a flag which controls if background work is started implicitly.

-

If true, calls to CheckFileInProject implicitly start a background check of that project, replacing -any other background checks in progress. This is useful in IDE applications with spare CPU cycles as -it prepares the project analysis results for use. The default is 'true'.

- - -

CompiledName: get_ImplicitlyStartBackgroundWork

-
- - x.InvalidateAll() - -
- Signature: unit -> unit
-
-
-

This function is called when the entire environment is known to have changed for reasons not encoded in the ProjectOptions of any project/compilation.

- - -
- - x.InvalidateConfiguration(...) - -
- Signature: (options:FSharpProjectOptions * startBackgroundCompileIfAlreadySeen:bool option * userOpName:string option) -> unit
-
-
-

This function is called when the configuration is known to have changed for reasons not encoded in the ProjectOptions. -For example, dependent references may have been deleted or created. -Start a background compile of the project if a project with the same name has already been seen before. -An optional string used for tracing compiler operations associated with this request.

- - -
- - x.MatchBraces(...) - -
- Signature: (filename:string * source:string * options:FSharpProjectOptions * userOpName:string option) -> Async<(range * range) []>
- - Attributes:
-[<Obsolete("Please pass FSharpParsingOptions to MatchBraces. If necessary generate FSharpParsingOptions from FSharpProjectOptions by calling checker.GetParsingOptionsFromProjectOptions(options)")>]
-
-
-
-
- WARNING: This API is obsolete -

Please pass FSharpParsingOptions to MatchBraces. If necessary generate FSharpParsingOptions from FSharpProjectOptions by calling checker.GetParsingOptionsFromProjectOptions(options)

-
-

Parse a source code file, returning information about brace matching in the file. -Return an enumeration of the matching parenthetical tokens in the file.

- - -
- - x.MatchBraces(...) - -
- Signature: (filename:string * sourceText:ISourceText * options:FSharpParsingOptions * userOpName:string option) -> Async<(range * range) []>
-
-
-

Parse a source code file, returning information about brace matching in the file. -Return an enumeration of the matching parenthetical tokens in the file.

- - -
- - x.MaxMemory() - -
- Signature: unit -> int
-
-
-

A maximum number of megabytes of allocated memory. If the figure reported by System.GC.GetTotalMemory(false) goes over this limit, the FSharpChecker object will attempt to free memory and reduce cache sizes to a minimum.

- - -

CompiledName: set_MaxMemory

-
- - x.MaxMemory() - -
- Signature: unit -> unit
-
-
-

A maximum number of megabytes of allocated memory. If the figure reported by System.GC.GetTotalMemory(false) goes over this limit, the FSharpChecker object will attempt to free memory and reduce cache sizes to a minimum.

- - -

CompiledName: get_MaxMemory

-
- - x.MaxMemoryReached - -
- Signature: IEvent<unit>
-
-
-

Raised after the maxMB memory threshold limit is reached

- - -

CompiledName: get_MaxMemoryReached

-
- - x.NotifyProjectCleaned(...) - -
- Signature: (options:FSharpProjectOptions * userOpName:string option) -> Async<unit>
-
-
-

This function is called when a project has been cleaned/rebuilt, and thus any live type providers should be refreshed.

- - -
- - x.ParseAndCheckFileInProject(...) - -
- Signature: (filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * textSnapshotInfo:obj option * userOpName:string option) -> Async<FSharpParseFileResults * FSharpCheckFileAnswer>
-
-
-

Parse and check a source code file, returning a handle to the results

-

Note: all files except the one being checked are read from the FileSystem API

-

Return FSharpCheckFileAnswer.Aborted if a parse tree was not available.

- - -
- - x.ParseAndCheckProject(...) - -
- Signature: (options:FSharpProjectOptions * userOpName:string option) -> Async<FSharpCheckProjectResults>
-
-
-

Parse and typecheck all files in a project.All files are read from the FileSystem API

- - -
- - x.ParseFile(...) - -
- Signature: (filename:string * sourceText:ISourceText * options:FSharpParsingOptions * userOpName:string option) -> Async<FSharpParseFileResults>
-
-
-

Parses a source code for a file and caches the results. Returns an AST that can be traversed for various features.

- - -
- - x.ParseFileInProject(...) - -
- Signature: (filename:string * source:string * options:FSharpProjectOptions * userOpName:string option) -> Async<FSharpParseFileResults>
- - Attributes:
-[<Obsolete("Please call checker.ParseFile instead. To do this, you must also pass FSharpParsingOptions instead of FSharpProjectOptions. If necessary generate FSharpParsingOptions from FSharpProjectOptions by calling checker.GetParsingOptionsFromProjectOptions(options)")>]
-
-
-
-
- WARNING: This API is obsolete -

Please call checker.ParseFile instead. To do this, you must also pass FSharpParsingOptions instead of FSharpProjectOptions. If necessary generate FSharpParsingOptions from FSharpProjectOptions by calling checker.GetParsingOptionsFromProjectOptions(options)

-
-

Parses a source code for a file. Returns an AST that can be traversed for various features.

- - -
- - x.ParseFileNoCache(...) - -
- Signature: (filename:string * sourceText:ISourceText * options:FSharpParsingOptions * userOpName:string option) -> Async<FSharpParseFileResults>
-
-
-

Parses a source code for a file. Returns an AST that can be traversed for various features.

- - -
- - x.PauseBeforeBackgroundWork() - -
- Signature: unit -> int
-
-
-

Get or set the pause time in milliseconds before background work is started.

- - -

CompiledName: set_PauseBeforeBackgroundWork

-
- - x.PauseBeforeBackgroundWork() - -
- Signature: unit -> unit
-
-
-

Get or set the pause time in milliseconds before background work is started.

- - -

CompiledName: get_PauseBeforeBackgroundWork

-
- - x.ProjectChecked - -
- Signature: IEvent<string * obj option>
-
-
-

Notify the host that a project has been fully checked in the background (using file contents provided by the file system API)

-

The event may be raised on a background thread.

- - -

CompiledName: get_ProjectChecked

-
- - x.StopBackgroundCompile() - -
- Signature: unit -> unit
-
-
-

Stop the background compile.

- - -
- - x.TokenizeFile(source) - -
- Signature: source:string -> FSharpTokenInfo [] []
-
-
-

Tokenize an entire file, line by line

- - -
- - x.TokenizeLine(line, state) - -
- Signature: (line:string * state:FSharpTokenizerLexState) -> FSharpTokenInfo [] * FSharpTokenizerLexState
-
-
-

Tokenize a single line, returning token information and a tokenization state represented by an integer

- - -
- - x.TryGetRecentCheckResultsForFile(...) - -
- Signature: (filename:string * options:FSharpProjectOptions * sourceText:ISourceText option * userOpName:string option) -> (FSharpParseFileResults * FSharpCheckFileResults * int) option
-
-
-

Try to get type check results for a file. This looks up the results of recent type checks of the -same file, regardless of contents. The version tag specified in the original check of the file is returned. -If the source of the file has changed the results returned by this function may be out of date, though may -still be usable for generating intellisense menus and information.

- - -
- - x.WaitForBackgroundCompile() - -
- Signature: unit -> unit
-
-
-

Block until the background compile finishes.

- - -
-

Static members

- - - - - - - - - - - - - - - - - - - - - - -
Static memberDescription
- - FSharpChecker.Create(...) - -
- Signature: (projectCacheSize:int option * keepAssemblyContents:bool option * keepAllBackgroundResolutions:bool option * legacyReferenceResolver:Resolver option * tryGetMetadataSnapshot:ILReaderTryGetMetadataSnapshot option * suggestNamesForErrors:bool option * keepAllBackgroundSymbolUses:bool option * enableBackgroundItemKeyStoreAndSemanticClassification:bool option) -> FSharpChecker
-
-
-

Create an instance of an FSharpChecker.

- - -
- - FSharpChecker.GlobalForegroundParseCountStatistic(...) - -
- Signature: int
-
-
-

Report a statistic for testability

- - -

CompiledName: get_GlobalForegroundParseCountStatistic

-
- - FSharpChecker.GlobalForegroundTypeCheckCountStatistic(...) - -
- Signature: int
-
-
-

Report a statistic for testability

- - -

CompiledName: get_GlobalForegroundTypeCheckCountStatistic

-
- - FSharpChecker.Instance - -
- Signature: FSharpChecker
- - Attributes:
-[<Obsolete("Please create an instance of FSharpChecker using FSharpChecker.Create")>]
-
-
-
-
- WARNING: This API is obsolete -

Please create an instance of FSharpChecker using FSharpChecker.Create

-
- -

CompiledName: get_Instance

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpcheckfileanswer.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpcheckfileanswer.html deleted file mode 100644 index 999bc484f9..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpcheckfileanswer.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - FSharpCheckFileAnswer - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpCheckFileAnswer

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

The result of calling TypeCheckResult including the possibility of abort and background compiler not caught up.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Aborted - -
- Signature:
-
-
-

Aborted because cancellation caused an abandonment of the operation

- - -
- - Succeeded(FSharpCheckFileResults) - -
- Signature: FSharpCheckFileResults
-
-
-

Success

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpcheckfileresults.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpcheckfileresults.html deleted file mode 100644 index 12fa1538cc..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpcheckfileresults.html +++ /dev/null @@ -1,472 +0,0 @@ - - - - - FSharpCheckFileResults - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpCheckFileResults

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

A handle to the results of CheckFileInProject.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.DependencyFiles - -
- Signature: string []
-
-
-

Indicates the set of files which must be watched to accurately track changes that affect these results, -Clients interested in reacting to updates to these files should watch these files and take actions as described -in the documentation for compiler service.

- - -

CompiledName: get_DependencyFiles

-
- - x.Errors - -
- Signature: FSharpErrorInfo []
-
-
-

The errors returned by parsing a source file.

- - -

CompiledName: get_Errors

-
- - x.GetAllUsesOfAllSymbolsInFile() - -
- Signature: unit -> Async<FSharpSymbolUse []>
-
-
-

Get all textual usages of all symbols throughout the file

- - -
- - x.GetDeclarationListInfo(...) - -
- Signature: (ParsedFileResultsOpt:FSharpParseFileResults option * line:int * lineText:string * partialName:PartialLongName * getAllEntities:(unit -> AssemblySymbol list) option * hasTextChangedSinceLastTypecheck:(obj * range -> bool) option * userOpName:string option) -> Async<FSharpDeclarationListInfo>
-
-
-

Get the items for a declaration list

- - -
- - x.GetDeclarationListSymbols(...) - -
- Signature: (ParsedFileResultsOpt:FSharpParseFileResults option * line:int * lineText:string * partialName:PartialLongName * getAllEntities:(unit -> AssemblySymbol list) option * hasTextChangedSinceLastTypecheck:(obj * range -> bool) option * userOpName:string option) -> Async<FSharpSymbolUse list list>
-
-
-

Get the items for a declaration list in FSharpSymbol format

- - -
- - x.GetDeclarationLocation(...) - -
- Signature: (line:int * colAtEndOfNames:int * lineText:string * names:string list * preferFlag:bool option * userOpName:string option) -> Async<FSharpFindDeclResult>
-
-
-

Resolve the names at the given location to the declaration location of the corresponding construct.

- - -
- - x.GetDisplayContextForPos(pos) - -
- Signature: pos:pos -> Async<FSharpDisplayContext option>
-
-
-

Find the most precise display environment for the given line and column.

- - -
- - x.GetF1Keyword(...) - -
- Signature: (line:int * colAtEndOfNames:int * lineText:string * names:string list * userOpName:string option) -> Async<string option>
-
-
-

Compute the Visual Studio F1-help key identifier for the given location, based on name resolution results

- - -
- - x.GetFormatSpecifierLocations() - -
- Signature: unit -> range []
- - Attributes:
-[<Obsolete("This member has been replaced by GetFormatSpecifierLocationsAndArity, which returns both range and arity of specifiers")>]
-
-
-
-
- WARNING: This API is obsolete -

This member has been replaced by GetFormatSpecifierLocationsAndArity, which returns both range and arity of specifiers

-
-

Get the locations of format specifiers

- - -
- - x.GetFormatSpecifierLocationsAndArity() - -
- Signature: unit -> (range * int) []
-
-
-

Get the locations of and number of arguments associated with format specifiers

- - -
- - x.GetMethods(...) - -
- Signature: (line:int * colAtEndOfNames:int * lineText:string * names:string list option * userOpName:string option) -> Async<FSharpMethodGroup>
-
-
-

Compute a set of method overloads to show in a dialog relevant to the given code location.

- - -
- - x.GetMethodsAsSymbols(...) - -
- Signature: (line:int * colAtEndOfNames:int * lineText:string * names:string list * userOpName:string option) -> Async<FSharpSymbolUse list option>
-
-
-

Compute a set of method overloads to show in a dialog relevant to the given code location. The resulting method overloads are returned as symbols.

- - -
- - x.GetSemanticClassification(arg1) - -
- Signature: (range option) -> (range * SemanticClassificationType) []
-
-
-

Get any extra colorization info that is available after the typecheck

- - -
- - x.GetStructuredToolTipText(...) - -
- Signature: (line:int * colAtEndOfNames:int * lineText:string * names:string list * tokenTag:int * userOpName:string option) -> Async<FSharpStructuredToolTipText>
-
-
-

Compute a formatted tooltip for the given location

- - -
- - x.GetSymbolUseAtLocation(...) - -
- Signature: (line:int * colAtEndOfNames:int * lineText:string * names:string list * userOpName:string option) -> Async<FSharpSymbolUse option>
-
-
-

Resolve the names at the given location to a use of symbol.

- - -
- - x.GetToolTipText(...) - -
- Signature: (line:int * colAtEndOfNames:int * lineText:string * names:string list * tokenTag:int * userOpName:string option) -> Async<FSharpToolTipText>
-
-
-

Compute a formatted tooltip for the given location

- - -
- - x.GetUsesOfSymbolInFile(symbol) - -
- Signature: symbol:FSharpSymbol -> Async<FSharpSymbolUse []>
-
-
-

Get the textual usages that resolved to the given symbol throughout the file

- - -
- - x.HasFullTypeCheckInfo - -
- Signature: bool
-
-
-

Indicates whether type checking successfully occurred with some results returned. If false, indicates that -an unrecoverable error in earlier checking/parsing/resolution steps.

- - -

CompiledName: get_HasFullTypeCheckInfo

-
- - x.ImplementationFile - -
- Signature: FSharpImplementationFileContents option
-
-
-

Represents complete typechecked implementation file, including its typechecked signatures if any.

- - -

CompiledName: get_ImplementationFile

-
- - x.IsRelativeNameResolvableFromSymbol(...) - -
- Signature: (cursorPos:pos * plid:string list * symbol:FSharpSymbol * userOpName:string option) -> Async<bool>
-
-
-

Determines if a long ident is resolvable at a specific point. -An optional string used for tracing compiler operations associated with this request.

- - -
- - x.OpenDeclarations - -
- Signature: FSharpOpenDeclaration []
-
-
-

Open declarations in the file, including auto open modules.

- - -

CompiledName: get_OpenDeclarations

-
- - x.PartialAssemblySignature - -
- Signature: FSharpAssemblySignature
-
-
-

Get a view of the contents of the assembly up to and including the file just checked

- - -

CompiledName: get_PartialAssemblySignature

-
- - x.ProjectContext - -
- Signature: FSharpProjectContext
-
-
-

Get the resolution of the ProjectOptions

- - -

CompiledName: get_ProjectContext

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpcheckprojectresults.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpcheckprojectresults.html deleted file mode 100644 index f16b1947ce..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpcheckprojectresults.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - FSharpCheckProjectResults - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpCheckProjectResults

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

A handle to the results of CheckFileInProject.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AssemblyContents - -
- Signature: FSharpAssemblyContents
-
-
-

Get a view of the overall contents of the assembly. Only valid to use if HasCriticalErrors is false.

- - -

CompiledName: get_AssemblyContents

-
- - x.AssemblySignature - -
- Signature: FSharpAssemblySignature
-
-
-

Get a view of the overall signature of the assembly. Only valid to use if HasCriticalErrors is false.

- - -

CompiledName: get_AssemblySignature

-
- - x.DependencyFiles - -
- Signature: string []
-
-
-

Indicates the set of files which must be watched to accurately track changes that affect these results, -Clients interested in reacting to updates to these files should watch these files and take actions as described -in the documentation for compiler service.

- - -

CompiledName: get_DependencyFiles

-
- - x.Errors - -
- Signature: FSharpErrorInfo []
-
-
-

The errors returned by processing the project

- - -

CompiledName: get_Errors

-
- - x.GetAllUsesOfAllSymbols() - -
- Signature: unit -> Async<FSharpSymbolUse []>
-
-
-

Get all textual usages of all symbols throughout the project

- - -
- - x.GetOptimizedAssemblyContents() - -
- Signature: unit -> FSharpAssemblyContents
-
-
-

Get an optimized view of the overall contents of the assembly. Only valid to use if HasCriticalErrors is false.

- - -
- - x.GetUsesOfSymbol(symbol) - -
- Signature: symbol:FSharpSymbol -> Async<FSharpSymbolUse []>
-
-
-

Get the textual usages that resolved to the given symbol throughout the project

- - -
- - x.HasCriticalErrors - -
- Signature: bool
-
-
-

Indicates if critical errors existed in the project options

- - -

CompiledName: get_HasCriticalErrors

-
- - x.ProjectContext - -
- Signature: FSharpProjectContext
-
-
-

Get the resolution of the ProjectOptions

- - -

CompiledName: get_ProjectContext

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpdeclarationlistinfo.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpdeclarationlistinfo.html deleted file mode 100644 index 8c9f7bfaec..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpdeclarationlistinfo.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - FSharpDeclarationListInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpDeclarationListInfo

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents a set of declarations in F# source code, with information attached ready for display by an editor. -Returned by GetDeclarations.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.IsError - -
- Signature: bool
-
-
- -

CompiledName: get_IsError

-
- - x.IsForType - -
- Signature: bool
-
-
- -

CompiledName: get_IsForType

-
- - x.Items - -
- Signature: FSharpDeclarationListItem []
-
-
- -

CompiledName: get_Items

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - FSharpDeclarationListInfo.Empty - -
- Signature: FSharpDeclarationListInfo
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpdeclarationlistitem.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpdeclarationlistitem.html deleted file mode 100644 index a84f4c408f..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpdeclarationlistitem.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - - FSharpDeclarationListItem - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpDeclarationListItem

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents a declaration in F# source code, with information attached ready for display by an editor. -Returned by GetDeclarations.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Accessibility - -
- Signature: FSharpAccessibility option
-
-
- -

CompiledName: get_Accessibility

-
- - x.DescriptionText - -
- Signature: FSharpToolTipText
-
-
- -

CompiledName: get_DescriptionText

-
- - x.DescriptionTextAsync - -
- Signature: Async<FSharpToolTipText>
-
-
- -

CompiledName: get_DescriptionTextAsync

-
- - x.FullName - -
- Signature: string
-
-
- -

CompiledName: get_FullName

-
- - x.Glyph - -
- Signature: FSharpGlyph
-
-
- -

CompiledName: get_Glyph

-
- - x.IsOwnMember - -
- Signature: bool
-
-
- -

CompiledName: get_IsOwnMember

-
- - x.IsResolved - -
- Signature: bool
-
-
- -

CompiledName: get_IsResolved

-
- - x.Kind - -
- Signature: CompletionItemKind
-
-
- -

CompiledName: get_Kind

-
- - x.MinorPriority - -
- Signature: int
-
-
- -

CompiledName: get_MinorPriority

-
- - x.Name - -
- Signature: string
-
-
-

Get the display name for the declaration.

- - -

CompiledName: get_Name

-
- - x.NameInCode - -
- Signature: string
-
-
-

Get the name for the declaration as it's presented in source code.

- - -

CompiledName: get_NameInCode

-
- - x.NamespaceToOpen - -
- Signature: string option
-
-
- -

CompiledName: get_NamespaceToOpen

-
- - x.StructuredDescriptionText - -
- Signature: FSharpStructuredToolTipText
-
-
-

Get the description text for the declaration. Computing this property may require using compiler -resources and may trigger execution of a type provider method to retrieve documentation.

-

May return "Loading..." if timeout occurs

- - -

CompiledName: get_StructuredDescriptionText

-
- - x.StructuredDescriptionTextAsync - -
- Signature: Async<FSharpStructuredToolTipText>
-
-
-

Get the description text, asynchronously. Never returns "Loading...".

- - -

CompiledName: get_StructuredDescriptionTextAsync

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpdelegatesignature.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpdelegatesignature.html deleted file mode 100644 index dc83170983..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpdelegatesignature.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - FSharpDelegateSignature - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpDelegateSignature

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Represents a delegate signature in an F# symbol

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.DelegateArguments - -
- Signature: IList<string option * FSharpType>
-
-
-

Get the argument types of the delegate signature

- - -

CompiledName: get_DelegateArguments

-
- - x.DelegateReturnType - -
- Signature: FSharpType
-
-
-

Get the return type of the delegate signature

- - -

CompiledName: get_DelegateReturnType

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpdisplaycontext.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpdisplaycontext.html deleted file mode 100644 index 657b184f38..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpdisplaycontext.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - FSharpDisplayContext - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpDisplayContext

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Represents the information needed to format types and other information in a style -suitable for use in F# source text at a particular source location.

-

Acquired via GetDisplayEnvAtLocationAlternate and similar methods. May be passed -to the Format method on FSharpType and other methods.

- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.WithShortTypeNames(arg1) - -
- Signature: bool -> FSharpDisplayContext
-
-
- -
-

Static members

- - - - - - - - - - -
Static memberDescription
- - FSharpDisplayContext.Empty - -
- Signature: FSharpDisplayContext
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpenclosingentitykind.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpenclosingentitykind.html deleted file mode 100644 index 451ed7bcb5..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpenclosingentitykind.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - FSharpEnclosingEntityKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpEnclosingEntityKind

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Class - -
- Signature:
-
-
- -
- - DU - -
- Signature:
-
-
- -
- - Enum - -
- Signature:
-
-
- -
- - Exception - -
- Signature:
-
-
- -
- - Interface - -
- Signature:
-
-
- -
- - Module - -
- Signature:
-
-
- -
- - Namespace - -
- Signature:
-
-
- -
- - Record - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpentity.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpentity.html deleted file mode 100644 index 85ab5be3f7..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpentity.html +++ /dev/null @@ -1,1021 +0,0 @@ - - - - - FSharpEntity - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpEntity

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

A subtype of FSharpSymbol that represents a type definition or module as seen by the F# language

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AbbreviatedType - -
- Signature: FSharpType
-
-
-

Get the type abbreviated by an F# type abbreviation

- - -

CompiledName: get_AbbreviatedType

-
- - x.Accessibility - -
- Signature: FSharpAccessibility
-
-
-

Get the declared accessibility of the type

- - -

CompiledName: get_Accessibility

-
- - x.AccessPath - -
- Signature: string
-
-
-

Get the path used to address the entity (e.g. "Namespace.Module1.NestedModule2"). Gives -"global" for items not in a namespace.

- - -

CompiledName: get_AccessPath

-
- - x.ActivePatternCases - -
- Signature: FSharpActivePatternCase list
-
-
-

Get all active pattern cases defined in all active patterns in the module.

- - -

CompiledName: get_ActivePatternCases

-
- - x.AllCompilationPaths - -
- Signature: string list
-
-
-

Get all compilation paths, taking Module suffixes into account.

- - -

CompiledName: get_AllCompilationPaths

-
- - x.AllInterfaces - -
- Signature: IList<FSharpType>
-
-
-

Get all the interface implementations, by walking the type hierarchy

- - -

CompiledName: get_AllInterfaces

-
- - x.ArrayRank - -
- Signature: int
-
-
-

Get the rank of an array type

- - -

CompiledName: get_ArrayRank

-
- - x.Attributes - -
- Signature: IList<FSharpAttribute>
-
-
-

Get the declared attributes for the type

- - -

CompiledName: get_Attributes

-
- - x.BaseType - -
- Signature: FSharpType option
-
-
-

Get the base type, if any

- - -

CompiledName: get_BaseType

-
- - x.CompiledName - -
- Signature: string
-
-
-

Get the compiled name of the type or module, possibly with `n mangling. This is identical to LogicalName -unless the CompiledName attribute is used.

- - -

CompiledName: get_CompiledName

-
- - x.DeclarationLocation - -
- Signature: range
-
-
-

Get the declaration location for the type constructor

- - -

CompiledName: get_DeclarationLocation

-
- - x.DeclaredInterfaces - -
- Signature: IList<FSharpType>
-
-
-

Get the declared interface implementations

- - -

CompiledName: get_DeclaredInterfaces

-
- - x.DeclaringEntity - -
- Signature: FSharpEntity option
-
-
-

Get the enclosing entity for the definition

- - -

CompiledName: get_DeclaringEntity

-
- - x.DisplayName - -
- Signature: string
-
-
-

Get the name of the type or module as displayed in F# code

- - -

CompiledName: get_DisplayName

-
- - x.FSharpDelegateSignature - -
- Signature: FSharpDelegateSignature
-
-
-

Indicates if the type is a delegate with the given Invoke signature

- - -

CompiledName: get_FSharpDelegateSignature

-
- - x.FSharpFields - -
- Signature: IList<FSharpField>
-
-
-

Get the fields of a record, class, struct or enum from the perspective of the F# language. -This includes static fields, the 'val' bindings in classes and structs, and the value definitions in enums. -For classes, the list may include compiler generated fields implied by the use of primary constructors.

- - -

CompiledName: get_FSharpFields

-
- - x.FullName - -
- Signature: string
-
-
-

Get the full name of the type or module

- - -

CompiledName: get_FullName

-
- - x.GenericParameters - -
- Signature: IList<FSharpGenericParameter>
-
-
-

Get the generic parameters, possibly including unit-of-measure parameters

- - -

CompiledName: get_GenericParameters

-
- - x.HasAssemblyCodeRepresentation - -
- Signature: bool
-
-
-

Indicates if the type is implemented through a mapping to IL assembly code. This is only -true for types in FSharp.Core.dll

- - -

CompiledName: get_HasAssemblyCodeRepresentation

-
- - x.HasFSharpModuleSuffix - -
- Signature: bool
-
-
-

Indicates that a module is compiled to a class with the given mangled name. The mangling is reversed during lookup

- - -

CompiledName: get_HasFSharpModuleSuffix

-
- - x.IsArrayType - -
- Signature: bool
-
-
-

Indicates if the entity is an array type

- - -

CompiledName: get_IsArrayType

-
- - x.IsAttributeType - -
- Signature: bool
-
-
-

Check if the entity inherits from System.Attribute in its type hierarchy

- - -

CompiledName: get_IsAttributeType

-
- - x.IsByRef - -
- Signature: bool
-
-
-

Indicates if is the 'byref<_>' type definition used for byref types in F#-compiled assemblies

- - -

CompiledName: get_IsByRef

-
- - x.IsClass - -
- Signature: bool
-
-
-

Indicates if the entity is a class type definition

- - -

CompiledName: get_IsClass

-
- - x.IsDelegate - -
- Signature: bool
-
-
-

Indicates if the entity is a delegate type definition

- - -

CompiledName: get_IsDelegate

-
- - x.IsEnum - -
- Signature: bool
-
-
-

Indicates if the entity is an enum type definition

- - -

CompiledName: get_IsEnum

-
- - x.IsFSharp - -
- Signature: bool
-
-
-

Indicates if this is a reference to something in an F#-compiled assembly

- - -

CompiledName: get_IsFSharp

-
- - x.IsFSharpAbbreviation - -
- Signature: bool
-
-
-

Indicates if the entity is a measure, type or exception abbreviation

- - -

CompiledName: get_IsFSharpAbbreviation

-
- - x.IsFSharpExceptionDeclaration - -
- Signature: bool
-
-
-

Indicates an F# exception declaration

- - -

CompiledName: get_IsFSharpExceptionDeclaration

-
- - x.IsFSharpModule - -
- Signature: bool
-
-
-

Indicates if the entity is an F# module definition

- - -

CompiledName: get_IsFSharpModule

-
- - x.IsFSharpRecord - -
- Signature: bool
-
-
-

Indicates if the entity is record type

- - -

CompiledName: get_IsFSharpRecord

-
- - x.IsFSharpUnion - -
- Signature: bool
-
-
-

Indicates if the entity is union type

- - -

CompiledName: get_IsFSharpUnion

-
- - x.IsInterface - -
- Signature: bool
-
-
-

Indicates if the entity is an interface type definition

- - -

CompiledName: get_IsInterface

-
- - x.IsMeasure - -
- Signature: bool
-
-
-

Indicates if the entity is a measure definition

- - -

CompiledName: get_IsMeasure

-
- - x.IsNamespace - -
- Signature: bool
-
-
-

Indicates if the entity is a part of a namespace path

- - -

CompiledName: get_IsNamespace

-
- - x.IsOpaque - -
- Signature: bool
-
-
-

Indicates if the entity is a type definition for a reference type where the implementation details are hidden by a signature

- - -

CompiledName: get_IsOpaque

-
- - x.IsProvided - -
- Signature: bool
-
-
-

Indicates if the entity is a provided type

- - -

CompiledName: get_IsProvided

-
- - x.IsProvidedAndErased - -
- Signature: bool
-
-
-

Indicates if the entity is an erased provided type

- - -

CompiledName: get_IsProvidedAndErased

-
- - x.IsProvidedAndGenerated - -
- Signature: bool
-
-
-

Indicates if the entity is a generated provided type

- - -

CompiledName: get_IsProvidedAndGenerated

-
- - x.IsStaticInstantiation - -
- Signature: bool
-
-
-

Indicates if the entity is a 'fake' symbol related to a static instantiation of a type provider

- - -

CompiledName: get_IsStaticInstantiation

-
- - x.IsUnresolved - -
- Signature: bool
-
-
-

Indicates if the entity is in an unresolved assembly

- - -

CompiledName: get_IsUnresolved

-
- - x.IsValueType - -
- Signature: bool
-
-
-

Indicates if the entity is a struct or enum

- - -

CompiledName: get_IsValueType

-
- - x.LogicalName - -
- Signature: string
-
-
-

Get the name of the type or module, possibly with `n mangling

- - -

CompiledName: get_LogicalName

-
- - x.MembersFunctionsAndValues - -
- Signature: IList<FSharpMemberOrFunctionOrValue>
-
-
-

Get the properties, events and methods of a type definitions, or the functions and values of a module

- - -

CompiledName: get_MembersFunctionsAndValues

-
- - x.MembersOrValues - -
- Signature: IList<FSharpMemberOrFunctionOrValue>
- - Attributes:
-[<Obsolete("Renamed to MembersFunctionsAndValues")>]
-
-
-
-
- WARNING: This API is obsolete -

Renamed to MembersFunctionsAndValues

-
- -

CompiledName: get_MembersOrValues

-
- - x.Namespace - -
- Signature: string option
-
-
-

Get the namespace containing the type or module, if any. Use 'None' for item not in a namespace.

- - -

CompiledName: get_Namespace

-
- - x.NestedEntities - -
- Signature: IList<FSharpEntity>
-
-
-

Get the modules and types defined in a module, or the nested types of a type

- - -

CompiledName: get_NestedEntities

-
- - x.QualifiedName - -
- Signature: string
-
-
-

Get the fully qualified name of the type or module

- - -

CompiledName: get_QualifiedName

-
- - x.RecordFields - -
- Signature: IList<FSharpField>
- - Attributes:
-[<Obsolete("Renamed to FSharpFields")>]
-
-
-
-
- WARNING: This API is obsolete -

Renamed to FSharpFields

-
- -

CompiledName: get_RecordFields

-
- - x.RepresentationAccessibility - -
- Signature: FSharpAccessibility
-
-
-

Get the declared accessibility of the representation, not taking signatures into account

- - -

CompiledName: get_RepresentationAccessibility

-
- - x.StaticParameters - -
- Signature: IList<FSharpStaticParameter>
-
-
-

Get the static parameters for a provided type

- - -

CompiledName: get_StaticParameters

-
- - x.TryFullName - -
- Signature: string option
-
-
-

Get the full name of the type or module if it is available

- - -

CompiledName: get_TryFullName

-
- - x.UnionCases - -
- Signature: IList<FSharpUnionCase>
-
-
-

Get the cases of a union type

- - -

CompiledName: get_UnionCases

-
- - x.UsesPrefixDisplay - -
- Signature: bool
-
-
-

Indicates if the type prefers the "tycon" syntax for display etc.

- - -

CompiledName: get_UsesPrefixDisplay

-
- - x.XmlDoc - -
- Signature: IList<string>
-
-
-

Get the in-memory XML documentation for the entity, used when code is checked in-memory

- - -

CompiledName: get_XmlDoc

-
- - x.XmlDocSig - -
- Signature: string
-
-
-

Get the XML documentation signature for the entity, used for .xml file lookup for compiled code

- - -

CompiledName: get_XmlDocSig

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharperrorinfo.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharperrorinfo.html deleted file mode 100644 index 2bd0f110be..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharperrorinfo.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - FSharpErrorInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpErrorInfo

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Object model for diagnostics

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.End - -
- Signature: pos
-
-
- -

CompiledName: get_End

-
- - x.EndColumn - -
- Signature: int
-
-
- -

CompiledName: get_EndColumn

-
- - x.EndLineAlternate - -
- Signature: int
-
-
- -

CompiledName: get_EndLineAlternate

-
- - x.ErrorNumber - -
- Signature: int
-
-
- -

CompiledName: get_ErrorNumber

-
- - x.FileName - -
- Signature: string
-
-
- -

CompiledName: get_FileName

-
- - x.Message - -
- Signature: string
-
-
- -

CompiledName: get_Message

-
- - x.Range - -
- Signature: range
-
-
- -

CompiledName: get_Range

-
- - x.Severity - -
- Signature: FSharpErrorSeverity
-
-
- -

CompiledName: get_Severity

-
- - x.Start - -
- Signature: pos
-
-
- -

CompiledName: get_Start

-
- - x.StartColumn - -
- Signature: int
-
-
- -

CompiledName: get_StartColumn

-
- - x.StartLineAlternate - -
- Signature: int
-
-
- -

CompiledName: get_StartLineAlternate

-
- - x.Subcategory - -
- Signature: string
-
-
- -

CompiledName: get_Subcategory

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharperrorseverity.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharperrorseverity.html deleted file mode 100644 index 942c9146a6..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharperrorseverity.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - - FSharpErrorSeverity - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpErrorSeverity

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Error - -
- Signature:
-
-
- -
- - Warning - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpexpr.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpexpr.html deleted file mode 100644 index b99ca0cca1..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpexpr.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - FSharpExpr - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpExpr

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents a checked and reduced expression, as seen by the F# language. The active patterns -in 'FSharp.Compiler.SourceCodeServices' can be used to analyze information about the expression.

-

Pattern matching is reduced to decision trees and conditional tests. Some other -constructs may be represented in reduced form.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.ImmediateSubExpressions - -
- Signature: FSharpExpr list
-
-
-

The immediate sub-expressions of the expression.

- - -

CompiledName: get_ImmediateSubExpressions

-
- - x.Range - -
- Signature: range
-
-
-

The range of the expression

- - -

CompiledName: get_Range

-
- - x.Type - -
- Signature: FSharpType
-
-
-

The type of the expression

- - -

CompiledName: get_Type

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpfield.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpfield.html deleted file mode 100644 index 64b5b0463c..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpfield.html +++ /dev/null @@ -1,461 +0,0 @@ - - - - - FSharpField - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpField

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

A subtype of FSharpSymbol that represents a record or union case field as seen by the F# language

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Accessibility - -
- Signature: FSharpAccessibility
-
-
-

Indicates if the declared visibility of the field, not taking signatures into account

- - -

CompiledName: get_Accessibility

-
- - x.AnonRecordFieldDetails - -
- Signature: FSharpAnonRecordTypeDetails * FSharpType [] * int
-
-
-

If the field is from an anonymous record type then get the details of the field including the index in the sorted array of fields

- - -

CompiledName: get_AnonRecordFieldDetails

-
- - x.DeclarationLocation - -
- Signature: range
-
-
-

Get the declaration location of the field

- - -

CompiledName: get_DeclarationLocation

-
- - x.DeclaringEntity - -
- Signature: FSharpEntity option
-
-
-

Get the declaring entity of this field, if any. Fields from anonymous types do not have a declaring entity

- - -

CompiledName: get_DeclaringEntity

-
- - x.DeclaringUnionCase - -
- Signature: FSharpUnionCase option
-
-
-

Returns the declaring union case symbol

- - -

CompiledName: get_DeclaringUnionCase

-
- - x.FieldAttributes - -
- Signature: IList<FSharpAttribute>
-
-
-

Get the attributes attached to generated field

- - -

CompiledName: get_FieldAttributes

-
- - x.FieldType - -
- Signature: FSharpType
-
-
-

Get the type of the field, w.r.t. the generic parameters of the enclosing type constructor

- - -

CompiledName: get_FieldType

-
- - x.IsAnonRecordField - -
- Signature: bool
-
-
-

Is this a field from an anonymous record type?

- - -

CompiledName: get_IsAnonRecordField

-
- - x.IsCompilerGenerated - -
- Signature: bool
-
-
-

Indicates a compiler generated field, not visible to Intellisense or name resolution

- - -

CompiledName: get_IsCompilerGenerated

-
- - x.IsDefaultValue - -
- Signature: bool
-
-
-

Indicates if the field declared is declared 'DefaultValue'

- - -

CompiledName: get_IsDefaultValue

-
- - x.IsLiteral - -
- Signature: bool
-
-
-

Indicates if the field has a literal value

- - -

CompiledName: get_IsLiteral

-
- - x.IsMutable - -
- Signature: bool
-
-
-

Indicates if the field is declared 'static'

- - -

CompiledName: get_IsMutable

-
- - x.IsNameGenerated - -
- Signature: bool
-
-
-

Indicates if the field name was generated by compiler (e.g. ItemN names in union cases and DataN in exceptions). -This API returns true for source defined symbols only.

- - -

CompiledName: get_IsNameGenerated

-
- - x.IsStatic - -
- Signature: bool
-
-
-

Indicates a static field

- - -

CompiledName: get_IsStatic

-
- - x.IsUnionCaseField - -
- Signature: bool
-
-
-

Indicates if the field is declared in a union case

- - -

CompiledName: get_IsUnionCaseField

-
- - x.IsUnresolved - -
- Signature: bool
-
-
-

Indicates if the record field is for a type in an unresolved assembly

- - -

CompiledName: get_IsUnresolved

-
- - x.IsVolatile - -
- Signature: bool
-
-
-

Indicates if the field is declared volatile

- - -

CompiledName: get_IsVolatile

-
- - x.LiteralValue - -
- Signature: obj option
-
-
-

Get the default initialization info, for static literals

- - -

CompiledName: get_LiteralValue

-
- - x.Name - -
- Signature: string
-
-
-

Get the name of the field

- - -

CompiledName: get_Name

-
- - x.PropertyAttributes - -
- Signature: IList<FSharpAttribute>
-
-
-

Get the attributes attached to generated property

- - -

CompiledName: get_PropertyAttributes

-
- - x.XmlDoc - -
- Signature: IList<string>
-
-
-

Get the in-memory XML documentation for the field, used when code is checked in-memory

- - -

CompiledName: get_XmlDoc

-
- - x.XmlDocSig - -
- Signature: string
-
-
-

Get the XML documentation signature for .xml file lookup for the field, used for .xml file lookup for compiled code

- - -

CompiledName: get_XmlDocSig

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpfileutilities.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpfileutilities.html deleted file mode 100644 index 45fdd9242f..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpfileutilities.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - FSharpFileUtilities - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpFileUtilities

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

A set of helpers for dealing with F# files.

- -
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - isScriptFile(arg1) - -
- Signature: string -> bool
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpfinddeclfailurereason.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpfinddeclfailurereason.html deleted file mode 100644 index 2f9b48cfc1..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpfinddeclfailurereason.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - FSharpFindDeclFailureReason - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpFindDeclFailureReason

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents the reason why the GetDeclarationLocation operation failed.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - NoSourceCode - -
- Signature:
-
-
-

Source code file is not available

- - -
- - ProvidedMember(string) - -
- Signature: string
-
-
-

Trying to find declaration of ProvidedMember without TypeProviderDefinitionLocationAttribute

- - -
- - ProvidedType(string) - -
- Signature: string
-
-
-

Trying to find declaration of ProvidedType without TypeProviderDefinitionLocationAttribute

- - -
- - Unknown(message) - -
- Signature: string
-
-
-

Generic reason: no particular information about error apart from a message

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpfinddeclresult.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpfinddeclresult.html deleted file mode 100644 index 4a4cae3ccc..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpfinddeclresult.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - FSharpFindDeclResult - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpFindDeclResult

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents the result of the GetDeclarationLocation operation.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - DeclFound(range) - -
- Signature: range
-
-
-

Indicates a declaration location was found

- - -
- - DeclNotFound(...) - -
- Signature: FSharpFindDeclFailureReason
-
-
-

Indicates a declaration location was not found, with an additional reason

- - -
- - ExternalDecl(assembly,externalSym) - -
- Signature: string * ExternalSymbol
-
-
-

Indicates an external declaration was found

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparameter.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparameter.html deleted file mode 100644 index fb8e74630f..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparameter.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - FSharpGenericParameter - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpGenericParameter

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

A subtype of FSharpSymbol that represents a generic parameter for an FSharpSymbol

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Attributes - -
- Signature: IList<FSharpAttribute>
-
-
-

Get the declared attributes of the type parameter.

- - -

CompiledName: get_Attributes

-
- - x.Constraints - -
- Signature: IList<FSharpGenericParameterConstraint>
-
-
-

Get the declared or inferred constraints for the type parameter

- - -

CompiledName: get_Constraints

-
- - x.DeclarationLocation - -
- Signature: range
-
-
-

Get the range of the generic parameter

- - -

CompiledName: get_DeclarationLocation

-
- - x.IsCompilerGenerated - -
- Signature: bool
-
-
-

Indicates if this is a compiler generated type parameter

- - -

CompiledName: get_IsCompilerGenerated

-
- - x.IsMeasure - -
- Signature: bool
-
-
-

Indicates if this is a measure variable

- - -

CompiledName: get_IsMeasure

-
- - x.IsSolveAtCompileTime - -
- Signature: bool
-
-
-

Indicates if this is a statically resolved type variable

- - -

CompiledName: get_IsSolveAtCompileTime

-
- - x.Name - -
- Signature: string
-
-
-

Get the name of the generic parameter

- - -

CompiledName: get_Name

-
- - x.XmlDoc - -
- Signature: IList<string>
-
-
-

Get the in-memory XML documentation for the type parameter, used when code is checked in-memory

- - -

CompiledName: get_XmlDoc

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparameterconstraint.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparameterconstraint.html deleted file mode 100644 index 8cb617f8c3..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparameterconstraint.html +++ /dev/null @@ -1,414 +0,0 @@ - - - - - FSharpGenericParameterConstraint - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpGenericParameterConstraint

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a constraint on a generic type parameter

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.CoercesToTarget - -
- Signature: FSharpType
-
-
-

Gets further information about a coerces-to constraint

- - -

CompiledName: get_CoercesToTarget

-
- - x.DefaultsToConstraintData - -
- Signature: FSharpGenericParameterDefaultsToConstraint
-
-
-

Gets further information about a defaults-to constraint

- - -

CompiledName: get_DefaultsToConstraintData

-
- - x.DelegateConstraintData - -
- Signature: FSharpGenericParameterDelegateConstraint
-
-
-

Gets further information about a delegate constraint

- - -

CompiledName: get_DelegateConstraintData

-
- - x.EnumConstraintTarget - -
- Signature: FSharpType
-
-
-

Gets further information about an enumeration constraint

- - -

CompiledName: get_EnumConstraintTarget

-
- - x.IsCoercesToConstraint - -
- Signature: bool
-
-
-

Indicates a constraint that a type is a subtype of the given type

- - -

CompiledName: get_IsCoercesToConstraint

-
- - x.IsComparisonConstraint - -
- Signature: bool
-
-
-

Indicates a constraint that a type supports F# generic comparison

- - -

CompiledName: get_IsComparisonConstraint

-
- - x.IsDefaultsToConstraint - -
- Signature: bool
-
-
-

Indicates a default value for an inference type variable should it be neither generalized nor solved

- - -

CompiledName: get_IsDefaultsToConstraint

-
- - x.IsDelegateConstraint - -
- Signature: bool
-
-
-

Indicates a constraint that a type is a delegate from the given tuple of args to the given return type

- - -

CompiledName: get_IsDelegateConstraint

-
- - x.IsEnumConstraint - -
- Signature: bool
-
-
-

Indicates a constraint that a type is an enum with the given underlying

- - -

CompiledName: get_IsEnumConstraint

-
- - x.IsEqualityConstraint - -
- Signature: bool
-
-
-

Indicates a constraint that a type supports F# generic equality

- - -

CompiledName: get_IsEqualityConstraint

-
- - x.IsMemberConstraint - -
- Signature: bool
-
-
-

Indicates a constraint that a type has a member with the given signature

- - -

CompiledName: get_IsMemberConstraint

-
- - x.IsNonNullableValueTypeConstraint - -
- Signature: bool
-
-
-

Indicates a constraint that a type is a non-Nullable value type

- - -

CompiledName: get_IsNonNullableValueTypeConstraint

-
- - x.IsReferenceTypeConstraint - -
- Signature: bool
-
-
-

Indicates a constraint that a type is a reference type

- - -

CompiledName: get_IsReferenceTypeConstraint

-
- - x.IsRequiresDefaultConstructorConstraint - -
- Signature: bool
-
-
-

Indicates a constraint that a type has a parameterless constructor

- - -

CompiledName: get_IsRequiresDefaultConstructorConstraint

-
- - x.IsSimpleChoiceConstraint - -
- Signature: bool
-
-
-

Indicates a constraint that is a type is a simple choice between one of the given ground types. Used by printf format strings.

- - -

CompiledName: get_IsSimpleChoiceConstraint

-
- - x.IsSupportsNullConstraint - -
- Signature: bool
-
-
-

Indicates a constraint that a type has a 'null' value

- - -

CompiledName: get_IsSupportsNullConstraint

-
- - x.IsUnmanagedConstraint - -
- Signature: bool
-
-
-

Indicates a constraint that a type is an unmanaged type

- - -

CompiledName: get_IsUnmanagedConstraint

-
- - x.MemberConstraintData - -
- Signature: FSharpGenericParameterMemberConstraint
-
-
-

Gets further information about a member constraint

- - -

CompiledName: get_MemberConstraintData

-
- - x.SimpleChoices - -
- Signature: IList<FSharpType>
-
-
-

Gets further information about a choice constraint

- - -

CompiledName: get_SimpleChoices

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparameterdefaultstoconstraint.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparameterdefaultstoconstraint.html deleted file mode 100644 index cef49ad0c4..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparameterdefaultstoconstraint.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - FSharpGenericParameterDefaultsToConstraint - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpGenericParameterDefaultsToConstraint

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents further information about a 'defaults to' constraint on a generic type parameter

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.DefaultsToPriority - -
- Signature: int
-
-
-

Get the priority off the 'defaults to' constraint

- - -

CompiledName: get_DefaultsToPriority

-
- - x.DefaultsToTarget - -
- Signature: FSharpType
-
-
-

Get the default type associated with the 'defaults to' constraint

- - -

CompiledName: get_DefaultsToTarget

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparameterdelegateconstraint.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparameterdelegateconstraint.html deleted file mode 100644 index 8d9f35d6f7..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparameterdelegateconstraint.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - FSharpGenericParameterDelegateConstraint - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpGenericParameterDelegateConstraint

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents further information about a delegate constraint on a generic type parameter

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.DelegateReturnType - -
- Signature: FSharpType
-
-
-

Get the return type required by the constraint

- - -

CompiledName: get_DelegateReturnType

-
- - x.DelegateTupledArgumentType - -
- Signature: FSharpType
-
-
-

Get the tupled argument type required by the constraint

- - -

CompiledName: get_DelegateTupledArgumentType

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparametermemberconstraint.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparametermemberconstraint.html deleted file mode 100644 index 71c722353b..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpgenericparametermemberconstraint.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - FSharpGenericParameterMemberConstraint - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpGenericParameterMemberConstraint

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents further information about a member constraint on a generic type parameter

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.MemberArgumentTypes - -
- Signature: IList<FSharpType>
-
-
-

Get the argument types of the method required by the constraint

- - -

CompiledName: get_MemberArgumentTypes

-
- - x.MemberIsStatic - -
- Signature: bool
-
-
-

Indicates if the the method required by the constraint must be static

- - -

CompiledName: get_MemberIsStatic

-
- - x.MemberName - -
- Signature: string
-
-
-

Get the name of the method required by the constraint

- - -

CompiledName: get_MemberName

-
- - x.MemberReturnType - -
- Signature: FSharpType
-
-
-

Get the return type of the method required by the constraint

- - -

CompiledName: get_MemberReturnType

-
- - x.MemberSources - -
- Signature: IList<FSharpType>
-
-
-

Get the types that may be used to satisfy the constraint

- - -

CompiledName: get_MemberSources

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpglyph.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpglyph.html deleted file mode 100644 index 10303443fc..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpglyph.html +++ /dev/null @@ -1,379 +0,0 @@ - - - - - FSharpGlyph - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpGlyph

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Class - -
- Signature:
-
-
- -
- - Constant - -
- Signature:
-
-
- -
- - Delegate - -
- Signature:
-
-
- -
- - Enum - -
- Signature:
-
-
- -
- - EnumMember - -
- Signature:
-
-
- -
- - Error - -
- Signature:
-
-
- -
- - Event - -
- Signature:
-
-
- -
- - Exception - -
- Signature:
-
-
- -
- - ExtensionMethod - -
- Signature:
-
-
- -
- - Field - -
- Signature:
-
-
- -
- - Interface - -
- Signature:
-
-
- -
- - Method - -
- Signature:
-
-
- -
- - Module - -
- Signature:
-
-
- -
- - NameSpace - -
- Signature:
-
-
- -
- - OverridenMethod - -
- Signature:
-
-
- -
- - Property - -
- Signature:
-
-
- -
- - Struct - -
- Signature:
-
-
- -
- - Type - -
- Signature:
-
-
- -
- - Typedef - -
- Signature:
-
-
- -
- - Union - -
- Signature:
-
-
- -
- - Variable - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpimplementationfilecontents.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpimplementationfilecontents.html deleted file mode 100644 index 0a37e7d224..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpimplementationfilecontents.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - FSharpImplementationFileContents - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpImplementationFileContents

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Represents the definitional contents of a single file or fragment in an assembly, as seen by the F# language

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Declarations - -
- Signature: FSharpImplementationFileDeclaration list
-
-
-

Get the declarations that make up this implementation file

- - -

CompiledName: get_Declarations

-
- - x.FileName - -
- Signature: string
-
-
-

Get the system path of the implementation file

- - -

CompiledName: get_FileName

-
- - x.HasExplicitEntryPoint - -
- Signature: bool
-
-
-

Indicates if the implementation file has an explicit entry point

- - -

CompiledName: get_HasExplicitEntryPoint

-
- - x.IsScript - -
- Signature: bool
-
-
-

Indicates if the implementation file is a script

- - -

CompiledName: get_IsScript

-
- - x.QualifiedName - -
- Signature: string
-
-
-

The qualified name acts to fully-qualify module specifications and implementations

- - -

CompiledName: get_QualifiedName

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpimplementationfiledeclaration.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpimplementationfiledeclaration.html deleted file mode 100644 index 379648c409..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpimplementationfiledeclaration.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - FSharpImplementationFileDeclaration - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpImplementationFileDeclaration

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Represents a declaration in an implementation file, as seen by the F# language

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Entity(...) - -
- Signature: FSharpEntity * FSharpImplementationFileDeclaration list
-
-
-

Represents the declaration of a type

- - -
- - InitAction(FSharpExpr) - -
- Signature: FSharpExpr
-
-
-

Represents the declaration of a static initialization action

- - -
- - MemberOrFunctionOrValue(...) - -
- Signature: FSharpMemberOrFunctionOrValue * FSharpMemberOrFunctionOrValue list list * FSharpExpr
-
-
-

Represents the declaration of a member, function or value, including the parameters and body of the member

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpinlineannotation.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpinlineannotation.html deleted file mode 100644 index e6676d25f7..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpinlineannotation.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - FSharpInlineAnnotation - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpInlineAnnotation

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - AggressiveInline - -
- Signature:
-
-
-

Indicates the value is aggressively inlined by the .NET runtime

- - -
- - AlwaysInline - -
- Signature:
-
-
-

Indicates the value is inlined but compiled code for the function still exists, e.g. to satisfy interfaces on objects, but that it is also always inlined

- - -
- - NeverInline - -
- Signature:
-
-
-

Indicates the value is never inlined

- - -
- - OptionalInline - -
- Signature:
-
-
-

Indicates the value is optionally inlined

- - -
- - PseudoValue - -
- Signature:
-
-
-

Indicates the value is inlined and compiled code for the function does not exist

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharplinetokenizer.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharplinetokenizer.html deleted file mode 100644 index 652095513a..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharplinetokenizer.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - FSharpLineTokenizer - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpLineTokenizer

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Object to tokenize a line of F# source code, starting with the given lexState. The lexState should be FSharpTokenizerLexState.Initial for -the first line of text. Returns an array of ranges of the text and two enumerations categorizing the -tokens and characters covered by that range, i.e. FSharpTokenColorKind and FSharpTokenCharKind. The enumerations -are somewhat adhoc but useful enough to give good colorization options to the user in an IDE.

-

A new lexState is also returned. An IDE-plugin should in general cache the lexState -values for each line of the edited code.

- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.ScanToken(lexState) - -
- Signature: lexState:FSharpTokenizerLexState -> FSharpTokenInfo option * FSharpTokenizerLexState
-
-
-

Scan one token from the line

- - -
-

Static members

- - - - - - - - - - - - - - -
Static memberDescription
- - FSharpLineTokenizer.ColorStateOfLexState(...) - -
- Signature: FSharpTokenizerLexState -> FSharpTokenizerColorState
-
-
- -
- - FSharpLineTokenizer.LexStateOfColorState(...) - -
- Signature: FSharpTokenizerColorState -> FSharpTokenizerLexState
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpmemberorfunctionorvalue.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpmemberorfunctionorvalue.html deleted file mode 100644 index 9c1445a464..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpmemberorfunctionorvalue.html +++ /dev/null @@ -1,1045 +0,0 @@ - - - - - FSharpMemberOrFunctionOrValue - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpMemberOrFunctionOrValue

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

A subtype of F# symbol that represents an F# method, property, event, function or value, including extension members.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Accessibility - -
- Signature: FSharpAccessibility
-
-
-

Get the accessibility information for the member, function or value

- - -

CompiledName: get_Accessibility

-
- - x.ApparentEnclosingEntity - -
- Signature: FSharpEntity
-
-
-

Get the logical enclosing entity, which for an extension member is type being extended

- - -

CompiledName: get_ApparentEnclosingEntity

-
- - x.Attributes - -
- Signature: IList<FSharpAttribute>
-
-
-

Custom attributes attached to the value. These contain references to other values (i.e. constructors in types). Mutable to fixup
-these value references after copying a collection of values.

- - -

CompiledName: get_Attributes

-
- - x.CompiledName - -
- Signature: string
-
-
-

Get the member name in compiled code

- - -

CompiledName: get_CompiledName

-
- - x.CurriedParameterGroups - -
- Signature: IList<IList<FSharpParameter>>
-
-
- -

CompiledName: get_CurriedParameterGroups

-
- - x.DeclarationLocation - -
- Signature: range
-
-
-

Get the declaration location of the member, function or value

- - -

CompiledName: get_DeclarationLocation

-
- - x.DeclaringEntity - -
- Signature: FSharpEntity option
-
-
-

Get the enclosing entity for the definition

- - -

CompiledName: get_DeclaringEntity

-
- - x.DisplayName - -
- Signature: string
-
-
-

Get the name as presented in F# error messages and documentation

- - -

CompiledName: get_DisplayName

-
- - x.EventAddMethod - -
- Signature: FSharpMemberOrFunctionOrValue
-
-
-

Get an associated add method of an event

- - -

CompiledName: get_EventAddMethod

-
- - x.EventDelegateType - -
- Signature: FSharpType
-
-
-

Get an associated delegate type of an event

- - -

CompiledName: get_EventDelegateType

-
- - x.EventForFSharpProperty - -
- Signature: FSharpMemberOrFunctionOrValue option
-
-
-

Gets the event symbol implied by the use of a property, -for the case where the property is actually an F#-declared CLIEvent.

-

Uses of F#-declared events are considered to be properties as far as the language specification -and this API are concerned.

- - -

CompiledName: get_EventForFSharpProperty

-
- - x.EventIsStandard - -
- Signature: bool
-
-
-

Indicate if an event can be considered to be a property for the F# type system of type IEvent or IDelegateEvent. -In this case ReturnParameter will have a type corresponding to the property type. For -non-standard events, ReturnParameter will have a type corresponding to the delegate type.

- - -

CompiledName: get_EventIsStandard

-
- - x.EventRemoveMethod - -
- Signature: FSharpMemberOrFunctionOrValue
-
-
-

Get an associated remove method of an event

- - -

CompiledName: get_EventRemoveMethod

-
- - x.FormatLayout(context) - -
- Signature: context:FSharpDisplayContext -> Layout
-
-
-

Format the type using the rules of the given display context

- - -
- - x.FullType - -
- Signature: FSharpType
-
-
-

Get the full type of the member, function or value when used as a first class value

- - -

CompiledName: get_FullType

-
- - x.GenericParameters - -
- Signature: IList<FSharpGenericParameter>
-
-
-

Get the typars of the member, function or value

- - -

CompiledName: get_GenericParameters

-
- - x.GetterMethod - -
- Signature: FSharpMemberOrFunctionOrValue
-
-
-

Get an associated getter method of the property

- - -

CompiledName: get_GetterMethod

-
- - x.HasGetterMethod - -
- Signature: bool
-
-
-

Indicates if this is a property and there exists an associated getter method

- - -

CompiledName: get_HasGetterMethod

-
- - x.HasSetterMethod - -
- Signature: bool
-
-
-

Indicates if this is a property and there exists an associated setter method

- - -

CompiledName: get_HasSetterMethod

-
- - x.ImplementedAbstractSignatures - -
- Signature: IList<FSharpAbstractSignature>
-
-
-

Gets the list of the abstract slot signatures implemented by the member

- - -

CompiledName: get_ImplementedAbstractSignatures

-
- - x.InlineAnnotation - -
- Signature: FSharpInlineAnnotation
-
-
-

Get a result indicating if this is a must-inline value

- - -

CompiledName: get_InlineAnnotation

-
- - x.IsActivePattern - -
- Signature: bool
-
-
-

Indicates if this value or member is an F# active pattern

- - -

CompiledName: get_IsActivePattern

-
- - x.IsBaseValue - -
- Signature: bool
-
-
-

Indicates if this is "base" in "base.M(...)"

- - -

CompiledName: get_IsBaseValue

-
- - x.IsCompilerGenerated - -
- Signature: bool
-
-
-

Indicates if this is a compiler generated value

- - -

CompiledName: get_IsCompilerGenerated

-
- - x.IsConstructor - -
- Signature: bool
-
-
-

Indicates if this is a constructor.

- - -

CompiledName: get_IsConstructor

-
- - x.IsConstructorThisValue - -
- Signature: bool
-
-
-

Indicates if this is the "x" in "type C() as x = ..."

- - -

CompiledName: get_IsConstructorThisValue

-
- - x.IsDispatchSlot - -
- Signature: bool
-
-
-

Indicates if this is an abstract member?

- - -

CompiledName: get_IsDispatchSlot

-
- - x.IsEvent - -
- Signature: bool
-
-
-

Indicates if this is an event member

- - -

CompiledName: get_IsEvent

-
- - x.IsEventAddMethod - -
- Signature: bool
-
-
-

Indicates if this is an add method for an event

- - -

CompiledName: get_IsEventAddMethod

-
- - x.IsEventRemoveMethod - -
- Signature: bool
-
-
-

Indicates if this is a remove method for an event

- - -

CompiledName: get_IsEventRemoveMethod

-
- - x.IsExplicitInterfaceImplementation - -
- Signature: bool
-
-
-

Indicates if this is an explicit implementation of an interface member

- - -

CompiledName: get_IsExplicitInterfaceImplementation

-
- - x.IsExtensionMember - -
- Signature: bool
-
-
-

Indicates if this is an extension member?

- - -

CompiledName: get_IsExtensionMember

-
- - x.IsGetterMethod - -
- Signature: bool
- - Attributes:
-[<Obsolete("Renamed to IsPropertyGetterMethod, which returns 'true' only for method symbols, not for property symbols")>]
-
-
-
-
- WARNING: This API is obsolete -

Renamed to IsPropertyGetterMethod, which returns 'true' only for method symbols, not for property symbols

-
-

Indicates if this is a getter method for a property, or a use of a property in getter mode

- - -

CompiledName: get_IsGetterMethod

-
- - x.IsImplicitConstructor - -
- Signature: bool
-
-
-

Indicates if this is an implicit constructor?

- - -

CompiledName: get_IsImplicitConstructor

-
- - x.IsInstanceMember - -
- Signature: bool
-
-
-

Indicates if this is an instance member, when seen from F#?

- - -

CompiledName: get_IsInstanceMember

-
- - x.IsInstanceMemberInCompiledCode - -
- Signature: bool
-
-
-

Indicates if this is an instance member in compiled code.

-

Explanatory note: some members such as IsNone and IsSome on types with UseNullAsTrueValue appear -as instance members in F# code but are compiled as static members.

- - -

CompiledName: get_IsInstanceMemberInCompiledCode

-
- - x.IsMember - -
- Signature: bool
-
-
-

Indicates if this is a member, including extension members?

- - -

CompiledName: get_IsMember

-
- - x.IsMemberThisValue - -
- Signature: bool
-
-
-

Indicates if this is the "x" in "member x.M = ..."

- - -

CompiledName: get_IsMemberThisValue

-
- - x.IsModuleValueOrMember - -
- Signature: bool
-
-
-

Indicates if this is a module or member value

- - -

CompiledName: get_IsModuleValueOrMember

-
- - x.IsMutable - -
- Signature: bool
-
-
-

Indicates if this is a mutable value

- - -

CompiledName: get_IsMutable

-
- - x.IsOverrideOrExplicitInterfaceImplementation(...) - -
- Signature: bool
-
-
-

Indicates if this is an 'override', 'default' or an explicit implementation of an interface member

- - -

CompiledName: get_IsOverrideOrExplicitInterfaceImplementation

-
- - x.IsOverrideOrExplicitMember - -
- Signature: bool
- - Attributes:
-[<Obsolete("Renamed to IsOverrideOrExplicitInterfaceImplementation")>]
-
-
-
-
- WARNING: This API is obsolete -

Renamed to IsOverrideOrExplicitInterfaceImplementation

-
- -

CompiledName: get_IsOverrideOrExplicitMember

-
- - x.IsProperty - -
- Signature: bool
-
-
-

Indicates if this is a property member

- - -

CompiledName: get_IsProperty

-
- - x.IsPropertyGetterMethod - -
- Signature: bool
-
-
-

Indicates if this is a getter method for a property, or a use of a property in getter mode

- - -

CompiledName: get_IsPropertyGetterMethod

-
- - x.IsPropertySetterMethod - -
- Signature: bool
-
-
-

Indicates if this is a setter method for a property, or a use of a property in setter mode

- - -

CompiledName: get_IsPropertySetterMethod

-
- - x.IsSetterMethod - -
- Signature: bool
- - Attributes:
-[<Obsolete("Renamed to IsPropertySetterMethod, which returns 'true' only for method symbols, not for property symbols")>]
-
-
-
-
- WARNING: This API is obsolete -

Renamed to IsPropertySetterMethod, which returns 'true' only for method symbols, not for property symbols

-
-

Indicates if this is a setter method for a property, or a use of a property in setter mode

- - -

CompiledName: get_IsSetterMethod

-
- - x.IsTypeFunction - -
- Signature: bool
-
-
-

Indicates if this is an F# type function

- - -

CompiledName: get_IsTypeFunction

-
- - x.IsUnresolved - -
- Signature: bool
-
-
-

Indicates if the member, function or value is in an unresolved assembly

- - -

CompiledName: get_IsUnresolved

-
- - x.IsValCompiledAsMethod - -
- Signature: bool
-
-
-

Indicated if this is a value compiled to a method

- - -

CompiledName: get_IsValCompiledAsMethod

-
- - x.IsValue - -
- Signature: bool
-
-
-

Indicated if this is a value

- - -

CompiledName: get_IsValue

-
- - x.LiteralValue - -
- Signature: obj option
-
-
-

Indicates if this is a [] value, and if so what value? (may be null)

- - -

CompiledName: get_LiteralValue

-
- - x.LogicalName - -
- Signature: string
-
-
-

Get the logical name of the member

- - -

CompiledName: get_LogicalName

-
- - x.Overloads(arg1) - -
- Signature: bool -> IList<FSharpMemberOrFunctionOrValue> option
-
-
-

Gets the overloads for the current method -matchParameterNumber indicates whether to filter the overloads to match the number of parameters in the current symbol

- - -
- - x.ReturnParameter - -
- Signature: FSharpParameter
-
-
- -

CompiledName: get_ReturnParameter

-
- - x.SetterMethod - -
- Signature: FSharpMemberOrFunctionOrValue
-
-
-

Get an associated setter method of the property

- - -

CompiledName: get_SetterMethod

-
- - x.XmlDoc - -
- Signature: IList<string>
-
-
-

Get the in-memory XML documentation for the value, used when code is checked in-memory

- - -

CompiledName: get_XmlDoc

-
- - x.XmlDocSig - -
- Signature: string
-
-
-

XML documentation signature for the value, used for .xml file lookup for compiled code

- - -

CompiledName: get_XmlDocSig

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpmethodgroup.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpmethodgroup.html deleted file mode 100644 index 12a9320e52..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpmethodgroup.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - FSharpMethodGroup - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpMethodGroup

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents a group of methods (or other items) returned by GetMethods.

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.MethodName - -
- Signature: string
-
-
-

The shared name of the methods (or other items) in the group

- - -

CompiledName: get_MethodName

-
- - x.Methods - -
- Signature: FSharpMethodGroupItem []
-
-
-

The methods (or other items) in the group

- - -

CompiledName: get_Methods

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpmethodgroupitem.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpmethodgroupitem.html deleted file mode 100644 index d3ac8a1dbd..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpmethodgroupitem.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - FSharpMethodGroupItem - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpMethodGroupItem

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents one method (or other item) in a method group. The item may represent either a method or -a single, non-overloaded item such as union case or a named function value.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Description - -
- Signature: FSharpToolTipText
-
-
-

The formatted description text for the method (or other item)

- - -

CompiledName: get_Description

-
- - x.HasParamArrayArg - -
- Signature: bool
-
-
-

Does the method support a params list arg?

- - -

CompiledName: get_HasParamArrayArg

-
- - x.HasParameters - -
- Signature: bool
-
-
-

Does the method support an arguments list? This is always true except for static type instantiations like TP<42,"foo">.

- - -

CompiledName: get_HasParameters

-
- - x.Parameters - -
- Signature: FSharpMethodGroupItemParameter []
-
-
-

The parameters of the method in the overload set

- - -

CompiledName: get_Parameters

-
- - x.ReturnTypeText - -
- Signature: string
-
-
-

The formatted type text for the method (or other item)

- - -

CompiledName: get_ReturnTypeText

-
- - x.StaticParameters - -
- Signature: FSharpMethodGroupItemParameter []
-
-
-

Does the type name or method support a static arguments list, like TP<42,"foo"> or conn.CreateCommand<42, "foo">(arg1, arg2)?

- - -

CompiledName: get_StaticParameters

-
- - x.StructuredDescription - -
- Signature: FSharpStructuredToolTipText
-
-
-

The structured description representation for the method (or other item)

- - -

CompiledName: get_StructuredDescription

-
- - x.StructuredReturnTypeText - -
- Signature: Layout
-
-
-

The The structured description representation for the method (or other item)

- - -

CompiledName: get_StructuredReturnTypeText

-
- - x.XmlDoc - -
- Signature: FSharpXmlDoc
-
-
-

The documentation for the item

- - -

CompiledName: get_XmlDoc

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpmethodgroupitemparameter.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpmethodgroupitemparameter.html deleted file mode 100644 index c032bfd0c8..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpmethodgroupitemparameter.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - FSharpMethodGroupItemParameter - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpMethodGroupItemParameter

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents one parameter for one method (or other item) in a group.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.CanonicalTypeTextForSorting - -
- Signature: string
-
-
-

A key that can be used for sorting the parameters, used to help sort overloads.

- - -

CompiledName: get_CanonicalTypeTextForSorting

-
- - x.Display - -
- Signature: string
-
-
-

The text to display for the parameter including its name, its type and visual indicators of other -information such as whether it is optional.

- - -

CompiledName: get_Display

-
- - x.IsOptional - -
- Signature: bool
-
-
-

Is the parameter optional

- - -

CompiledName: get_IsOptional

-
- - x.ParameterName - -
- Signature: string
-
-
-

The name of the parameter.

- - -

CompiledName: get_ParameterName

-
- - x.StructuredDisplay - -
- Signature: Layout
-
-
-

The structured representation for the parameter including its name, its type and visual indicators of other -information such as whether it is optional.

- - -

CompiledName: get_StructuredDisplay

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigation.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigation.html deleted file mode 100644 index b36d4b1ff4..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigation.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - FSharpNavigation - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpNavigation

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - getNavigation(arg1) - -
- Signature: ParsedInput -> FSharpNavigationItems
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigationdeclarationitem.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigationdeclarationitem.html deleted file mode 100644 index b325b789cc..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigationdeclarationitem.html +++ /dev/null @@ -1,248 +0,0 @@ - - - - - FSharpNavigationDeclarationItem - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpNavigationDeclarationItem

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents an item to be displayed in the navigation bar

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Access - -
- Signature: SynAccess option
-
-
- -

CompiledName: get_Access

-
- - x.BodyRange - -
- Signature: range
-
-
- -

CompiledName: get_BodyRange

-
- - x.EnclosingEntityKind - -
- Signature: FSharpEnclosingEntityKind
-
-
- -

CompiledName: get_EnclosingEntityKind

-
- - x.Glyph - -
- Signature: FSharpGlyph
-
-
- -

CompiledName: get_Glyph

-
- - x.IsAbstract - -
- Signature: bool
-
-
- -

CompiledName: get_IsAbstract

-
- - x.IsSingleTopLevel - -
- Signature: bool
-
-
- -

CompiledName: get_IsSingleTopLevel

-
- - x.Kind - -
- Signature: FSharpNavigationDeclarationItemKind
-
-
- -

CompiledName: get_Kind

-
- - x.Name - -
- Signature: string
-
-
- -

CompiledName: get_Name

-
- - x.Range - -
- Signature: range
-
-
- -

CompiledName: get_Range

-
- - x.UniqueName - -
- Signature: string
-
-
- -

CompiledName: get_UniqueName

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigationdeclarationitemkind.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigationdeclarationitemkind.html deleted file mode 100644 index 76397ac389..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigationdeclarationitemkind.html +++ /dev/null @@ -1,220 +0,0 @@ - - - - - FSharpNavigationDeclarationItemKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpNavigationDeclarationItemKind

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Indicates a kind of item to show in an F# navigation bar

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - ExnDecl - -
- Signature:
-
-
- -
- - FieldDecl - -
- Signature:
-
-
- -
- - MethodDecl - -
- Signature:
-
-
- -
- - ModuleDecl - -
- Signature:
-
-
- -
- - ModuleFileDecl - -
- Signature:
-
-
- -
- - NamespaceDecl - -
- Signature:
-
-
- -
- - OtherDecl - -
- Signature:
-
-
- -
- - PropertyDecl - -
- Signature:
-
-
- -
- - TypeDecl - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigationitems.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigationitems.html deleted file mode 100644 index 223977e1cc..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigationitems.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - FSharpNavigationItems - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpNavigationItems

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents result of 'GetNavigationItems' operation - this contains -all the members and currently selected indices. First level correspond to -types & modules and second level are methods etc.

- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Declarations - -
- Signature: FSharpNavigationTopLevelDeclaration []
-
-
- -

CompiledName: get_Declarations

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigationtopleveldeclaration.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigationtopleveldeclaration.html deleted file mode 100644 index 5fec426a21..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnavigationtopleveldeclaration.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - FSharpNavigationTopLevelDeclaration - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpNavigationTopLevelDeclaration

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents top-level declarations (that should be in the type drop-down) -with nested declarations (that can be shown in the member drop-down)

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Declaration - -
- Signature: FSharpNavigationDeclarationItem
-
-
- -
- - Nested - -
- Signature: FSharpNavigationDeclarationItem []
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnoteworthyparaminfolocations.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnoteworthyparaminfolocations.html deleted file mode 100644 index be28e2d186..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpnoteworthyparaminfolocations.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - FSharpNoteworthyParamInfoLocations - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpNoteworthyParamInfoLocations

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents the locations relevant to activating parameter info in an IDE

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.IsThereACloseParen - -
- Signature: bool
-
-
-

Is false if either this is a call without parens "f x" or the parser recovered as in "f(x,y"

- - -

CompiledName: get_IsThereACloseParen

-
- - x.LongId - -
- Signature: string list
-
-
-

The text of the long identifier prior to the open-parentheses

- - -

CompiledName: get_LongId

-
- - x.LongIdEndLocation - -
- Signature: pos
-
-
-

The end location of long identifier prior to the open-parentheses

- - -

CompiledName: get_LongIdEndLocation

-
- - x.LongIdStartLocation - -
- Signature: pos
-
-
-

The start location of long identifier prior to the open-parentheses

- - -

CompiledName: get_LongIdStartLocation

-
- - x.NamedParamNames - -
- Signature: string option []
-
-
-

Either empty or a name if an actual named parameter; f(0,a=4,?b=None) would be [|None; Some "a"; Some "b"|]

- - -

CompiledName: get_NamedParamNames

-
- - x.OpenParenLocation - -
- Signature: pos
-
-
-

The location of the open-parentheses

- - -

CompiledName: get_OpenParenLocation

-
- - x.TupleEndLocations - -
- Signature: pos []
-
-
-

The locations of commas and close parenthesis (or, last char of last arg, if no final close parenthesis)

- - -

CompiledName: get_TupleEndLocations

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - FSharpNoteworthyParamInfoLocations.Find(...) - -
- Signature: (pos * ParsedInput) -> FSharpNoteworthyParamInfoLocations option
-
-
-

Find the information about parameter info locations at a particular source location

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpobjectexproverride.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpobjectexproverride.html deleted file mode 100644 index 29e536a821..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpobjectexproverride.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - FSharpObjectExprOverride - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpObjectExprOverride

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents a checked method in an object expression, as seen by the F# language.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Body - -
- Signature: FSharpExpr
-
-
-

The expression that forms the body of the method

- - -

CompiledName: get_Body

-
- - x.CurriedParameterGroups - -
- Signature: FSharpMemberOrFunctionOrValue list list
-
-
-

The parameters of the method

- - -

CompiledName: get_CurriedParameterGroups

-
- - x.GenericParameters - -
- Signature: FSharpGenericParameter list
-
-
-

The generic parameters of the method

- - -

CompiledName: get_GenericParameters

-
- - x.Signature - -
- Signature: FSharpAbstractSignature
-
-
-

The signature of the implemented abstract slot

- - -

CompiledName: get_Signature

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpopendeclaration.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpopendeclaration.html deleted file mode 100644 index 763e13562a..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpopendeclaration.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - FSharpOpenDeclaration - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpOpenDeclaration

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents open declaration in F# code.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AppliedScope - -
- Signature: range
-
-
-

Scope in which open declaration is visible.

- - -

CompiledName: get_AppliedScope

-
- - x.IsOwnNamespace - -
- Signature: bool
-
-
-

If it's namespace Xxx.Yyy declaration.

- - -

CompiledName: get_IsOwnNamespace

-
- - x.LongId - -
- Signature: Ident list
-
-
-

Idents.

- - -

CompiledName: get_LongId

-
- - x.Modules - -
- Signature: FSharpEntity list
-
-
-

Modules or namespaces which is opened with this declaration.

- - -

CompiledName: get_Modules

-
- - x.Range - -
- Signature: range option
-
-
-

Range of the open declaration.

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpparameter.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpparameter.html deleted file mode 100644 index 1c0bf8f195..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpparameter.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - FSharpParameter - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpParameter

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

A subtype of FSharpSymbol that represents a parameter

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Attributes - -
- Signature: IList<FSharpAttribute>
-
-
-

The declared attributes of the parameter

- - -

CompiledName: get_Attributes

-
- - x.DeclarationLocation - -
- Signature: range
-
-
-

The declaration location of the parameter

- - -

CompiledName: get_DeclarationLocation

-
- - x.IsInArg - -
- Signature: bool
-
-
-

Indicate this is an in argument

- - -

CompiledName: get_IsInArg

-
- - x.IsOptionalArg - -
- Signature: bool
-
-
-

Indicate this is an optional argument

- - -

CompiledName: get_IsOptionalArg

-
- - x.IsOutArg - -
- Signature: bool
-
-
-

Indicate this is an out argument

- - -

CompiledName: get_IsOutArg

-
- - x.IsParamArrayArg - -
- Signature: bool
-
-
-

Indicate this is a param array argument

- - -

CompiledName: get_IsParamArrayArg

-
- - x.Name - -
- Signature: string option
-
-
-

The optional name of the parameter

- - -

CompiledName: get_Name

-
- - x.Type - -
- Signature: FSharpType
-
-
-

The declared or inferred type of the parameter

- - -

CompiledName: get_Type

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpparsefileresults.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpparsefileresults.html deleted file mode 100644 index 3529882a97..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpparsefileresults.html +++ /dev/null @@ -1,233 +0,0 @@ - - - - - FSharpParseFileResults - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpParseFileResults

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents the results of parsing an F# file

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.DependencyFiles - -
- Signature: string []
-
-
-

When these files change then the build is invalid

- - -

CompiledName: get_DependencyFiles

-
- - x.Errors - -
- Signature: FSharpErrorInfo []
-
-
-

Get the errors and warnings for the parse

- - -

CompiledName: get_Errors

-
- - x.FileName - -
- Signature: string
-
-
-

Name of the file for which this information were created

- - -

CompiledName: get_FileName

-
- - x.FindNoteworthyParamInfoLocations(pos) - -
- Signature: pos:pos -> FSharpNoteworthyParamInfoLocations option
-
-
-

Notable parse info for ParameterInfo at a given location

- - -
- - x.GetNavigationItems() - -
- Signature: unit -> FSharpNavigationItems
-
-
-

Get declared items and the selected item at the specified location

- - -
- - x.ParseHadErrors - -
- Signature: bool
-
-
-

Indicates if any errors occurred during the parse

- - -

CompiledName: get_ParseHadErrors

-
- - x.ParseTree - -
- Signature: ParsedInput option
-
-
-

The syntax tree resulting from the parse

- - -

CompiledName: get_ParseTree

-
- - x.ValidateBreakpointLocation(pos) - -
- Signature: pos:pos -> range option
-
-
-

Return the inner-most range associated with a possible breakpoint location

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpparsingoptions.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpparsingoptions.html deleted file mode 100644 index dcbff02da5..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpparsingoptions.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - FSharpParsingOptions - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpParsingOptions

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Options used to determine active --define conditionals and other options relevant to parsing files in a project

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - CompilingFsLib - -
- Signature: bool
-
-
- -
- - ConditionalCompilationDefines - -
- Signature: string list
-
-
- -
- - ErrorSeverityOptions - -
- Signature: FSharpErrorSeverityOptions
-
-
- -
- - IsExe - -
- Signature: bool
-
-
- -
- - IsInteractive - -
- Signature: bool
-
-
- -
- - LightSyntax - -
- Signature: bool option
-
-
- -
- - SourceFiles - -
- Signature: string []
-
-
- -
-

Static members

- - - - - - - - - - -
Static memberDescription
- - FSharpParsingOptions.Default - -
- Signature: FSharpParsingOptions
-
-
- -

CompiledName: get_Default

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpprojectcontext.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpprojectcontext.html deleted file mode 100644 index cb6a173469..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpprojectcontext.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - FSharpProjectContext - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpProjectContext

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents the checking context implied by the ProjectOptions

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.AccessibilityRights - -
- Signature: FSharpAccessibilityRights
-
-
-

Get the accessibility rights for this project context w.r.t. InternalsVisibleTo attributes granting access to other assemblies

- - -

CompiledName: get_AccessibilityRights

-
- - x.GetReferencedAssemblies() - -
- Signature: unit -> FSharpAssembly list
-
-
-

Get the resolution and full contents of the assemblies referenced by the project options

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpprojectoptions.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpprojectoptions.html deleted file mode 100644 index 8ce1aa7a8c..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpprojectoptions.html +++ /dev/null @@ -1,288 +0,0 @@ - - - - - FSharpProjectOptions - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpProjectOptions

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

A set of information describing a project or script build configuration.

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - ExtraProjectInfo - -
- Signature: obj option
-
-
-

Extra information passed back on event trigger

- - -
- - IsIncompleteTypeCheckEnvironment - -
- Signature: bool
-
-
-

When true, the typechecking environment is known a priori to be incomplete, for -example when a .fs file is opened outside of a project. In this case, the number of error -messages reported is reduced.

- - -
- - LoadTime - -
- Signature: DateTime
-
-
-

Timestamp of project/script load, used to differentiate between different instances of a project load. -This ensures that a complete reload of the project or script type checking -context occurs on project or script unload/reload.

- - -
- - OriginalLoadReferences - -
- Signature: (range * string * string) list
-
-
-

Unused in this API and should be '[]' when used as user-specified input

- - -
- - OtherOptions - -
- Signature: string []
-
-
-

Additional command line argument options for the project. These can include additional files and references.

- - -
- - ProjectFileName - -
- Signature: string
-
-
- -
- - ProjectId - -
- Signature: string option
-
-
-

This is the unique identifier for the project, it is case sensitive. If it's None, will key off of ProjectFileName in our caching.

- - -
- - ReferencedProjects - -
- Signature: (string * FSharpProjectOptions) []
-
-
-

The command line arguments for the other projects referenced by this project, indexed by the -exact text used in the "-r:" reference in FSharpProjectOptions.

- - -
- - SourceFiles - -
- Signature: string []
-
-
-

The files in the project

- - -
- - Stamp - -
- Signature: int64 option
-
-
-

An optional stamp to uniquely identify this set of options -If two sets of options both have stamps, then they are considered equal -if and only if the stamps are equal

- - -
- - UnresolvedReferences - -
- Signature: UnresolvedReferencesSet option
-
-
-

Unused in this API and should be 'None' when used as user-specified input

- - -
- - UseScriptResolutionRules - -
- Signature: bool
-
-
-

When true, use the reference resolution rules for scripts rather than the rules for compiler.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpsourcetokenizer.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpsourcetokenizer.html deleted file mode 100644 index 0cb01f398b..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpsourcetokenizer.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - FSharpSourceTokenizer - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpSourceTokenizer

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Tokenizer for a source file. Holds some expensive-to-compute resources at the scope of the file.

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(conditionalDefines, fileName) - -
- Signature: (conditionalDefines:string list * fileName:string option) -> FSharpSourceTokenizer
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.CreateBufferTokenizer(bufferFiller) - -
- Signature: (bufferFiller:(char [] * int * int -> int)) -> FSharpLineTokenizer
-
-
- -
- - x.CreateLineTokenizer(lineText) - -
- Signature: lineText:string -> FSharpLineTokenizer
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpstaticparameter.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpstaticparameter.html deleted file mode 100644 index c30022e8f1..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpstaticparameter.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - FSharpStaticParameter - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpStaticParameter

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

A subtype of FSharpSymbol that represents a static parameter to an F# type provider

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.DeclarationLocation - -
- Signature: range
-
-
-

Get the declaration location of the static parameter

- - -

CompiledName: get_DeclarationLocation

-
- - x.DefaultValue - -
- Signature: obj
-
-
-

Get the default value for the static parameter

- - -

CompiledName: get_DefaultValue

-
- - x.HasDefaultValue - -
- Signature: bool
- - Attributes:
-[<Obsolete("This member is no longer used, use IsOptional instead")>]
-
-
-
-
- WARNING: This API is obsolete -

This member is no longer used, use IsOptional instead

-
- -

CompiledName: get_HasDefaultValue

-
- - x.IsOptional - -
- Signature: bool
-
-
-

Indicates if the static parameter is optional

- - -

CompiledName: get_IsOptional

-
- - x.Kind - -
- Signature: FSharpType
-
-
-

Get the kind of the static parameter

- - -

CompiledName: get_Kind

-
- - x.Name - -
- Signature: string
-
-
-

Get the name of the static parameter

- - -

CompiledName: get_Name

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpstructuredtooltipelement.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpstructuredtooltipelement.html deleted file mode 100644 index e83dd1a094..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpstructuredtooltipelement.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - FSharpStructuredToolTipElement - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpStructuredToolTipElement

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

A single data tip display element with where text is expressed as

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpstructuredtooltiptext.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpstructuredtooltiptext.html deleted file mode 100644 index 1e8832393c..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpstructuredtooltiptext.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - FSharpStructuredToolTipText - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpStructuredToolTipText

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpsymbol.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpsymbol.html deleted file mode 100644 index 3760a32729..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpsymbol.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - - FSharpSymbol - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpSymbol

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

Represents a symbol in checked F# source code or a compiled .NET component.

-

The subtype of the symbol may reveal further information and can be one of FSharpEntity, FSharpUnionCase -FSharpField, FSharpGenericParameter, FSharpStaticParameter, FSharpMemberOrFunctionOrValue, FSharpParameter, -or FSharpActivePatternCase.

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Assembly - -
- Signature: FSharpAssembly
-
-
-

Get the assembly declaring this symbol

- - -

CompiledName: get_Assembly

-
- - x.DeclarationLocation - -
- Signature: range option
-
-
-

Get the declaration location for the symbol

- - -

CompiledName: get_DeclarationLocation

-
- - x.DisplayName - -
- Signature: string
-
-
-

Gets the short display name for the symbol

- - -

CompiledName: get_DisplayName

-
- - x.FullName - -
- Signature: string
-
-
-

Get a textual representation of the full name of the symbol. The text returned for some symbols -may not be a valid identifier path in F# code, but rather a human-readable representation of the symbol.

- - -

CompiledName: get_FullName

-
- - x.GetEffectivelySameAsHash() - -
- Signature: unit -> int
-
-
-

A hash compatible with the IsEffectivelySameAs relation

- - -
- - x.ImplementationLocation - -
- Signature: range option
-
-
-

Get the implementation location for the symbol if it was declared in a signature that has an implementation

- - -

CompiledName: get_ImplementationLocation

-
- - x.IsAccessible(arg1) - -
- Signature: FSharpAccessibilityRights -> bool
-
-
-

Computes if the symbol is accessible for the given accessibility rights

- - -
- - x.IsEffectivelySameAs(other) - -
- Signature: other:FSharpSymbol -> bool
-
-
-

Return true if two symbols are effectively the same when referred to in F# source code text.
-This sees through signatures (a symbol in a signature will be considered effectively the same as -the matching symbol in an implementation). In addition, other equivalences are applied -when the same F# source text implies the same declaration name - for example, constructors -are considered to be effectively the same symbol as the corresponding type definition.

-

This is the relation used by GetUsesOfSymbol and GetUsesOfSymbolInFile.

- - -
- - x.IsExplicitlySuppressed - -
- Signature: bool
-
-
- -

CompiledName: get_IsExplicitlySuppressed

-
- - x.SignatureLocation - -
- Signature: range option
-
-
-

Get the signature location for the symbol if it was declared in an implementation

- - -

CompiledName: get_SignatureLocation

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - FSharpSymbol.GetAccessibility(arg1) - -
- Signature: FSharpSymbol -> FSharpAccessibility option
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpsymboluse.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpsymboluse.html deleted file mode 100644 index 8949b7e17f..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpsymboluse.html +++ /dev/null @@ -1,301 +0,0 @@ - - - - - FSharpSymbolUse - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpSymbolUse

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Sealed>]
- -
-

-
-

Represents the use of an F# symbol from F# source code

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.DisplayContext - -
- Signature: FSharpDisplayContext
-
-
-

The display context active at the point where the symbol is used. Can be passed to FSharpType.Format -and other methods to format items in a way that is suitable for a specific source code location.

- - -

CompiledName: get_DisplayContext

-
- - x.FileName - -
- Signature: string
-
-
-

The file name the reference occurs in

- - -

CompiledName: get_FileName

-
- - x.IsFromAttribute - -
- Signature: bool
-
-
-

Indicates if the reference is in an attribute

- - -

CompiledName: get_IsFromAttribute

-
- - x.IsFromComputationExpression - -
- Signature: bool
-
-
-

Indicates if the reference is either a builder or a custom operation in a computation expression

- - -

CompiledName: get_IsFromComputationExpression

-
- - x.IsFromDefinition - -
- Signature: bool
-
-
-

Indicates if the reference is a definition for the symbol, either in a signature or implementation

- - -

CompiledName: get_IsFromDefinition

-
- - x.IsFromDispatchSlotImplementation - -
- Signature: bool
-
-
-

Indicates if the reference is via the member being implemented in a class or object expression

- - -

CompiledName: get_IsFromDispatchSlotImplementation

-
- - x.IsFromOpenStatement - -
- Signature: bool
-
-
-

Indicates if the reference is in open statement

- - -

CompiledName: get_IsFromOpenStatement

-
- - x.IsFromPattern - -
- Signature: bool
-
-
-

Indicates if the reference is in a pattern

- - -

CompiledName: get_IsFromPattern

-
- - x.IsFromType - -
- Signature: bool
-
-
-

Indicates if the reference is in a syntactic type

- - -

CompiledName: get_IsFromType

-
- - x.IsPrivateToFile - -
- Signature: bool
-
-
-

Indicates if the FSharpSymbolUse is declared as private

- - -

CompiledName: get_IsPrivateToFile

-
- - x.RangeAlternate - -
- Signature: range
-
-
-

The range of text representing the reference to the symbol

- - -

CompiledName: get_RangeAlternate

-
- - x.Symbol - -
- Signature: FSharpSymbol
-
-
-

The symbol referenced

- - -

CompiledName: get_Symbol

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokencharkind.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokencharkind.html deleted file mode 100644 index 76e77303c4..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokencharkind.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - FSharpTokenCharKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpTokenCharKind

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Gives an indication of the class to assign to the characters of the token an IDE

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Comment - -
- Signature: FSharpTokenCharKind
- Modifiers: static
-
-
- -
- - Default - -
- Signature: FSharpTokenCharKind
- Modifiers: static
-
-
- -
- - Delimiter - -
- Signature: FSharpTokenCharKind
- Modifiers: static
-
-
- -
- - Identifier - -
- Signature: FSharpTokenCharKind
- Modifiers: static
-
-
- -
- - Keyword - -
- Signature: FSharpTokenCharKind
- Modifiers: static
-
-
- -
- - LineComment - -
- Signature: FSharpTokenCharKind
- Modifiers: static
-
-
- -
- - Literal - -
- Signature: FSharpTokenCharKind
- Modifiers: static
-
-
- -
- - Operator - -
- Signature: FSharpTokenCharKind
- Modifiers: static
-
-
- -
- - String - -
- Signature: FSharpTokenCharKind
- Modifiers: static
-
-
- -
- - Text - -
- Signature: FSharpTokenCharKind
- Modifiers: static
-
-
- -
- - WhiteSpace - -
- Signature: FSharpTokenCharKind
- Modifiers: static
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokencolorkind.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokencolorkind.html deleted file mode 100644 index 9b0c20040e..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokencolorkind.html +++ /dev/null @@ -1,271 +0,0 @@ - - - - - FSharpTokenColorKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpTokenColorKind

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Gives an indication of the color class to assign to the token an IDE

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Comment - -
- Signature: FSharpTokenColorKind
- Modifiers: static
-
-
- -
- - Default - -
- Signature: FSharpTokenColorKind
- Modifiers: static
-
-
- -
- - Identifier - -
- Signature: FSharpTokenColorKind
- Modifiers: static
-
-
- -
- - InactiveCode - -
- Signature: FSharpTokenColorKind
- Modifiers: static
-
-
- -
- - Keyword - -
- Signature: FSharpTokenColorKind
- Modifiers: static
-
-
- -
- - Number - -
- Signature: FSharpTokenColorKind
- Modifiers: static
-
-
- -
- - Operator - -
- Signature: FSharpTokenColorKind
- Modifiers: static
-
-
- -
- - PreprocessorKeyword - -
- Signature: FSharpTokenColorKind
- Modifiers: static
-
-
- -
- - Punctuation - -
- Signature: FSharpTokenColorKind
- Modifiers: static
-
-
- -
- - String - -
- Signature: FSharpTokenColorKind
- Modifiers: static
-
-
- -
- - Text - -
- Signature: FSharpTokenColorKind
- Modifiers: static
-
-
- -
- - UpperIdentifier - -
- Signature: FSharpTokenColorKind
- Modifiers: static
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokeninfo.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokeninfo.html deleted file mode 100644 index 82686e8888..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokeninfo.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - FSharpTokenInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpTokenInfo

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Information about a particular token from the tokenizer

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - CharClass - -
- Signature: FSharpTokenCharKind
-
-
-

Gives an indication of the class to assign to the token an IDE

- - -
- - ColorClass - -
- Signature: FSharpTokenColorKind
-
-
- -
- - FSharpTokenTriggerClass - -
- Signature: FSharpTokenTriggerClass
-
-
-

Actions taken when the token is typed

- - -
- - FullMatchedLength - -
- Signature: int
-
-
-

The full length consumed by this match, including delayed tokens (which can be ignored in naive lexers)

- - -
- - LeftColumn - -
- Signature: int
-
-
-

Left column of the token.

- - -
- - RightColumn - -
- Signature: int
-
-
-

Right column of the token.

- - -
- - Tag - -
- Signature: int
-
-
-

The tag is an integer identifier for the token

- - -
- - TokenName - -
- Signature: string
-
-
-

Provides additional information about the token

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokenizercolorstate.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokenizercolorstate.html deleted file mode 100644 index 5b10c26f0a..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokenizercolorstate.html +++ /dev/null @@ -1,299 +0,0 @@ - - - - - FSharpTokenizerColorState - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpTokenizerColorState

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Represents stable information for the state of the lexing engine at the end of a line

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - CamlOnly - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - Comment - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - EndLineThenSkip - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - EndLineThenToken - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - IfDefSkip - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - InitialState - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - SingleLineComment - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - String - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - StringInComment - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - Token - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - TripleQuoteString - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - TripleQuoteStringInComment - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - VerbatimString - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- - VerbatimStringInComment - -
- Signature: FSharpTokenizerColorState
- Modifiers: static
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokenizerlexstate.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokenizerlexstate.html deleted file mode 100644 index 171d08bc60..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokenizerlexstate.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - FSharpTokenizerLexState - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpTokenizerLexState

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Struct>]
-[<CustomEquality>]
-[<NoComparison>]
- -
-

-
-

Represents encoded information for the end-of-line continuation of lexing

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - OtherBits - -
- Signature: int64
-
-
- -
- - PosBits - -
- Signature: int64
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Equals(arg1) - -
- Signature: FSharpTokenizerLexState -> bool
-
-
- -
-

Static members

- - - - - - - - - - -
Static memberDescription
- - FSharpTokenizerLexState.Initial - -
- Signature: FSharpTokenizerLexState
-
-
- -

CompiledName: get_Initial

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokentag.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokentag.html deleted file mode 100644 index fd6ad5d205..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokentag.html +++ /dev/null @@ -1,1005 +0,0 @@ - - - - - FSharpTokenTag - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpTokenTag

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Some of the values in the field FSharpTokenInfo.Tag

- -
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - AMP_AMP - -
- Signature: int
-
-
-

Indicates the token is a @@

- - -
- - BAR - -
- Signature: int
-
-
-

Indicates the token is a _

- - -
- - BAR_BAR - -
- Signature: int
-
-
-

Indicates the token is a ||

- - -
- - BAR_RBRACK - -
- Signature: int
-
-
-

Indicates the token is a |]

- - -
- - BEGIN - -
- Signature: int
-
-
-

Indicates the token is keyword begin

- - -
- - CLASS - -
- Signature: int
-
-
-

Indicates the token is keyword class

- - -
- - COLON - -
- Signature: int
-
-
-

Indicates the token is a :

- - -
- - COLON_COLON - -
- Signature: int
-
-
-

Indicates the token is a ::

- - -
- - COLON_EQUALS - -
- Signature: int
-
-
-

Indicates the token is a :=

- - -
- - COLON_GREATER - -
- Signature: int
-
-
-

Indicates the token is a :>

- - -
- - COLON_QMARK - -
- Signature: int
-
-
-

Indicates the token is a :?

- - -
- - COLON_QMARK_GREATER - -
- Signature: int
-
-
-

Indicates the token is a :?>

- - -
- - COMMA - -
- Signature: int
-
-
-

Indicates the token is a ,

- - -
- - COMMENT - -
- Signature: int
-
-
-

Indicates the token is a comment

- - -
- - DO - -
- Signature: int
-
-
-

Indicates the token is keyword do

- - -
- - DOT - -
- Signature: int
-
-
-

Indicates the token is a .

- - -
- - DOT_DOT - -
- Signature: int
-
-
-

Indicates the token is a ..

- - -
- - DOT_DOT_HAT - -
- Signature: int
-
-
-

Indicates the token is a ..

- - -
- - ELSE - -
- Signature: int
-
-
-

Indicates the token is keyword else

- - -
- - EQUALS - -
- Signature: int
-
-
-

Indicates the token is a =

- - -
- - FUNCTION - -
- Signature: int
-
-
-

Indicates the token is keyword function

- - -
- - GREATER - -
- Signature: int
-
-
-

Indicates the token is a >

- - -
- - GREATER_RBRACK - -
- Signature: int
-
-
-

Indicates the token is a >]

- - -
- - IDENT - -
- Signature: int
-
-
-

Indicates the token is an identifier (synonym for FSharpTokenTag.Identifier)

- - -
- - Identifier - -
- Signature: int
-
-
-

Indicates the token is an identifier

- - -
- - INFIX_AT_HAT_OP - -
- Signature: int
-
-
-

Indicates the token is a ^

- - -
- - INFIX_BAR_OP - -
- Signature: int
-
-
-

Indicates the token is a |

- - -
- - INFIX_COMPARE_OP - -
- Signature: int
-
-
-

Indicates the token is a |

- - -
- - INFIX_STAR_DIV_MOD_OP - -
- Signature: int
-
-
-

Indicates the token is a %

- - -
- - INT32_DOT_DOT - -
- Signature: int
-
-
-

Indicates the token is a ..^

- - -
- - LARROW - -
- Signature: int
-
-
-

Indicates the token is a <-

- - -
- - LBRACE - -
- Signature: int
-
-
-

Indicates the token is a {

- - -
- - LBRACK - -
- Signature: int
-
-
-

Indicates the token is a [

- - -
- - LBRACK_BAR - -
- Signature: int
-
-
-

Indicates the token is a [|

- - -
- - LBRACK_LESS - -
- Signature: int
-
-
-

Indicates the token is a [<

- - -
- - LESS - -
- Signature: int
-
-
-

Indicates the token is a <

- - -
- - LINE_COMMENT - -
- Signature: int
-
-
-

Indicates the token is a line comment

- - -
- - LPAREN - -
- Signature: int
-
-
-

Indicates the token is a (

- - -
- - MINUS - -
- Signature: int
-
-
-

Indicates the token is a -

- - -
- - NEW - -
- Signature: int
-
-
-

Indicates the token is keyword new

- - -
- - OWITH - -
- Signature: int
-
-
-

Indicates the token is keyword with in #light

- - -
- - PERCENT_OP - -
- Signature: int
-
-
-

Indicates the token is a %

- - -
- - PLUS_MINUS_OP - -
- Signature: int
-
-
-

Indicates the token is a + or -

- - -
- - PREFIX_OP - -
- Signature: int
-
-
-

Indicates the token is a ~

- - -
- - QMARK - -
- Signature: int
-
-
-

Indicates the token is a ?

- - -
- - QUOTE - -
- Signature: int
-
-
-

Indicates the token is a "

- - -
- - RARROW - -
- Signature: int
-
-
-

Indicates the token is a ->

- - -
- - RBRACE - -
- Signature: int
-
-
-

Indicates the token is a }

- - -
- - RBRACK - -
- Signature: int
-
-
-

Indicates the token is a ]

- - -
- - RPAREN - -
- Signature: int
-
-
-

Indicates the token is a )

- - -
- - SEMICOLON - -
- Signature: int
-
-
-

Indicates the token is a ;

- - -
- - STAR - -
- Signature: int
-
-
-

Indicates the token is a *

- - -
- - String - -
- Signature: int
-
-
-

Indicates the token is a string

- - -
- - STRING - -
- Signature: int
-
-
-

Indicates the token is an string (synonym for FSharpTokenTag.String)

- - -
- - STRUCT - -
- Signature: int
-
-
-

Indicates the token is keyword struct

- - -
- - THEN - -
- Signature: int
-
-
-

Indicates the token is keyword then

- - -
- - TRY - -
- Signature: int
-
-
-

Indicates the token is keyword try

- - -
- - UNDERSCORE - -
- Signature: int
-
-
-

Indicates the token is a ..

- - -
- - WHITESPACE - -
- Signature: int
-
-
-

Indicates the token is a whitespace

- - -
- - WITH - -
- Signature: int
-
-
-

Indicates the token is keyword with

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokentriggerclass.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokentriggerclass.html deleted file mode 100644 index 624186b96c..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptokentriggerclass.html +++ /dev/null @@ -1,215 +0,0 @@ - - - - - FSharpTokenTriggerClass - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpTokenTriggerClass

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Gives an indication of what should happen when the token is typed in an IDE

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - ChoiceSelect - -
- Signature: FSharpTokenTriggerClass
- Modifiers: static
-
-
- -
- - MatchBraces - -
- Signature: FSharpTokenTriggerClass
- Modifiers: static
-
-
- -
- - MemberSelect - -
- Signature: FSharpTokenTriggerClass
- Modifiers: static
-
-
- -
- - MethodTip - -
- Signature: FSharpTokenTriggerClass
- Modifiers: static
-
-
- -
- - None - -
- Signature: FSharpTokenTriggerClass
- Modifiers: static
-
-
- -
- - ParamEnd - -
- Signature: FSharpTokenTriggerClass
- Modifiers: static
-
-
- -
- - ParamNext - -
- Signature: FSharpTokenTriggerClass
- Modifiers: static
-
-
- -
- - ParamStart - -
- Signature: FSharpTokenTriggerClass
- Modifiers: static
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltipelement-1.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltipelement-1.html deleted file mode 100644 index f925f2c122..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltipelement-1.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - FSharpToolTipElement<'T> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpToolTipElement<'T>

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

A single tool tip display element

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - CompositionError(string) - -
- Signature: string
-
-
-

An error occurred formatting this element

- - -
- - Group(FSharpToolTipElementData<'T> list) - -
- Signature: FSharpToolTipElementData<'T> list
-
-
-

A single type, method, etc with comment. May represent a method overload group.

- - -
- - None - -
- Signature:
-
-
- -
-

Static members

- - - - - - - - - - -
Static memberDescription
- - FSharpToolTipElement.Single(...) - -
- Signature: ('T * FSharpXmlDoc * typeMapping:'T list option * paramName:string option * remarks:'T option) -> FSharpToolTipElement<'T>
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltipelement.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltipelement.html deleted file mode 100644 index 6083ee095c..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltipelement.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - FSharpToolTipElement - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpToolTipElement

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

A single data tip display element with where text is expressed as string

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltipelementdata-1.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltipelementdata-1.html deleted file mode 100644 index 0688f408ac..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltipelementdata-1.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - FSharpToolTipElementData<'T> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpToolTipElementData<'T>

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

A single data tip display element

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - MainDescription - -
- Signature: 'T
-
-
- -
- - ParamName - -
- Signature: string option
-
-
-

Parameter name

- - -
- - Remarks - -
- Signature: 'T option
-
-
-

Extra text, goes at the end

- - -
- - TypeMapping - -
- Signature: 'T list
-
-
-

typar instantiation text, to go after xml

- - -
- - XmlDoc - -
- Signature: FSharpXmlDoc
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltiptext-1.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltiptext-1.html deleted file mode 100644 index b7c1548158..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltiptext-1.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - FSharpToolTipText<'T> - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpToolTipText<'T>

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Information for building a tool tip box.

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - FSharpToolTipText(...) - -
- Signature: FSharpToolTipElement<'T> list
-
-
-

A list of data tip elements to display.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltiptext.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltiptext.html deleted file mode 100644 index e225835c18..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptooltiptext.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - FSharpToolTipText - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpToolTipText

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptype.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharptype.html deleted file mode 100644 index 42720bb474..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharptype.html +++ /dev/null @@ -1,541 +0,0 @@ - - - - - FSharpType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpType

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AbbreviatedType - -
- Signature: FSharpType
-
-
-

Get the type for which this is an abbreviation

- - -

CompiledName: get_AbbreviatedType

-
- - x.AllInterfaces - -
- Signature: IList<FSharpType>
-
-
-

Get all the interface implementations, by walking the type hierarchy, taking into account the instantiation of this type -if it is an instantiation of a generic type.

- - -

CompiledName: get_AllInterfaces

-
- - x.AnonRecordTypeDetails - -
- Signature: FSharpAnonRecordTypeDetails
-
-
-

Get the details of the anonymous record type.

- - -

CompiledName: get_AnonRecordTypeDetails

-
- - x.BaseType - -
- Signature: FSharpType option
-
-
-

Get the base type, if any, taking into account the instantiation of this type -if it is an instantiation of a generic type.

- - -

CompiledName: get_BaseType

-
- - x.Format(context) - -
- Signature: context:FSharpDisplayContext -> string
-
-
-

Format the type using the rules of the given display context

- - -
- - x.FormatLayout(context) - -
- Signature: context:FSharpDisplayContext -> Layout
-
-
-

Format the type using the rules of the given display context

- - -
- - x.GenericArguments - -
- Signature: IList<FSharpType>
-
-
-

Get the generic arguments for a tuple type, a function type or a type constructed using a named entity

- - -

CompiledName: get_GenericArguments

-
- - x.GenericParameter - -
- Signature: FSharpGenericParameter
-
-
-

Get the generic parameter data for a generic parameter type

- - -

CompiledName: get_GenericParameter

-
- - x.HasTypeDefinition - -
- Signature: bool
-
-
-

Indicates if the type is constructed using a named entity, including array and byref types

- - -

CompiledName: get_HasTypeDefinition

-
- - x.Instantiate(arg1) - -
- Signature: ((FSharpGenericParameter * FSharpType) list) -> FSharpType
-
-
-

Instantiate generic type parameters in a type

- - -
- - x.IsAbbreviation - -
- Signature: bool
-
-
-

Indicates this is an abbreviation for another type

- - -

CompiledName: get_IsAbbreviation

-
- - x.IsAnonRecordType - -
- Signature: bool
-
-
-

Indicates if the type is an anonymous record type. The GenericArguments property returns the type instantiation of the anonymous record type

- - -

CompiledName: get_IsAnonRecordType

-
- - x.IsFunctionType - -
- Signature: bool
-
-
-

Indicates if the type is a function type. The GenericArguments property returns the domain and range of the function type.

- - -

CompiledName: get_IsFunctionType

-
- - x.IsGenericParameter - -
- Signature: bool
-
-
-

Indicates if the type is a variable type, whether declared, generalized or an inference type parameter

- - -

CompiledName: get_IsGenericParameter

-
- - x.IsNamedType - -
- Signature: bool
- - Attributes:
-[<Obsolete("Renamed to HasTypeDefinition")>]
-
-
-
-
- WARNING: This API is obsolete -

Renamed to HasTypeDefinition

-
- -

CompiledName: get_IsNamedType

-
- - x.IsStructTupleType - -
- Signature: bool
-
-
-

Indicates if the type is a struct tuple type. The GenericArguments property returns the elements of the tuple type.

- - -

CompiledName: get_IsStructTupleType

-
- - x.IsTupleType - -
- Signature: bool
-
-
-

Indicates if the type is a tuple type (reference or struct). The GenericArguments property returns the elements of the tuple type.

- - -

CompiledName: get_IsTupleType

-
- - x.IsUnresolved - -
- Signature: bool
-
-
-

Indicates this is a named type in an unresolved assembly

- - -

CompiledName: get_IsUnresolved

-
- - x.NamedEntity - -
- Signature: FSharpEntity
- - Attributes:
-[<Obsolete("Renamed to TypeDefinition")>]
-
-
-
-
- WARNING: This API is obsolete -

Renamed to TypeDefinition

-
- -

CompiledName: get_NamedEntity

-
- - x.TypeDefinition - -
- Signature: FSharpEntity
-
-
-

Get the type definition for a type

- - -

CompiledName: get_TypeDefinition

-
-

Static members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Static memberDescription
- - FSharpType.Prettify(...) - -
- Signature: (parameters:IList<IList<FSharpParameter>> * returnParameter:FSharpParameter) -> IList<IList<FSharpParameter>> * FSharpParameter
-
-
-

Adjust the types in a group of curried parameters and return type by removing any occurrences of type inference variables, replacing them -systematically with lower-case type inference variables such as 'a.

- - -
- - FSharpType.Prettify(parameters) - -
- Signature: parameters:IList<IList<FSharpParameter>> -> IList<IList<FSharpParameter>>
-
-
-

Adjust the types in a group of curried parameters by removing any occurrences of type inference variables, replacing them -systematically with lower-case type inference variables such as 'a.

- - -
- - FSharpType.Prettify(parameters) - -
- Signature: parameters:IList<FSharpParameter> -> IList<FSharpParameter>
-
-
-

Adjust the types in a group of parameters by removing any occurrences of type inference variables, replacing them -systematically with lower-case type inference variables such as 'a.

- - -
- - FSharpType.Prettify(parameter) - -
- Signature: parameter:FSharpParameter -> FSharpParameter
-
-
-

Adjust the type in a single parameter by removing any occurrences of type inference variables, replacing them -systematically with lower-case type inference variables such as 'a.

- - -
- - FSharpType.Prettify(types) - -
- Signature: types:IList<FSharpType> -> IList<FSharpType>
-
-
-

Adjust a group of types by removing any occurrences of type inference variables, replacing them -systematically with lower-case type inference variables such as 'a.

- - -
- - FSharpType.Prettify(ty) - -
- Signature: ty:FSharpType -> FSharpType
-
-
-

Adjust the type by removing any occurrences of type inference variables, replacing them -systematically with lower-case type inference variables such as 'a.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpunioncase.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpunioncase.html deleted file mode 100644 index bb4e160f6d..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpunioncase.html +++ /dev/null @@ -1,284 +0,0 @@ - - - - - FSharpUnionCase - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpUnionCase

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Class>]
- -
-

-
-

A subtype of FSharpSymbol that represents a union case as seen by the F# language

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Accessibility - -
- Signature: FSharpAccessibility
-
-
-

Indicates if the declared visibility of the union constructor, not taking signatures into account

- - -

CompiledName: get_Accessibility

-
- - x.Attributes - -
- Signature: IList<FSharpAttribute>
-
-
-

Get the attributes for the case, attached to the generated static method to make instances of the case

- - -

CompiledName: get_Attributes

-
- - x.CompiledName - -
- Signature: string
-
-
-

Get the name of the case in generated IL code

- - -

CompiledName: get_CompiledName

-
- - x.DeclarationLocation - -
- Signature: range
-
-
-

Get the range of the name of the case

- - -

CompiledName: get_DeclarationLocation

-
- - x.HasFields - -
- Signature: bool
-
-
-

Indicates if the union case has field definitions

- - -

CompiledName: get_HasFields

-
- - x.IsUnresolved - -
- Signature: bool
-
-
-

Indicates if the union case is for a type in an unresolved assembly

- - -

CompiledName: get_IsUnresolved

-
- - x.Name - -
- Signature: string
-
-
-

Get the name of the union case

- - -

CompiledName: get_Name

-
- - x.ReturnType - -
- Signature: FSharpType
-
-
-

Get the type constructed by the case. Normally exactly the type of the enclosing type, sometimes an abbreviation of it

- - -

CompiledName: get_ReturnType

-
- - x.UnionCaseFields - -
- Signature: IList<FSharpField>
-
-
-

Get the data carried by the case.

- - -

CompiledName: get_UnionCaseFields

-
- - x.XmlDoc - -
- Signature: IList<string>
-
-
-

Get the in-memory XML documentation for the union case, used when code is checked in-memory

- - -

CompiledName: get_XmlDoc

-
- - x.XmlDocSig - -
- Signature: string
-
-
-

Get the XML documentation signature for .xml file lookup for the union case, used for .xml file lookup for compiled code

- - -

CompiledName: get_XmlDocSig

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpxmldoc.html b/docs/reference/fsharp-compiler-sourcecodeservices-fsharpxmldoc.html deleted file mode 100644 index f17ba88248..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-fsharpxmldoc.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - FSharpXmlDoc - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpXmlDoc

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Describe a comment as either a block of text or a file+signature reference into an intellidoc file.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - None - -
- Signature:
-
-
-

No documentation is available

- - -
- - Text(string) - -
- Signature: string
-
-
-

The text for documentation

- - -
- - XmlDocFileSignature(string,string) - -
- Signature: string * string
-
-
-

Indicates that the text for the documentation can be found in a .xml documentation file, using the given signature key

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-iassemblycontentcache.html b/docs/reference/fsharp-compiler-sourcecodeservices-iassemblycontentcache.html deleted file mode 100644 index 98fa99b08b..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-iassemblycontentcache.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - IAssemblyContentCache - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

IAssemblyContentCache

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<NoComparison>]
-[<NoEquality>]
- -
-

-
-

Assembly content cache.

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Set arg1 arg2 - -
- Signature: AssemblyPath -> AssemblyContentCacheEntry -> unit
- Modifiers: abstract
-
-
-

Store an assembly content.

- - -
- - x.TryGet(arg1) - -
- Signature: AssemblyPath -> AssemblyContentCacheEntry option
- Modifiers: abstract
-
-
-

Try get an assembly cached content.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-idents.html b/docs/reference/fsharp-compiler-sourcecodeservices-idents.html deleted file mode 100644 index f14d4265f7..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-idents.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - Idents - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Idents

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

An array of ShortIdent.

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-inheritancecontext.html b/docs/reference/fsharp-compiler-sourcecodeservices-inheritancecontext.html deleted file mode 100644 index 7a608b15a1..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-inheritancecontext.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - InheritanceContext - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

InheritanceContext

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Class - -
- Signature:
-
-
- -
- - Interface - -
- Signature:
-
-
- -
- - Unknown - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-insertcontext.html b/docs/reference/fsharp-compiler-sourcecodeservices-insertcontext.html deleted file mode 100644 index e18ac000a7..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-insertcontext.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - InsertContext - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

InsertContext

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Insert open namespace context.

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Pos - -
- Signature: pos
-
-
-

Current position (F# compiler line number).

- - -
- - ScopeKind - -
- Signature: ScopeKind
-
-
-

Current scope kind.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-interfacedata.html b/docs/reference/fsharp-compiler-sourcecodeservices-interfacedata.html deleted file mode 100644 index 668fe97854..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-interfacedata.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - InterfaceData - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

InterfaceData

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Capture information about an interface in ASTs

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Interface(SynType,SynMemberDefns option) - -
- Signature: SynType * SynMemberDefns option
-
-
- -
- - ObjExpr(SynType,SynBinding list) - -
- Signature: SynType * SynBinding list
-
-
- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
- -

CompiledName: get_Range

-
- - x.TypeParameters - -
- Signature: string []
-
-
- -

CompiledName: get_TypeParameters

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-interfacestubgenerator.html b/docs/reference/fsharp-compiler-sourcecodeservices-interfacestubgenerator.html deleted file mode 100644 index 63dfc9e405..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-interfacestubgenerator.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - InterfaceStubGenerator - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

InterfaceStubGenerator

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - formatInterface(...) - -
- Signature: startColumn:int -> indentation:int -> typeInstances:string [] -> objectIdent:string -> methodBody:string -> displayContext:FSharpDisplayContext -> excludedMemberSignatures:Set<string> -> FSharpEntity -> verboseMode:bool -> string
-
-
-

Generate stub implementation of an interface at a start column

- - -
- - getImplementedMemberSignatures(...) - -
- Signature: getMemberByLocation:(string * range -> Async<FSharpSymbolUse option>) -> FSharpDisplayContext -> InterfaceData -> Async<Set<string>>
-
-
- -
- - getInterfaceMembers(arg1) - -
- Signature: FSharpEntity -> seq<FSharpMemberOrFunctionOrValue * seq<FSharpGenericParameter * FSharpType>>
-
-
-

Get members in the decreasing order of inheritance chain

- - -
- - getMemberNameAndRanges(arg1) - -
- Signature: InterfaceData -> (string * range) list
-
-
-

Get associated member names and ranges -In case of properties, intrinsic ranges might not be correct for the purpose of getting -positions of 'member', which indicate the indentation for generating new members

- - -
- - hasNoInterfaceMember(arg1) - -
- Signature: FSharpEntity -> bool
-
-
-

Check whether an interface is empty

- - -
- - isInterface(arg1) - -
- Signature: FSharpEntity -> bool
-
-
-

Check whether an entity is an interface or type abbreviation of an interface

- - -
- - tryFindInterfaceDeclaration(...) - -
- Signature: pos -> parsedInput:ParsedInput -> InterfaceData option
-
-
-

Find corresponding interface declaration at a given position

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-keywords.html b/docs/reference/fsharp-compiler-sourcecodeservices-keywords.html deleted file mode 100644 index cf3c3bd151..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-keywords.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - Keywords - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Keywords

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - DoesIdentifierNeedQuotation(arg1) - -
- Signature: string -> bool
-
-
-

Checks if adding backticks to identifier is needed.

- - -
- - KeywordsWithDescription - -
- Signature: (string * string) list
-
-
-

Keywords paired with their descriptions. Used in completion and quick info.

- - -
- - NormalizeIdentifierBackticks(arg1) - -
- Signature: string -> string
-
-
-

Remove backticks if present.

- - -
- - QuoteIdentifierIfNeeded(arg1) - -
- Signature: string -> string
-
-
-

Add backticks if the identifier is a keyword.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-layout.html b/docs/reference/fsharp-compiler-sourcecodeservices-layout.html deleted file mode 100644 index edc5349165..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-layout.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - Layout - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Layout

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-lexer-fsharplexer.html b/docs/reference/fsharp-compiler-sourcecodeservices-lexer-fsharplexer.html deleted file mode 100644 index 8b905628a2..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-lexer-fsharplexer.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - FSharpLexer - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpLexer

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: Lexer
- - Attributes:
-[<AbstractClass>]
-[<Sealed>]
-[<Experimental("This FCS API is experimental and subject to change.")>]
- -
-

-
-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - FSharpLexer.Lex(...) - -
- Signature: (text:ISourceText * tokenCallback:(FSharpSyntaxToken -> unit) * langVersion:string option * filePath:string option * conditionalCompilationDefines:string list option * flags:FSharpLexerFlags option * pathMap:Map<string,string> option * ct:CancellationToken option) -> unit
- - Attributes:
-[<Experimental("This FCS API is experimental and subject to change.")>]
-
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-lexer-fsharplexerflags.html b/docs/reference/fsharp-compiler-sourcecodeservices-lexer-fsharplexerflags.html deleted file mode 100644 index dd28ddfbc1..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-lexer-fsharplexerflags.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - FSharpLexerFlags - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpLexerFlags

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: Lexer
- - Attributes:
-[<Flags>]
-[<Experimental("This FCS API is experimental and subject to change.")>]
- -
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Compiling - -
- Signature: FSharpLexerFlags
- Modifiers: static
-
-
- -
- - CompilingFSharpCore - -
- Signature: FSharpLexerFlags
- Modifiers: static
-
-
- -
- - Default - -
- Signature: FSharpLexerFlags
- Modifiers: static
-
-
- -
- - LightSyntaxOn - -
- Signature: FSharpLexerFlags
- Modifiers: static
-
-
- -
- - SkipTrivia - -
- Signature: FSharpLexerFlags
- Modifiers: static
-
-
- -
- - UseLexFilter - -
- Signature: FSharpLexerFlags
- Modifiers: static
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-lexer-fsharpsyntaxtoken.html b/docs/reference/fsharp-compiler-sourcecodeservices-lexer-fsharpsyntaxtoken.html deleted file mode 100644 index 34a453ec37..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-lexer-fsharpsyntaxtoken.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - FSharpSyntaxToken - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpSyntaxToken

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: Lexer
- - Attributes:
-[<Struct>]
-[<NoComparison>]
-[<NoEquality>]
-[<Experimental("This FCS API is experimental and subject to change.")>]
- -
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - tok - -
- Signature: token
-
-
- -
- - tokRange - -
- Signature: range
-
-
- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.IsCommentTrivia - -
- Signature: bool
-
-
- -

CompiledName: get_IsCommentTrivia

-
- - x.IsIdentifier - -
- Signature: bool
-
-
- -

CompiledName: get_IsIdentifier

-
- - x.IsKeyword - -
- Signature: bool
-
-
- -

CompiledName: get_IsKeyword

-
- - x.IsNumericLiteral - -
- Signature: bool
-
-
- -

CompiledName: get_IsNumericLiteral

-
- - x.IsStringLiteral - -
- Signature: bool
-
-
- -

CompiledName: get_IsStringLiteral

-
- - x.Kind - -
- Signature: FSharpSyntaxTokenKind
-
-
- -

CompiledName: get_Kind

-
- - x.Range - -
- Signature: range
-
-
- -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-lexer-fsharpsyntaxtokenkind.html b/docs/reference/fsharp-compiler-sourcecodeservices-lexer-fsharpsyntaxtokenkind.html deleted file mode 100644 index 7cdc61695b..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-lexer-fsharpsyntaxtokenkind.html +++ /dev/null @@ -1,2578 +0,0 @@ - - - - - FSharpSyntaxTokenKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FSharpSyntaxTokenKind

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: Lexer
- - Attributes:
-[<RequireQualifiedAccess>]
-[<Experimental("This FCS API is experimental and subject to change.")>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Abstract - -
- Signature:
-
-
- -
- - AdjacentPrefixOperator - -
- Signature:
-
-
- -
- - Ampersand - -
- Signature:
-
-
- -
- - AmpersandAmpersand - -
- Signature:
-
-
- -
- - And - -
- Signature:
-
-
- -
- - As - -
- Signature:
-
-
- -
- - Asr - -
- Signature:
-
-
- -
- - Assert - -
- Signature:
-
-
- -
- - Bar - -
- Signature:
-
-
- -
- - BarBar - -
- Signature:
-
-
- -
- - BarRightBrace - -
- Signature:
-
-
- -
- - BarRightBracket - -
- Signature:
-
-
- -
- - Base - -
- Signature:
-
-
- -
- - Begin - -
- Signature:
-
-
- -
- - BigNumber - -
- Signature:
-
-
- -
- - Binder - -
- Signature:
-
-
- -
- - ByteArray - -
- Signature:
-
-
- -
- - Char - -
- Signature:
-
-
- -
- - Class - -
- Signature:
-
-
- -
- - Colon - -
- Signature:
-
-
- -
- - ColonColon - -
- Signature:
-
-
- -
- - ColonEquals - -
- Signature:
-
-
- -
- - ColonGreater - -
- Signature:
-
-
- -
- - ColonQuestionMark - -
- Signature:
-
-
- -
- - ColonQuestionMarkGreater - -
- Signature:
-
-
- -
- - Comma - -
- Signature:
-
-
- -
- - CommentTrivia - -
- Signature:
-
-
- -
- - Const - -
- Signature:
-
-
- -
- - Constraint - -
- Signature:
-
-
- -
- - Constructor - -
- Signature:
-
-
- -
- - Decimal - -
- Signature:
-
-
- -
- - Default - -
- Signature:
-
-
- -
- - Delegate - -
- Signature:
-
-
- -
- - Do - -
- Signature:
-
-
- -
- - DoBang - -
- Signature:
-
-
- -
- - Dollar - -
- Signature:
-
-
- -
- - Done - -
- Signature:
-
-
- -
- - Dot - -
- Signature:
-
-
- -
- - DotDot - -
- Signature:
-
-
- -
- - DotDotHat - -
- Signature:
-
-
- -
- - Downcast - -
- Signature:
-
-
- -
- - DownTo - -
- Signature:
-
-
- -
- - Elif - -
- Signature:
-
-
- -
- - Else - -
- Signature:
-
-
- -
- - End - -
- Signature:
-
-
- -
- - Equals - -
- Signature:
-
-
- -
- - Exception - -
- Signature:
-
-
- -
- - Extern - -
- Signature:
-
-
- -
- - False - -
- Signature:
-
-
- -
- - Finally - -
- Signature:
-
-
- -
- - Fixed - -
- Signature:
-
-
- -
- - For - -
- Signature:
-
-
- -
- - Fun - -
- Signature:
-
-
- -
- - Function - -
- Signature:
-
-
- -
- - FunkyOperatorName - -
- Signature:
-
-
- -
- - Global - -
- Signature:
-
-
- -
- - Greater - -
- Signature:
-
-
- -
- - GreaterBarRightBracket - -
- Signature:
-
-
- -
- - GreaterRightBracket - -
- Signature:
-
-
- -
- - Hash - -
- Signature:
-
-
- -
- - HashElse - -
- Signature:
-
-
- -
- - HashEndIf - -
- Signature:
-
-
- -
- - HashIf - -
- Signature:
-
-
- -
- - HashLight - -
- Signature:
-
-
- -
- - HashLine - -
- Signature:
-
-
- -
- - HighPrecedenceBracketApp - -
- Signature:
-
-
- -
- - HighPrecedenceParenthesisApp - -
- Signature:
-
-
- -
- - HighPrecedenceTypeApp - -
- Signature:
-
-
- -
- - Identifier - -
- Signature:
-
-
- -
- - Ieee32 - -
- Signature:
-
-
- -
- - Ieee64 - -
- Signature:
-
-
- -
- - If - -
- Signature:
-
-
- -
- - In - -
- Signature:
-
-
- -
- - InactiveCode - -
- Signature:
-
-
- -
- - InfixAmpersandOperator - -
- Signature:
-
-
- -
- - InfixAsr - -
- Signature:
-
-
- -
- - InfixAtHatOperator - -
- Signature:
-
-
- -
- - InfixBarOperator - -
- Signature:
-
-
- -
- - InfixCompareOperator - -
- Signature:
-
-
- -
- - InfixLand - -
- Signature:
-
-
- -
- - InfixLor - -
- Signature:
-
-
- -
- - InfixLsl - -
- Signature:
-
-
- -
- - InfixLsr - -
- Signature:
-
-
- -
- - InfixLxor - -
- Signature:
-
-
- -
- - InfixMod - -
- Signature:
-
-
- -
- - InfixStarDivideModuloOperator - -
- Signature:
-
-
- -
- - InfixStarStarOperator - -
- Signature:
-
-
- -
- - Inherit - -
- Signature:
-
-
- -
- - Inline - -
- Signature:
-
-
- -
- - Instance - -
- Signature:
-
-
- -
- - Int16 - -
- Signature:
-
-
- -
- - Int32 - -
- Signature:
-
-
- -
- - Int32DotDot - -
- Signature:
-
-
- -
- - Int64 - -
- Signature:
-
-
- -
- - Int8 - -
- Signature:
-
-
- -
- - Interface - -
- Signature:
-
-
- -
- - Internal - -
- Signature:
-
-
- -
- - JoinIn - -
- Signature:
-
-
- -
- - KeywordString - -
- Signature:
-
-
- -
- - Lazy - -
- Signature:
-
-
- -
- - LeftArrow - -
- Signature:
-
-
- -
- - LeftBrace - -
- Signature:
-
-
- -
- - LeftBraceBar - -
- Signature:
-
-
- -
- - LeftBracket - -
- Signature:
-
-
- -
- - LeftBracketBar - -
- Signature:
-
-
- -
- - LeftBracketLess - -
- Signature:
-
-
- -
- - LeftParenthesis - -
- Signature:
-
-
- -
- - LeftParenthesisStarRightParenthesis - -
- Signature:
-
-
- -
- - LeftQuote - -
- Signature:
-
-
- -
- - Less - -
- Signature:
-
-
- -
- - Let - -
- Signature:
-
-
- -
- - LineCommentTrivia - -
- Signature:
-
-
- -
- - Match - -
- Signature:
-
-
- -
- - MatchBang - -
- Signature:
-
-
- -
- - Member - -
- Signature:
-
-
- -
- - Minus - -
- Signature:
-
-
- -
- - Module - -
- Signature:
-
-
- -
- - Mutable - -
- Signature:
-
-
- -
- - Namespace - -
- Signature:
-
-
- -
- - NativeInt - -
- Signature:
-
-
- -
- - New - -
- Signature:
-
-
- -
- - None - -
- Signature:
-
-
- -
- - Null - -
- Signature:
-
-
- -
- - Of - -
- Signature:
-
-
- -
- - OffsideAssert - -
- Signature:
-
-
- -
- - OffsideBinder - -
- Signature:
-
-
- -
- - OffsideBlockBegin - -
- Signature:
-
-
- -
- - OffsideBlockEnd - -
- Signature:
-
-
- -
- - OffsideBlockSep - -
- Signature:
-
-
- -
- - OffsideDeclEnd - -
- Signature:
-
-
- -
- - OffsideDo - -
- Signature:
-
-
- -
- - OffsideDoBang - -
- Signature:
-
-
- -
- - OffsideElse - -
- Signature:
-
-
- -
- - OffsideEnd - -
- Signature:
-
-
- -
- - OffsideFun - -
- Signature:
-
-
- -
- - OffsideFunction - -
- Signature:
-
-
- -
- - OffsideInterfaceMember - -
- Signature:
-
-
- -
- - OffsideLazy - -
- Signature:
-
-
- -
- - OffsideLet - -
- Signature:
-
-
- -
- - OffsideReset - -
- Signature:
-
-
- -
- - OffsideRightBlockEnd - -
- Signature:
-
-
- -
- - OffsideThen - -
- Signature:
-
-
- -
- - OffsideWith - -
- Signature:
-
-
- -
- - Open - -
- Signature:
-
-
- -
- - Or - -
- Signature:
-
-
- -
- - Override - -
- Signature:
-
-
- -
- - PercentOperator - -
- Signature:
-
-
- -
- - PlusMinusOperator - -
- Signature:
-
-
- -
- - PrefixOperator - -
- Signature:
-
-
- -
- - Private - -
- Signature:
-
-
- -
- - Public - -
- Signature:
-
-
- -
- - QuestionMark - -
- Signature:
-
-
- -
- - QuestionMarkQuestionMark - -
- Signature:
-
-
- -
- - Quote - -
- Signature:
-
-
- -
- - Rec - -
- Signature:
-
-
- -
- - Reserved - -
- Signature:
-
-
- -
- - RightArrow - -
- Signature:
-
-
- -
- - RightBrace - -
- Signature:
-
-
- -
- - RightBracket - -
- Signature:
-
-
- -
- - RightParenthesis - -
- Signature:
-
-
- -
- - RightQuote - -
- Signature:
-
-
- -
- - RightQuoteDot - -
- Signature:
-
-
- -
- - Semicolon - -
- Signature:
-
-
- -
- - SemicolonSemicolon - -
- Signature:
-
-
- -
- - Sig - -
- Signature:
-
-
- -
- - Star - -
- Signature:
-
-
- -
- - Static - -
- Signature:
-
-
- -
- - String - -
- Signature:
-
-
- -
- - StringText - -
- Signature:
-
-
- -
- - Struct - -
- Signature:
-
-
- -
- - Then - -
- Signature:
-
-
- -
- - To - -
- Signature:
-
-
- -
- - True - -
- Signature:
-
-
- -
- - Try - -
- Signature:
-
-
- -
- - Type - -
- Signature:
-
-
- -
- - UInt16 - -
- Signature:
-
-
- -
- - UInt32 - -
- Signature:
-
-
- -
- - UInt64 - -
- Signature:
-
-
- -
- - UInt8 - -
- Signature:
-
-
- -
- - UNativeInt - -
- Signature:
-
-
- -
- - Underscore - -
- Signature:
-
-
- -
- - Upcast - -
- Signature:
-
-
- -
- - Val - -
- Signature:
-
-
- -
- - Void - -
- Signature:
-
-
- -
- - When - -
- Signature:
-
-
- -
- - While - -
- Signature:
-
-
- -
- - WhitespaceTrivia - -
- Signature:
-
-
- -
- - With - -
- Signature:
-
-
- -
- - Yield - -
- Signature:
-
-
- -
- - YieldBang - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-lexer.html b/docs/reference/fsharp-compiler-sourcecodeservices-lexer.html deleted file mode 100644 index ebb97f7f30..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-lexer.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Lexer - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Lexer

-

- Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<Experimental("This FCS API is experimental and subject to change.")>]
- -
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- FSharpLexer - - -
- FSharpLexerFlags - - -
- FSharpSyntaxToken - - -
- FSharpSyntaxTokenKind - - -
- -
- - -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-lookuptype.html b/docs/reference/fsharp-compiler-sourcecodeservices-lookuptype.html deleted file mode 100644 index 97aec6e31d..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-lookuptype.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - LookupType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LookupType

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Entity lookup type.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Fuzzy - -
- Signature:
-
-
- -
- - Precise - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-maybeunresolvedident.html b/docs/reference/fsharp-compiler-sourcecodeservices-maybeunresolvedident.html deleted file mode 100644 index a420e7bfd0..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-maybeunresolvedident.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - MaybeUnresolvedIdent - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

MaybeUnresolvedIdent

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

ShortIdent with a flag indicating if it's resolved in some scope.

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Ident - -
- Signature: ShortIdent
-
-
- -
- - Resolved - -
- Signature: bool
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-maybeunresolvedidents.html b/docs/reference/fsharp-compiler-sourcecodeservices-maybeunresolvedidents.html deleted file mode 100644 index 9155576012..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-maybeunresolvedidents.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - MaybeUnresolvedIdents - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

MaybeUnresolvedIdents

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Array of MaybeUnresolvedIdent.

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-modulekind.html b/docs/reference/fsharp-compiler-sourcecodeservices-modulekind.html deleted file mode 100644 index fb36656d1f..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-modulekind.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - ModuleKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ModuleKind

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - HasModuleSuffix - -
- Signature: bool
-
-
- -
- - IsAutoOpen - -
- Signature: bool
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-navigateto-container.html b/docs/reference/fsharp-compiler-sourcecodeservices-navigateto-container.html deleted file mode 100644 index 07a84bc8db..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-navigateto-container.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - Container - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Container

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: NavigateTo
-

-
-
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Name - -
- Signature: string
-
-
- -
- - Type - -
- Signature: ContainerType
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-navigateto-containertype.html b/docs/reference/fsharp-compiler-sourcecodeservices-navigateto-containertype.html deleted file mode 100644 index a21f14c577..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-navigateto-containertype.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - ContainerType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ContainerType

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: NavigateTo
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Exception - -
- Signature:
-
-
- -
- - File - -
- Signature:
-
-
- -
- - Module - -
- Signature:
-
-
- -
- - Namespace - -
- Signature:
-
-
- -
- - Type - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-navigateto-navigableitem.html b/docs/reference/fsharp-compiler-sourcecodeservices-navigateto-navigableitem.html deleted file mode 100644 index c4ef5a6509..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-navigateto-navigableitem.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - NavigableItem - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NavigableItem

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: NavigateTo
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Container - -
- Signature: Container
-
-
- -
- - IsSignature - -
- Signature: bool
-
-
- -
- - Kind - -
- Signature: NavigableItemKind
-
-
- -
- - Name - -
- Signature: string
-
-
- -
- - Range - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-navigateto-navigableitemkind.html b/docs/reference/fsharp-compiler-sourcecodeservices-navigateto-navigableitemkind.html deleted file mode 100644 index 61df523cbe..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-navigateto-navigableitemkind.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - NavigableItemKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NavigableItemKind

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: NavigateTo
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Constructor - -
- Signature:
-
-
- -
- - EnumCase - -
- Signature:
-
-
- -
- - Exception - -
- Signature:
-
-
- -
- - Field - -
- Signature:
-
-
- -
- - Member - -
- Signature:
-
-
- -
- - Module - -
- Signature:
-
-
- -
- - ModuleAbbreviation - -
- Signature:
-
-
- -
- - ModuleValue - -
- Signature:
-
-
- -
- - Property - -
- Signature:
-
-
- -
- - Type - -
- Signature:
-
-
- -
- - UnionCase - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-navigateto.html b/docs/reference/fsharp-compiler-sourcecodeservices-navigateto.html deleted file mode 100644 index 3308e40e8f..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-navigateto.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - NavigateTo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NavigateTo

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- Container - - -
- ContainerType - - -
- NavigableItem - - -
- NavigableItemKind - - -
- -
- -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - getNavigableItems(arg1) - -
- Signature: ParsedInput -> NavigableItem []
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-openstatementinsertionpoint.html b/docs/reference/fsharp-compiler-sourcecodeservices-openstatementinsertionpoint.html deleted file mode 100644 index d9c1999076..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-openstatementinsertionpoint.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - OpenStatementInsertionPoint - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

OpenStatementInsertionPoint

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Where open statements should be added.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Nearest - -
- Signature:
-
-
- -
- - TopLevel - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-paramtypesymbol.html b/docs/reference/fsharp-compiler-sourcecodeservices-paramtypesymbol.html deleted file mode 100644 index 41b9c84d9c..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-paramtypesymbol.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - ParamTypeSymbol - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParamTypeSymbol

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents the type of a single method parameter

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Byref(ExternalType) - -
- Signature: ExternalType
-
-
- -
- - Param(ExternalType) - -
- Signature: ExternalType
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-paramtypesymbolmodule.html b/docs/reference/fsharp-compiler-sourcecodeservices-paramtypesymbolmodule.html deleted file mode 100644 index 2acd1f1e73..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-paramtypesymbolmodule.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - ParamTypeSymbol - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParamTypeSymbol

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - - - -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-parsedinput.html b/docs/reference/fsharp-compiler-sourcecodeservices-parsedinput.html deleted file mode 100644 index 44e5b1a71b..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-parsedinput.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - - ParsedInput - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParsedInput

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Parse AST helpers.

- -
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - adjustInsertionPoint getLineStr ctx - -
- Signature: getLineStr:(int -> string) -> ctx:InsertContext -> pos
-
-
-

Corrects insertion line number based on kind of scope and text surrounding the insertion point.

- - -
- - findNearestPointToInsertOpenDeclaration(...) - -
- Signature: currentLine:int -> ast:ParsedInput -> entity:Idents -> insertionPoint:OpenStatementInsertionPoint -> InsertContext
-
-
-

Returns InsertContext based on current position and symbol idents.

- - -
- - getLongIdentAt ast pos - -
- Signature: ast:ParsedInput -> pos:pos -> LongIdent option
-
-
-

Returns long identifier at position.

- - -
- - tryFindInsertionContext(...) - -
- Signature: currentLine:int -> ast:ParsedInput -> MaybeUnresolvedIdents -> insertionPoint:OpenStatementInsertionPoint -> Idents option * Idents option * Idents option * Idents -> (Entity * InsertContext) []
-
-
-

Returns InsertContext based on current position and symbol idents.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-position.html b/docs/reference/fsharp-compiler-sourcecodeservices-position.html deleted file mode 100644 index 523a2b9d79..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-position.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - Position - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Position

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Item1 - -
- Signature: int
-
-
- -
- - x.Item2 - -
- Signature: int
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-prettynaming.html b/docs/reference/fsharp-compiler-sourcecodeservices-prettynaming.html deleted file mode 100644 index bacc2ba441..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-prettynaming.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - PrettyNaming - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PrettyNaming

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

A set of helpers related to naming of identifiers

- -
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - FormatAndOtherOverloadsString(arg1) - -
- Signature: int -> string
-
-
- -
- - GetLongNameFromString(arg1) - -
- Signature: string -> string list
-
-
- -
- - IsIdentifierPartCharacter(arg1) - -
- Signature: char -> bool
-
-
- -
- - IsLongIdentifierPartCharacter(arg1) - -
- Signature: char -> bool
-
-
- -
- - IsOperatorName(arg1) - -
- Signature: string -> bool
-
-
- -
- - KeywordNames - -
- Signature: string list
-
-
-

All the keywords in the F# language

- - -
- - QuoteIdentifierIfNeeded(arg1) - -
- Signature: string -> string
-
-
-

A utility to help determine if an identifier needs to be quoted

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-range.html b/docs/reference/fsharp-compiler-sourcecodeservices-range.html deleted file mode 100644 index 0e2df05a99..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-range.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - Range - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Range

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Item1 - -
- Signature: Position
-
-
- -
- - x.Item2 - -
- Signature: Position
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-recordcontext.html b/docs/reference/fsharp-compiler-sourcecodeservices-recordcontext.html deleted file mode 100644 index 67c50880e0..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-recordcontext.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - RecordContext - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

RecordContext

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Constructor(string) - -
- Signature: string
-
-
- -
- - CopyOnUpdate(range,CompletionPath) - -
- Signature: range * CompletionPath
-
-
- -
- - New(CompletionPath) - -
- Signature: CompletionPath
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-scopekind.html b/docs/reference/fsharp-compiler-sourcecodeservices-scopekind.html deleted file mode 100644 index 1d0ed33598..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-scopekind.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - ScopeKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ScopeKind

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Kind of lexical scope.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - HashDirective - -
- Signature:
-
-
- -
- - Namespace - -
- Signature:
-
-
- -
- - NestedModule - -
- Signature:
-
-
- -
- - OpenDeclaration - -
- Signature:
-
-
- -
- - TopModule - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-semanticclassificationtype.html b/docs/reference/fsharp-compiler-sourcecodeservices-semanticclassificationtype.html deleted file mode 100644 index f68b20eaa8..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-semanticclassificationtype.html +++ /dev/null @@ -1,303 +0,0 @@ - - - - - SemanticClassificationType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SemanticClassificationType

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

A kind that determines what range in a source's text is semantically classified as after type-checking.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - ComputationExpression - -
- Signature:
-
-
- -
- - Disposable - -
- Signature:
-
-
- -
- - Enumeration - -
- Signature:
-
-
- -
- - Function - -
- Signature:
-
-
- -
- - Interface - -
- Signature:
-
-
- -
- - IntrinsicFunction - -
- Signature:
-
-
- -
- - Module - -
- Signature:
-
-
- -
- - MutableVar - -
- Signature:
-
-
- -
- - Operator - -
- Signature:
-
-
- -
- - Printf - -
- Signature:
-
-
- -
- - Property - -
- Signature:
-
-
- -
- - ReferenceType - -
- Signature:
-
-
- -
- - TypeArgument - -
- Signature:
-
-
- -
- - UnionCase - -
- Signature:
-
-
- -
- - ValueType - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-shortident.html b/docs/reference/fsharp-compiler-sourcecodeservices-shortident.html deleted file mode 100644 index f22a0c62bf..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-shortident.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - ShortIdent - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ShortIdent

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Short identifier, i.e. an identifier that contains no dots.

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Chars(arg1) - -
- Signature: int -> char
-
-
- -
- - x.Length - -
- Signature: int
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-simplifynames-simplifiablerange.html b/docs/reference/fsharp-compiler-sourcecodeservices-simplifynames-simplifiablerange.html deleted file mode 100644 index a226b7140b..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-simplifynames-simplifiablerange.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - SimplifiableRange - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SimplifiableRange

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: SimplifyNames
-

-
-

Data for use in finding unnecessarily-qualified names and generating diagnostics to simplify them

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Range - -
- Signature: range
-
-
-

The range of a name that can be simplified

- - -
- - RelativeName - -
- Signature: string
-
-
-

The relative name that can be applied to a simplifiable name

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-simplifynames.html b/docs/reference/fsharp-compiler-sourcecodeservices-simplifynames.html deleted file mode 100644 index f51618a91e..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-simplifynames.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - SimplifyNames - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SimplifyNames

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - -
TypeDescription
- SimplifiableRange - -

Data for use in finding unnecessarily-qualified names and generating diagnostics to simplify them

- - -
- -
- -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - getSimplifiableNames(...) - -
- Signature: (checkFileResults:FSharpCheckFileResults * getSourceLineStr:(int -> string)) -> Async<SimplifiableRange list>
-
-
-

Get all ranges that can be simplified in a file

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-sourcefile.html b/docs/reference/fsharp-compiler-sourcecodeservices-sourcefile.html deleted file mode 100644 index cb3ce133a2..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-sourcefile.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - SourceFile - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SourceFile

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Information about F# source file names

- -
- - - -

Functions and values

- - - - - - - - - - - - - - -
Function or valueDescription
- - IsCompilable(arg1) - -
- Signature: string -> bool
-
-
-

Whether or not this file is compilable

- - -
- - MustBeSingleFileProject(arg1) - -
- Signature: string -> bool
-
-
-

Whether or not this file should be a single-file project

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-stringlongident.html b/docs/reference/fsharp-compiler-sourcecodeservices-stringlongident.html deleted file mode 100644 index f81c4cc83d..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-stringlongident.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - StringLongIdent - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

StringLongIdent

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Long identifier (i.e. it may contain dots).

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Chars(arg1) - -
- Signature: int -> char
-
-
- -
- - x.Length - -
- Signature: int
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-structure-collapse.html b/docs/reference/fsharp-compiler-sourcecodeservices-structure-collapse.html deleted file mode 100644 index 0257fb4e7c..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-structure-collapse.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - Collapse - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Collapse

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: Structure
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Collapse indicates the way a range/snapshot should be collapsed. Same is for a scope inside -some kind of scope delimiter, e.g. [| ... |], [ ... ], { ... }, etc. Below is for expressions -following a binding or the right hand side of a pattern, e.g. let x = ...

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Below - -
- Signature:
-
-
- -
- - Same - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-structure-scope.html b/docs/reference/fsharp-compiler-sourcecodeservices-structure-scope.html deleted file mode 100644 index 7bc2b283d3..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-structure-scope.html +++ /dev/null @@ -1,720 +0,0 @@ - - - - - Scope - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Scope

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: Structure
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Tag to identify the construct that can be stored alongside its associated ranges

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - ArrayOrList - -
- Signature:
-
-
- -
- - Attribute - -
- Signature:
-
-
- -
- - Comment - -
- Signature:
-
-
- -
- - CompExpr - -
- Signature:
-
-
- -
- - CompExprInternal - -
- Signature:
-
-
- -
- - Do - -
- Signature:
-
-
- -
- - ElseInIfThenElse - -
- Signature:
-
-
- -
- - EnumCase - -
- Signature:
-
-
- -
- - FinallyInTryFinally - -
- Signature:
-
-
- -
- - For - -
- Signature:
-
-
- -
- - HashDirective - -
- Signature:
-
-
- -
- - IfThenElse - -
- Signature:
-
-
- -
- - Interface - -
- Signature:
-
-
- -
- - Lambda - -
- Signature:
-
-
- -
- - LetOrUse - -
- Signature:
-
-
- -
- - LetOrUseBang - -
- Signature:
-
-
- -
- - Match - -
- Signature:
-
-
- -
- - MatchBang - -
- Signature:
-
-
- -
- - MatchClause - -
- Signature:
-
-
- -
- - MatchLambda - -
- Signature:
-
-
- -
- - Member - -
- Signature:
-
-
- -
- - Module - -
- Signature:
-
-
- -
- - Namespace - -
- Signature:
-
-
- -
- - New - -
- Signature:
-
-
- -
- - ObjExpr - -
- Signature:
-
-
- -
- - Open - -
- Signature:
-
-
- -
- - Quote - -
- Signature:
-
-
- -
- - Record - -
- Signature:
-
-
- -
- - RecordDefn - -
- Signature:
-
-
- -
- - RecordField - -
- Signature:
-
-
- -
- - SpecialFunc - -
- Signature:
-
-
- -
- - ThenInIfThenElse - -
- Signature:
-
-
- -
- - TryFinally - -
- Signature:
-
-
- -
- - TryInTryFinally - -
- Signature:
-
-
- -
- - TryInTryWith - -
- Signature:
-
-
- -
- - TryWith - -
- Signature:
-
-
- -
- - Tuple - -
- Signature:
-
-
- -
- - Type - -
- Signature:
-
-
- -
- - TypeExtension - -
- Signature:
-
-
- -
- - UnionCase - -
- Signature:
-
-
- -
- - UnionDefn - -
- Signature:
-
-
- -
- - Val - -
- Signature:
-
-
- -
- - While - -
- Signature:
-
-
- -
- - WithInTryWith - -
- Signature:
-
-
- -
- - XmlDocComment - -
- Signature:
-
-
- -
- - YieldOrReturn - -
- Signature:
-
-
- -
- - YieldOrReturnBang - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-structure-scoperange.html b/docs/reference/fsharp-compiler-sourcecodeservices-structure-scoperange.html deleted file mode 100644 index 256436da3d..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-structure-scoperange.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - ScopeRange - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ScopeRange

-

- - Namespace: FSharp.Compiler.SourceCodeServices
- Parent Module: Structure
- - Attributes:
-[<NoComparison>]
- -
-

-
-

Stores the range for a construct, the sub-range that should be collapsed for outlinging, -a tag for the construct type, and a tag for the collapse style

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - Collapse - -
- Signature: Collapse
-
-
- -
- - CollapseRange - -
- Signature: range
-
-
-

TextSpan in BlockSpan

- - -
- - Range - -
- Signature: range
-
-
-

HintSpan in BlockSpan

- - -
- - Scope - -
- Signature: Scope
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-structure.html b/docs/reference/fsharp-compiler-sourcecodeservices-structure.html deleted file mode 100644 index 0fb68000e6..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-structure.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - Structure - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Structure

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - -
TypeDescription
- Collapse - -

Collapse indicates the way a range/snapshot should be collapsed. Same is for a scope inside -some kind of scope delimiter, e.g. [| ... |], [ ... ], { ... }, etc. Below is for expressions -following a binding or the right hand side of a pattern, e.g. let x = ...

- - -
- Scope - -

Tag to identify the construct that can be stored alongside its associated ranges

- - -
- ScopeRange - -

Stores the range for a construct, the sub-range that should be collapsed for outlinging, -a tag for the construct type, and a tag for the collapse style

- - -
- -
- -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - getOutliningRanges(...) - -
- Signature: sourceLines:string [] -> parsedInput:ParsedInput -> seq<ScopeRange>
-
-
-

Returns outlining ranges for given parsed input.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-symbol.html b/docs/reference/fsharp-compiler-sourcecodeservices-symbol.html deleted file mode 100644 index 6da79b4ac8..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-symbol.html +++ /dev/null @@ -1,712 +0,0 @@ - - - - - Symbol - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Symbol

-

- Namespace: FSharp.Compiler.SourceCodeServices
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Patterns over FSharpSymbol and derivatives.

- -
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - Symbol.getAbbreviatedType(arg1) - -
- Signature: FSharpType -> FSharpType
-
-
- -
- - Symbol.getEntityAbbreviatedType(arg1) - -
- Signature: FSharpEntity -> FSharpEntity * FSharpType option
-
-
- -
- - Symbol.hasAttribute(arg1) - -
- Signature: seq<FSharpAttribute> -> bool
- Type parameters: 'T
-
- -
- - Symbol.hasModuleSuffixAttribute(arg1) - -
- Signature: FSharpEntity -> bool
-
-
- -
- - Symbol.isAttribute(arg1) - -
- Signature: FSharpAttribute -> bool
- Type parameters: 'T
-
- -
- - Symbol.isOperator(name) - -
- Signature: name:string -> bool
-
-
- -
- - Symbol.isUnnamedUnionCaseField(arg1) - -
- Signature: FSharpField -> bool
-
-
- -
- - Symbol.tryGetAttribute(arg1) - -
- Signature: seq<FSharpAttribute> -> FSharpAttribute option
- Type parameters: 'T
-
- -
-

Active patterns

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Active patternDescription
- - Symbol.( |AbbreviatedType|_| )(arg1) - -
- Signature: FSharpEntity -> FSharpType option
-
-
- -

CompiledName: |AbbreviatedType|_|

-
- - Symbol.( |AbstractClass|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |AbstractClass|_|

-
- - Symbol.( |ActivePatternCase|_| )(arg1) - -
- Signature: FSharpSymbol -> FSharpActivePatternCase option
-
-
- -

CompiledName: |ActivePatternCase|_|

-
- - Symbol.( |Array|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |Array|_|

-
- - Symbol.( |Attribute|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |Attribute|_|

-
- - Symbol.( |ByRef|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |ByRef|_|

-
- - Symbol.( |Class|_| )(...) - -
- Signature: (original:FSharpEntity * abbreviated:FSharpEntity * 'a) -> unit option
- Type parameters: 'a
-
- -

CompiledName: |Class|_|

-
- - Symbol.( |Constructor|_| )(arg1) - -
- Signature: FSharpMemberOrFunctionOrValue -> FSharpEntity option
-
-
- -

CompiledName: |Constructor|_|

-
- - Symbol.( |Delegate|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |Delegate|_|

-
- - Symbol.( |Enum|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |Enum|_|

-
- - Symbol.( |Event|_| )(arg1) - -
- Signature: FSharpMemberOrFunctionOrValue -> unit option
-
-
- -

CompiledName: |Event|_|

-
- - Symbol.( |ExtensionMember|_| )(arg1) - -
- Signature: FSharpMemberOrFunctionOrValue -> unit option
-
-
- -

CompiledName: |ExtensionMember|_|

-
- - Symbol.( |Field|_| )(arg1) - -
- Signature: FSharpSymbol -> (FSharpField * FSharpType) option
-
-
- -

CompiledName: |Field|_|

-
- - Symbol.( |FSharpEntity|_| )(arg1) - -
- Signature: FSharpSymbol -> (FSharpEntity * FSharpEntity * FSharpType option) option
-
-
- -

CompiledName: |FSharpEntity|_|

-
- - Symbol.( |FSharpException|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |FSharpException|_|

-
- - Symbol.( |FSharpModule|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |FSharpModule|_|

-
- - Symbol.( |FSharpType|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |FSharpType|_|

-
- - Symbol.( |Function|_| ) excluded arg2 - -
- Signature: excluded:bool -> FSharpMemberOrFunctionOrValue -> unit option
-
-
- -

CompiledName: |Function|_|

-
- - Symbol.( |FunctionType|_| )(arg1) - -
- Signature: FSharpType -> unit option
-
-
- -

CompiledName: |FunctionType|_|

-
- - Symbol.( |Interface|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |Interface|_|

-
- - Symbol.( |MemberFunctionOrValue|_| )(...) - -
- Signature: FSharpSymbol -> FSharpMemberOrFunctionOrValue option
-
-
- -

CompiledName: |MemberFunctionOrValue|_|

-
- - Symbol.( |MutableVar|_| )(arg1) - -
- Signature: FSharpSymbol -> unit option
-
-
- -

CompiledName: |MutableVar|_|

-
- - Symbol.( |Namespace|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |Namespace|_|

-
- - Symbol.( |Parameter|_| )(arg1) - -
- Signature: FSharpSymbol -> unit option
-
-
- -

CompiledName: |Parameter|_|

-
- - Symbol.( |Pattern|_| )(arg1) - -
- Signature: FSharpSymbol -> unit option
-
-
- -

CompiledName: |Pattern|_|

-
- - Symbol.( |ProvidedAndErasedType|_| )(...) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |ProvidedAndErasedType|_|

-
- - Symbol.( |ProvidedType|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |ProvidedType|_|

-
- - Symbol.( |Record|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |Record|_|

-
- - Symbol.( |RecordField|_| )(arg1) - -
- Signature: FSharpSymbol -> FSharpField option
-
-
- -

CompiledName: |RecordField|_|

-
- - Symbol.( |RefCell|_| )(arg1) - -
- Signature: FSharpType -> unit option
-
-
- -

CompiledName: |RefCell|_|

-
- - Symbol.( |Tuple|_| )(arg1) - -
- Signature: FSharpType -> unit option
-
-
- -

CompiledName: |Tuple|_|

-
- - Symbol.( |TypeWithDefinition|_| )(arg1) - -
- Signature: FSharpType -> FSharpEntity option
-
-
- -

CompiledName: |TypeWithDefinition|_|

-
- - Symbol.( |UnionCase|_| )(arg1) - -
- Signature: FSharpSymbol -> FSharpUnionCase option
-
-
- -

CompiledName: |UnionCase|_|

-
- - Symbol.( |UnionType|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |UnionType|_|

-
- - Symbol.( |ValueType|_| )(arg1) - -
- Signature: FSharpEntity -> unit option
-
-
- -

CompiledName: |ValueType|_|

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-tooltips.html b/docs/reference/fsharp-compiler-sourcecodeservices-tooltips.html deleted file mode 100644 index e542c814b3..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-tooltips.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - Tooltips - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Tooltips

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - Map f a - -
- Signature: f:('T1 -> 'T2) -> a:Async<'T1> -> Async<'T2>
- Type parameters: 'T1, 'T2
-
- -
- - ToFSharpToolTipElement(arg1) - -
- Signature: FSharpStructuredToolTipElement -> FSharpToolTipElement
-
-
- -
- - ToFSharpToolTipText(arg1) - -
- Signature: FSharpStructuredToolTipText -> FSharpToolTipText
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-unresolvedreferencesset.html b/docs/reference/fsharp-compiler-sourcecodeservices-unresolvedreferencesset.html deleted file mode 100644 index 48b8e3ba0b..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-unresolvedreferencesset.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - UnresolvedReferencesSet - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

UnresolvedReferencesSet

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Unused in this API

- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-unresolvedsymbol.html b/docs/reference/fsharp-compiler-sourcecodeservices-unresolvedsymbol.html deleted file mode 100644 index a4fc7e1269..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-unresolvedsymbol.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - UnresolvedSymbol - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

UnresolvedSymbol

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
-

Record Fields

- - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - DisplayName - -
- Signature: string
-
-
- -
- - FullName - -
- Signature: string
-
-
- -
- - Namespace - -
- Signature: string []
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-untypedparseimpl.html b/docs/reference/fsharp-compiler-sourcecodeservices-untypedparseimpl.html deleted file mode 100644 index aa88baa081..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-untypedparseimpl.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - UntypedParseImpl - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

UntypedParseImpl

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - GetEntityKind(arg1, arg2) - -
- Signature: (pos * ParsedInput) -> EntityKind option
-
-
- -
- - GetFullNameOfSmallestModuleOrNamespaceAtPoint(...) - -
- Signature: (ParsedInput * pos) -> string []
-
-
- -
- - GetRangeOfExprLeftOfDot(arg1, arg2) - -
- Signature: (pos * ParsedInput option) -> range option
-
-
- -
- - TryFindExpressionASTLeftOfDotLeftOfCursor(...) - -
- Signature: (pos * ParsedInput option) -> (pos * bool) option
-
-
- -
- - TryFindExpressionIslandInPosition(...) - -
- Signature: (pos * ParsedInput option) -> string option
-
-
- -
- - TryGetCompletionContext(...) - -
- Signature: (pos * ParsedInput * lineStr:string) -> CompletionContext option
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-unuseddeclarations.html b/docs/reference/fsharp-compiler-sourcecodeservices-unuseddeclarations.html deleted file mode 100644 index 48eb3f60fa..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-unuseddeclarations.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - UnusedDeclarations - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

UnusedDeclarations

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - getUnusedDeclarations(...) - -
- Signature: (checkFileResults:FSharpCheckFileResults * isScriptFile:bool) -> Async<range list>
-
-
-

Get all unused declarations in a file

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-unusedopens.html b/docs/reference/fsharp-compiler-sourcecodeservices-unusedopens.html deleted file mode 100644 index 5e26b54b32..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-unusedopens.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - UnusedOpens - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

UnusedOpens

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - getUnusedOpens(...) - -
- Signature: (checkFileResults:FSharpCheckFileResults * getSourceLineStr:(int -> string)) -> Async<range list>
-
-
-

Get all unused open declarations in a file

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-xmldocable.html b/docs/reference/fsharp-compiler-sourcecodeservices-xmldocable.html deleted file mode 100644 index 3555c627dc..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-xmldocable.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - XmlDocable - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

XmlDocable

-

- - Namespace: FSharp.Compiler.SourceCodeServices
-

-
-

Represent an Xml documentation block in source code

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - XmlDocable(line,indent,paramNames) - -
- Signature: int * int * string list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-xmldoccomment.html b/docs/reference/fsharp-compiler-sourcecodeservices-xmldoccomment.html deleted file mode 100644 index b011c99f22..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-xmldoccomment.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - XmlDocComment - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

XmlDocComment

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - isBlank(arg1) - -
- Signature: string -> int option
-
-
-

if it's a blank XML comment with trailing "<", returns Some (index of the "<"), otherwise returns None

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-sourcecodeservices-xmldocparser.html b/docs/reference/fsharp-compiler-sourcecodeservices-xmldocparser.html deleted file mode 100644 index 61d286e9e3..0000000000 --- a/docs/reference/fsharp-compiler-sourcecodeservices-xmldocparser.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - XmlDocParser - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

XmlDocParser

-

- Namespace: FSharp.Compiler.SourceCodeServices
-

-
-
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - getXmlDocables(arg1, input) - -
- Signature: (ISourceText * input:ParsedInput option) -> XmlDocable list
-
-
-

Get the list of Xml documentation from current source code

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-blockseparator.html b/docs/reference/fsharp-compiler-syntaxtree-blockseparator.html deleted file mode 100644 index c634aa0b6a..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-blockseparator.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - BlockSeparator - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

BlockSeparator

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

Represents the location of the separator block + optional position -of the semicolon (used for tooling support)

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Item1 - -
- Signature: range
-
-
- -
- - x.Item2 - -
- Signature: pos option
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-debugpointatfinally.html b/docs/reference/fsharp-compiler-syntaxtree-debugpointatfinally.html deleted file mode 100644 index f46d4cbb47..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-debugpointatfinally.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - DebugPointAtFinally - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DebugPointAtFinally

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents whether a debug point should be present for the 'finally' in a 'try .. finally', -that is whether the construct corresponds to a debug point in the original source.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - No - -
- Signature:
-
-
- -
- - Yes(range) - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-debugpointatfor.html b/docs/reference/fsharp-compiler-syntaxtree-debugpointatfor.html deleted file mode 100644 index 895b67f391..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-debugpointatfor.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - DebugPointAtFor - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DebugPointAtFor

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents whether a debug point should be present for the 'for' in a 'for...' loop, -that is whether the construct corresponds to a debug point in the original source.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - No - -
- Signature:
-
-
- -
- - Yes(range) - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-debugpointatsequential.html b/docs/reference/fsharp-compiler-syntaxtree-debugpointatsequential.html deleted file mode 100644 index c40143fa39..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-debugpointatsequential.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - DebugPointAtSequential - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DebugPointAtSequential

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents whether a debug point should be present for either the -first or second part of a sequential execution, that is whether the -construct corresponds to a debug point in the original source.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Both - -
- Signature:
-
-
- -
- - ExprOnly - -
- Signature:
-
-
- -
- - StmtOnly - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-debugpointattry.html b/docs/reference/fsharp-compiler-syntaxtree-debugpointattry.html deleted file mode 100644 index 5288252f59..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-debugpointattry.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - DebugPointAtTry - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DebugPointAtTry

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents whether a debug point should be present for a 'try', that is whether -the construct corresponds to a debug point in the original source.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Body - -
- Signature:
-
-
- -
- - No - -
- Signature:
-
-
- -
- - Yes(range) - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-debugpointatwhile.html b/docs/reference/fsharp-compiler-syntaxtree-debugpointatwhile.html deleted file mode 100644 index 6fc9c68fc6..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-debugpointatwhile.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - DebugPointAtWhile - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DebugPointAtWhile

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents whether a debug point should be present for the 'while' in a 'while...' loop, -that is whether the construct corresponds to a debug point in the original source.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - No - -
- Signature:
-
-
- -
- - Yes(range) - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-debugpointatwith.html b/docs/reference/fsharp-compiler-syntaxtree-debugpointatwith.html deleted file mode 100644 index 63eacccd90..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-debugpointatwith.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - DebugPointAtWith - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DebugPointAtWith

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents whether a debug point should be present for the 'with' in a 'try .. with', -that is whether the construct corresponds to a debug point in the original source.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - No - -
- Signature:
-
-
- -
- - Yes(range) - -
- Signature: range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-debugpointforbinding.html b/docs/reference/fsharp-compiler-syntaxtree-debugpointforbinding.html deleted file mode 100644 index 49b00a0f58..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-debugpointforbinding.html +++ /dev/null @@ -1,191 +0,0 @@ - - - - - DebugPointForBinding - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DebugPointForBinding

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

Represents whether a debug point should be present for a 'let' binding, -that is whether the construct corresponds to a debug point in the original source.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - DebugPointAtBinding(range) - -
- Signature: range
-
-
- -
- - NoDebugPointAtDoBinding - -
- Signature:
-
-
- -
- - NoDebugPointAtInvisibleBinding - -
- Signature:
-
-
- -
- - NoDebugPointAtLetBinding - -
- Signature:
-
-
- -
- - NoDebugPointAtStickyBinding - -
- Signature:
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Combine(y) - -
- Signature: y:DebugPointForBinding -> DebugPointForBinding
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-debugpointfortarget.html b/docs/reference/fsharp-compiler-syntaxtree-debugpointfortarget.html deleted file mode 100644 index 3fe101720d..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-debugpointfortarget.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - DebugPointForTarget - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DebugPointForTarget

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents whether a debug point should be present for the target -of a decision tree, that is whether the construct corresponds to a debug -point in the original source.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - No - -
- Signature:
-
-
- -
- - Yes - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-expratomicflag.html b/docs/reference/fsharp-compiler-syntaxtree-expratomicflag.html deleted file mode 100644 index c83019f7d2..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-expratomicflag.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - ExprAtomicFlag - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ExprAtomicFlag

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

Indicates if an expression is an atomic expression.

-

An atomic expression has no whitespace unlessenclosed in parentheses, e.g. -1, "3", ident, ident.[expr] and (expr). If an atomic expression has type T, -then the largest expression ending at the same range as the atomic expression -also has type T.

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Atomic - -
- Signature: ExprAtomicFlag
- Modifiers: static
-
-
- -
- - NonAtomic - -
- Signature: ExprAtomicFlag
- Modifiers: static
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-ident.html b/docs/reference/fsharp-compiler-syntaxtree-ident.html deleted file mode 100644 index 52020bcbd7..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-ident.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - Ident - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Ident

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<Struct>]
-[<NoEquality>]
-[<NoComparison>]
-[<DebuggerDisplay("{idText}")>]
- -
-

-
-

Represents an identifier in F# code

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(text, range) - -
- Signature: (text:string * range:range) -> Ident
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.idRange - -
- Signature: range
-
-
- -

CompiledName: get_idRange

-
- - x.idText - -
- Signature: string
-
-
- -

CompiledName: get_idText

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-longident.html b/docs/reference/fsharp-compiler-syntaxtree-longident.html deleted file mode 100644 index 26f1150328..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-longident.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - LongIdent - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LongIdent

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

Represents a long identifier e.g. 'A.B.C'

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Head - -
- Signature: Ident
-
-
- -

CompiledName: get_Head

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [index] - -
- Signature: index:int -> Ident
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
-
-
- -

CompiledName: get_Length

-
- - x.Tail - -
- Signature: Ident list
-
-
- -

CompiledName: get_Tail

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - List.Empty - -
- Signature: Ident list
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-longidentwithdots.html b/docs/reference/fsharp-compiler-syntaxtree-longidentwithdots.html deleted file mode 100644 index 47b6569e0a..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-longidentwithdots.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - LongIdentWithDots - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LongIdentWithDots

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

Represents a long identifier with possible '.' at end.

-

Typically dotms.Length = lid.Length-1, but they may be same if (incomplete) code ends in a dot, e.g. "Foo.Bar." -The dots mostly matter for parsing, and are typically ignored by the typechecker, but -if dotms.Length = lid.Length, then the parser must have reported an error, so the typechecker is allowed -more freedom about typechecking these expressions. -LongIdent can be empty list - it is used to denote that name of some AST element is absent (i.e. empty type name in inherit)

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - LongIdentWithDots(id,dotms) - -
- Signature: LongIdent * range list
-
-
- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Lid - -
- Signature: LongIdent
-
-
-

Get the long ident for this construct

- - -

CompiledName: get_Lid

-
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- - x.RangeSansAnyExtraDot - -
- Signature: range
-
-
-

Gets the syntax range for part of this constuct

- - -

CompiledName: get_RangeSansAnyExtraDot

-
- - x.ThereIsAnExtraDotAtTheEnd - -
- Signature: bool
-
-
-

Indicates if the construct ends in '.' due to error recovery

- - -

CompiledName: get_ThereIsAnExtraDotAtTheEnd

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-memberflags.html b/docs/reference/fsharp-compiler-syntaxtree-memberflags.html deleted file mode 100644 index c0a12e5bd2..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-memberflags.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - MemberFlags - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

MemberFlags

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoComparison>]
- -
-

-
-

Represents the flags for a 'member' declaration

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - IsDispatchSlot - -
- Signature: bool
-
-
-

The member is a dispatch slot

- - -
- - IsFinal - -
- Signature: bool
-
-
-

The member is 'final'

- - -
- - IsInstance - -
- Signature: bool
-
-
-

The member is an instance member (non-static)

- - -
- - IsOverrideOrExplicitImpl - -
- Signature: bool
-
-
-

The member is an 'override' or explicit interface implementation

- - -
- - MemberKind - -
- Signature: MemberKind
-
-
-

The kind of the member

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-memberkind.html b/docs/reference/fsharp-compiler-syntaxtree-memberkind.html deleted file mode 100644 index 80a24a80e2..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-memberkind.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - MemberKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

MemberKind

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<StructuralEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Note the member kind is actually computed partially by a syntax tree transformation in tc.fs

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - ClassConstructor - -
- Signature:
-
-
-

The member is a class initializer

- - -
- - Constructor - -
- Signature:
-
-
-

The member is a object model constructor

- - -
- - Member - -
- Signature:
-
-
-

The member kind is not yet determined

- - -
- - PropertyGet - -
- Signature:
-
-
-

The member kind is property getter

- - -
- - PropertyGetSet - -
- Signature:
-
-
-

An artificial member kind used prior to the point where a -get/set property is split into two distinct members.

- - -
- - PropertySet - -
- Signature:
-
-
-

The member kind is property setter

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-parsedfsiinteraction.html b/docs/reference/fsharp-compiler-syntaxtree-parsedfsiinteraction.html deleted file mode 100644 index b9a521001c..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-parsedfsiinteraction.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - ParsedFsiInteraction - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParsedFsiInteraction

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a parsed syntax tree for an F# Interactive interaction

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - IDefns(defns,range) - -
- Signature: SynModuleDecl list * range
-
-
- -
- - IHash(hashDirective,range) - -
- Signature: ParsedHashDirective * range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-parsedhashdirective.html b/docs/reference/fsharp-compiler-syntaxtree-parsedhashdirective.html deleted file mode 100644 index 190aea1fcf..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-parsedhashdirective.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - ParsedHashDirective - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParsedHashDirective

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a parsed hash directive

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - ParsedHashDirective(ident,args,range) - -
- Signature: string * string list * range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-parsedimplfile.html b/docs/reference/fsharp-compiler-syntaxtree-parsedimplfile.html deleted file mode 100644 index 58a722c367..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-parsedimplfile.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - ParsedImplFile - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParsedImplFile

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a parsed implementation file made up of fragments

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - ParsedImplFile(hashDirectives,fragments) - -
- Signature: ParsedHashDirective list * ParsedImplFileFragment list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-parsedimplfilefragment.html b/docs/reference/fsharp-compiler-syntaxtree-parsedimplfilefragment.html deleted file mode 100644 index 159b1c637b..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-parsedimplfilefragment.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - ParsedImplFileFragment - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParsedImplFileFragment

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents the syntax tree for the contents of a parsed implementation file

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - AnonModule(decls,range) - -
- Signature: SynModuleDecl list * range
-
-
-

An implementation file which is an anonymous module definition, e.g. a script

- - -
- - NamedModule(namedModule) - -
- Signature: SynModuleOrNamespace
-
-
-

An implementation file is a named module definition, 'module N'

- - -
- - NamespaceFragment(...) - -
- Signature: LongIdent * bool * SynModuleOrNamespaceKind * SynModuleDecl list * PreXmlDoc * SynAttributes * range
-
-
-

An implementation file fragment which declares a namespace fragment

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-parsedimplfileinput.html b/docs/reference/fsharp-compiler-syntaxtree-parsedimplfileinput.html deleted file mode 100644 index 9194fc1f3e..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-parsedimplfileinput.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - ParsedImplFileInput - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParsedImplFileInput

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the full syntax tree, file name and other parsing information for an implementation file

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - ParsedImplFileInput(...) - -
- Signature: string * bool * QualifiedNameOfFile * ScopedPragma list * ParsedHashDirective list * SynModuleOrNamespace list * bool * bool
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-parsedinput.html b/docs/reference/fsharp-compiler-syntaxtree-parsedinput.html deleted file mode 100644 index cdec3f7ee5..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-parsedinput.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - - ParsedInput - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParsedInput

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents the syntax tree for a parsed implementation or signature file

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - ImplFile(ParsedImplFileInput) - -
- Signature: ParsedImplFileInput
-
-
-

A parsed implementation file

- - -
- - SigFile(ParsedSigFileInput) - -
- Signature: ParsedSigFileInput
-
-
-

A parsed signature file

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-parsedsigfile.html b/docs/reference/fsharp-compiler-syntaxtree-parsedsigfile.html deleted file mode 100644 index 81afa53a38..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-parsedsigfile.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - ParsedSigFile - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParsedSigFile

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a parsed signature file made up of fragments

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - ParsedSigFile(hashDirectives,fragments) - -
- Signature: ParsedHashDirective list * ParsedSigFileFragment list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-parsedsigfilefragment.html b/docs/reference/fsharp-compiler-syntaxtree-parsedsigfilefragment.html deleted file mode 100644 index 041714c4a7..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-parsedsigfilefragment.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - ParsedSigFileFragment - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParsedSigFileFragment

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents the syntax tree for the contents of a parsed signature file

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - AnonModule(decls,range) - -
- Signature: SynModuleSigDecl list * range
-
-
-

A signature file which is an anonymous module, e.g. the signature file for the final file in an application

- - -
- - NamedModule(namedModule) - -
- Signature: SynModuleOrNamespaceSig
-
-
-

A signature file which is a module, 'module N'

- - -
- - NamespaceFragment(...) - -
- Signature: LongIdent * bool * SynModuleOrNamespaceKind * SynModuleSigDecl list * PreXmlDoc * SynAttributes * range
-
-
-

A signature file namespace fragment

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-parsedsigfileinput.html b/docs/reference/fsharp-compiler-syntaxtree-parsedsigfileinput.html deleted file mode 100644 index 358cb98cf5..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-parsedsigfileinput.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - ParsedSigFileInput - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParsedSigFileInput

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the full syntax tree, file name and other parsing information for a signature file

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - ParsedSigFileInput(...) - -
- Signature: string * QualifiedNameOfFile * ScopedPragma list * ParsedHashDirective list * SynModuleOrNamespaceSig list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-parserdetail.html b/docs/reference/fsharp-compiler-syntaxtree-parserdetail.html deleted file mode 100644 index 98b20238a2..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-parserdetail.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - ParserDetail - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ParserDetail

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Indicates if the construct arises from error recovery

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - ErrorRecovery - -
- Signature:
-
-
-

The construct arises from error recovery

- - -
- - Ok - -
- Signature:
-
-
-

The construct arises normally

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-qualifiednameoffile.html b/docs/reference/fsharp-compiler-syntaxtree-qualifiednameoffile.html deleted file mode 100644 index 577d2a6c01..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-qualifiednameoffile.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - QualifiedNameOfFile - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

QualifiedNameOfFile

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a qualifying name for anonymous module specifications and implementations,

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - QualifiedNameOfFile(Ident) - -
- Signature: Ident
-
-
- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Id - -
- Signature: Ident
-
-
-

The identifier for the name of the file

- - -

CompiledName: get_Id

-
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- - x.Text - -
- Signature: string
-
-
-

The name of the file

- - -

CompiledName: get_Text

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-recordfieldname.html b/docs/reference/fsharp-compiler-syntaxtree-recordfieldname.html deleted file mode 100644 index 278fd7699f..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-recordfieldname.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - RecordFieldName - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

RecordFieldName

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

Represents a record field name plus a flag indicating if given record field name is syntactically -correct and can be used in name resolution.

- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Item1 - -
- Signature: LongIdentWithDots
-
-
- -
- - x.Item2 - -
- Signature: bool
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-scopedpragma.html b/docs/reference/fsharp-compiler-syntaxtree-scopedpragma.html deleted file mode 100644 index d3cedfeac3..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-scopedpragma.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - ScopedPragma - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ScopedPragma

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents a scoped pragma

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - WarningOff(range,warningNumber) - -
- Signature: range * int
-
-
-

A pragma to turn a warning off

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-seqexpronly.html b/docs/reference/fsharp-compiler-syntaxtree-seqexpronly.html deleted file mode 100644 index 310f3bcb44..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-seqexpronly.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - SeqExprOnly - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SeqExprOnly

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

Indicates if a for loop is 'for x in e1 -> e2', only valid in sequence expressions

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - SeqExprOnly(bool) - -
- Signature: bool
-
-
-

Indicates if a for loop is 'for x in e1 -> e2', only valid in sequence expressions

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synaccess.html b/docs/reference/fsharp-compiler-syntaxtree-synaccess.html deleted file mode 100644 index 25fff8e76c..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synaccess.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - SynAccess - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynAccess

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents an accessibility modifier in F# syntax

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Internal - -
- Signature:
-
-
-

A construct marked or assumed 'internal'

- - -
- - Private - -
- Signature:
-
-
-

A construct marked or assumed 'private'

- - -
- - Public - -
- Signature:
-
-
-

A construct marked or assumed 'public'

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synarginfo.html b/docs/reference/fsharp-compiler-syntaxtree-synarginfo.html deleted file mode 100644 index 8f575a2e1c..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synarginfo.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - SynArgInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynArgInfo

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the argument names and other metadata for a parameter for a member or function

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - SynArgInfo(attributes,optional,ident) - -
- Signature: SynAttributes * bool * Ident option
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synargpats.html b/docs/reference/fsharp-compiler-syntaxtree-synargpats.html deleted file mode 100644 index 85d00885fa..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synargpats.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - SynArgPats - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynArgPats

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

Represents a syntax tree for argumments patterns

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - NamePatPairs(pats,range) - -
- Signature: (Ident * SynPat) list * range
-
-
- -
- - Pats(pats) - -
- Signature: SynPat list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synattribute.html b/docs/reference/fsharp-compiler-syntaxtree-synattribute.html deleted file mode 100644 index 54298c546a..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synattribute.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - SynAttribute - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynAttribute

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents an attribute

- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - AppliesToGetterAndSetter - -
- Signature: bool
-
-
-

Is this attribute being applied to a property getter or setter?

- - -
- - ArgExpr - -
- Signature: SynExpr
-
-
-

The argument of the attribute, perhaps a tuple

- - -
- - Range - -
- Signature: range
-
-
-

The syntax range of the attribute

- - -
- - Target - -
- Signature: Ident option
-
-
-

Target specifier, e.g. "assembly", "module", etc.

- - -
- - TypeName - -
- Signature: LongIdentWithDots
-
-
-

The name of the type for the attribute

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synattributelist.html b/docs/reference/fsharp-compiler-syntaxtree-synattributelist.html deleted file mode 100644 index 196d968c09..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synattributelist.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - SynAttributeList - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynAttributeList

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

List of attributes enclosed in [< ... >].

- -
-

Record Fields

- - - - - - - - - - - - - - -
Record FieldDescription
- - Attributes - -
- Signature: SynAttribute list
-
-
-

The list of attributes

- - -
- - Range - -
- Signature: range
-
-
-

The syntax range of the list of attributes

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synattributes.html b/docs/reference/fsharp-compiler-syntaxtree-synattributes.html deleted file mode 100644 index d7b20c8af2..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synattributes.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - SynAttributes - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynAttributes

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Head - -
- Signature: SynAttributeList
-
-
- -

CompiledName: get_Head

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [index] - -
- Signature: index:int -> SynAttributeList
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
-
-
- -

CompiledName: get_Length

-
- - x.Tail - -
- Signature: SynAttributeList list
-
-
- -

CompiledName: get_Tail

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - List.Empty - -
- Signature: SynAttributeList list
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synbinding.html b/docs/reference/fsharp-compiler-syntaxtree-synbinding.html deleted file mode 100644 index dc91f9571c..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synbinding.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - SynBinding - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynBinding

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a binding for a 'let' or 'member' declaration

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - Binding(...) - -
- Signature: SynAccess option * SynBindingKind * bool * bool * SynAttributes * PreXmlDoc * SynValData * SynPat * SynBindingReturnInfo option * SynExpr * range * DebugPointForBinding
-
-
- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.RangeOfBindingAndRhs - -
- Signature: range
-
-
- -

CompiledName: get_RangeOfBindingAndRhs

-
- - x.RangeOfBindingSansRhs - -
- Signature: range
-
-
- -

CompiledName: get_RangeOfBindingSansRhs

-
- - x.RangeOfHeadPat - -
- Signature: range
-
-
- -

CompiledName: get_RangeOfHeadPat

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synbindingkind.html b/docs/reference/fsharp-compiler-syntaxtree-synbindingkind.html deleted file mode 100644 index d0cda43170..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synbindingkind.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - SynBindingKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynBindingKind

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

The kind associated with a binding - "let", "do" or a standalone expression

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - DoBinding - -
- Signature:
-
-
-

A 'do' binding in a module. Must have type 'unit'

- - -
- - NormalBinding - -
- Signature:
-
-
-

A normal 'let' binding in a module

- - -
- - StandaloneExpression - -
- Signature:
-
-
-

A standalone expression in a module

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synbindingreturninfo.html b/docs/reference/fsharp-compiler-syntaxtree-synbindingreturninfo.html deleted file mode 100644 index 727e0af06a..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synbindingreturninfo.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - SynBindingReturnInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynBindingReturnInfo

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the return information in a binding for a 'let' or 'member' declaration

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - SynBindingReturnInfo(...) - -
- Signature: SynType * range * SynAttributes
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-syncomponentinfo.html b/docs/reference/fsharp-compiler-syntaxtree-syncomponentinfo.html deleted file mode 100644 index 565e751b3d..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-syncomponentinfo.html +++ /dev/null @@ -1,151 +0,0 @@ - - - - - SynComponentInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynComponentInfo

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the syntax tree associated with the name of a type definition or module -in signature or implementation.

-

This includes the name, attributes, type parameters, constraints, documentation and accessibility -for a type definition or module. For modules, entries such as the type parameters are -always empty.

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - ComponentInfo(...) - -
- Signature: SynAttributes * SynTyparDecl list * SynTypeConstraint list * LongIdent * PreXmlDoc * bool * SynAccess option * range
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synconst.html b/docs/reference/fsharp-compiler-syntaxtree-synconst.html deleted file mode 100644 index 5387739e96..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synconst.html +++ /dev/null @@ -1,453 +0,0 @@ - - - - - SynConst - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynConst

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

The unchecked abstract syntax tree of constants in F# types and expressions.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Bool(bool) - -
- Signature: bool
-
-
-

F# syntax: true, false

- - -
- - Byte(byte) - -
- Signature: byte
-
-
-

F# syntax: 13uy, 0x40uy, 0oFFuy, 0b0111101uy

- - -
- - Bytes(bytes,range) - -
- Signature: byte [] * range
-
-
-

F# syntax: verbatim or regular byte string, e.g. "abc"B.

-

Also used internally in the typechecker once an array of unit16 constants -is detected, to allow more efficient processing of large arrays of uint16 constants.

- - -
- - Char(char) - -
- Signature: char
-
-
-

F# syntax: 'a'

- - -
- - Decimal(Decimal) - -
- Signature: Decimal
-
-
-

F# syntax: 23.4M

- - -
- - Double(double) - -
- Signature: double
-
-
-

F# syntax: 1.30, 1.40e10 etc.

- - -
- - Int16(int16) - -
- Signature: int16
-
-
-

F# syntax: 13s, 0x4000s, 0o0777s, 0b0111101s

- - -
- - Int32(int32) - -
- Signature: int32
-
-
-

F# syntax: 13, 0x4000, 0o0777

- - -
- - Int64(int64) - -
- Signature: int64
-
-
-

F# syntax: 13L

- - -
- - IntPtr(int64) - -
- Signature: int64
-
-
-

F# syntax: 13n

- - -
- - Measure(constant,SynMeasure) - -
- Signature: SynConst * SynMeasure
-
-
-

Old comment: "we never iterate, so the const here is not another SynConst.Measure"

- - -
- - SByte(sbyte) - -
- Signature: sbyte
-
-
-

F# syntax: 13y, 0xFFy, 0o077y, 0b0111101y

- - -
- - Single(single) - -
- Signature: single
-
-
-

F# syntax: 1.30f, 1.40e10f etc.

- - -
- - String(text,range) - -
- Signature: string * range
-
-
-

F# syntax: verbatim or regular string, e.g. "abc"

- - -
- - UInt16(uint16) - -
- Signature: uint16
-
-
-

F# syntax: 13us, 0x4000us, 0o0777us, 0b0111101us

- - -
- - UInt16s(uint16 []) - -
- Signature: uint16 []
-
-
-

Used internally in the typechecker once an array of unit16 constants -is detected, to allow more efficient processing of large arrays of uint16 constants.

- - -
- - UInt32(uint32) - -
- Signature: uint32
-
-
-

F# syntax: 13u, 0x4000u, 0o0777u

- - -
- - UInt64(uint64) - -
- Signature: uint64
-
-
-

F# syntax: 13UL

- - -
- - UIntPtr(uint64) - -
- Signature: uint64
-
-
-

F# syntax: 13un

- - -
- - Unit - -
- Signature:
-
-
-

F# syntax: ()

- - -
- - UserNum(value,suffix) - -
- Signature: string * string
-
-
-

UserNum(value, suffix)

-

F# syntax: 1Q, 1Z, 1R, 1N, 1G

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range(dflt) - -
- Signature: dflt:range -> range
-
-
-

Gets the syntax range of this constuct

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synenumcase.html b/docs/reference/fsharp-compiler-syntaxtree-synenumcase.html deleted file mode 100644 index 07e7287445..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synenumcase.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - SynEnumCase - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynEnumCase

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the syntax tree for one case in an enum definition.

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - EnumCase(...) - -
- Signature: SynAttributes * Ident * SynConst * PreXmlDoc * range
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synexceptiondefn.html b/docs/reference/fsharp-compiler-syntaxtree-synexceptiondefn.html deleted file mode 100644 index 142f5db176..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synexceptiondefn.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - SynExceptionDefn - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynExceptionDefn

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the right hand side of an exception declaration 'exception E = ... ' plus -any member definitions for the exception

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - SynExceptionDefn(exnRepr,members,range) - -
- Signature: SynExceptionDefnRepr * SynMemberDefns * range
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synexceptiondefnrepr.html b/docs/reference/fsharp-compiler-syntaxtree-synexceptiondefnrepr.html deleted file mode 100644 index 90272b2b94..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synexceptiondefnrepr.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - SynExceptionDefnRepr - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynExceptionDefnRepr

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the right hand side of an exception declaration 'exception E = ... '

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - SynExceptionDefnRepr(...) - -
- Signature: SynAttributes * SynUnionCase * LongIdent option * PreXmlDoc * SynAccess option * range
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synexceptionsig.html b/docs/reference/fsharp-compiler-syntaxtree-synexceptionsig.html deleted file mode 100644 index 5d423af9b2..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synexceptionsig.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - SynExceptionSig - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynExceptionSig

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the right hand side of an exception definition in a signature file

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - SynExceptionSig(exnRepr,members,range) - -
- Signature: SynExceptionDefnRepr * SynMemberSig list * range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synexpr.html b/docs/reference/fsharp-compiler-syntaxtree-synexpr.html deleted file mode 100644 index 6409877213..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synexpr.html +++ /dev/null @@ -1,1145 +0,0 @@ - - - - - SynExpr - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynExpr

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents a syntax tree for F# expressions

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - AddressOf(isByref,expr,opRange,range) - -
- Signature: bool * SynExpr * range * range
-
-
-

F# syntax: &expr, &&expr

- - -
- - AnonRecd(...) - -
- Signature: bool * (SynExpr * BlockSeparator) option * (Ident * SynExpr) list * range
-
-
-

F# syntax: {| id1=e1; ...; idN=eN |} -F# syntax: struct {| id1=e1; ...; idN=eN |}

- - -
- - App(flag,isInfix,funcExpr,argExpr,range) - -
- Signature: ExprAtomicFlag * bool * SynExpr * SynExpr * range
-
-
-

F# syntax: f x

-

flag: indicates if the application is syntactically atomic, e.g. f.[1] is atomic, but 'f x' is not -isInfix is true for the first app of an infix operator, e.g. 1+2 -becomes App(App(+, 1), 2), where the inner node is marked isInfix

- - -
- - ArbitraryAfterError(debugStr,range) - -
- Signature: string * range
-
-
-

Inserted for error recovery

- - -
- - ArrayOrList(isList,exprs,range) - -
- Signature: bool * SynExpr list * range
-
-
-

F# syntax: [ e1; ...; en ], [| e1; ...; en |]

- - -
- - ArrayOrListOfSeqExpr(isArray,expr,range) - -
- Signature: bool * SynExpr * range
-
-
-

F# syntax: [ expr ], [| expr |]

- - -
- - Assert(expr,range) - -
- Signature: SynExpr * range
-
-
-

F# syntax: assert expr

- - -
- - CompExpr(...) - -
- Signature: bool * bool ref * SynExpr * range
-
-
-

F# syntax: { expr }

- - -
- - Const(constant,range) - -
- Signature: SynConst * range
-
-
-

F# syntax: 1, 1.3, () etc.

- - -
- - DiscardAfterMissingQualificationAfterDot(...) - -
- Signature: SynExpr * range
-
-
-

Inserted for error recovery when there is "expr." and missing tokens or error recovery after the dot

- - -
- - Do(expr,range) - -
- Signature: SynExpr * range
-
-
-

F# syntax: do expr

- - -
- - DoBang(expr,range) - -
- Signature: SynExpr * range
-
-
-

F# syntax: do! expr -Computation expressions only

- - -
- - DotGet(expr,rangeOfDot,longDotId,range) - -
- Signature: SynExpr * range * LongIdentWithDots * range
-
-
-

F# syntax: expr.ident.ident

- - -
- - DotIndexedGet(...) - -
- Signature: SynExpr * SynIndexerArg list * range * range
-
-
-

F# syntax: expr.[expr, ..., expr]

- - -
- - DotIndexedSet(...) - -
- Signature: SynExpr * SynIndexerArg list * SynExpr * range * range * range
-
-
-

F# syntax: expr.[expr, ..., expr] <- expr

- - -
- - DotNamedIndexedPropertySet(...) - -
- Signature: SynExpr * LongIdentWithDots * SynExpr * SynExpr * range
-
-
-

F# syntax: expr.Items (e1) <- e2, rarely used named-property-setter notation, e.g. (stringExpr).Chars(3) <- 'a'

- - -
- - DotSet(...) - -
- Signature: SynExpr * LongIdentWithDots * SynExpr * range
-
-
-

F# syntax: expr.ident...ident <- expr

- - -
- - Downcast(expr,targetType,range) - -
- Signature: SynExpr * SynType * range
-
-
-

F# syntax: expr :?> type

- - -
- - Fixed(expr,range) - -
- Signature: SynExpr * range
-
-
-

'use x = fixed expr'

- - -
- - For(...) - -
- Signature: DebugPointAtFor * Ident * SynExpr * bool * SynExpr * SynExpr * range
-
-
-

F# syntax: 'for i = ... to ... do ...'

- - -
- - ForEach(...) - -
- Signature: DebugPointAtFor * SeqExprOnly * bool * SynPat * SynExpr * SynExpr * range
-
-
-

F# syntax: 'for ... in ... do ...'

- - -
- - FromParseError(expr,range) - -
- Signature: SynExpr * range
-
-
-

Inserted for error recovery

- - -
- - Ident(ident) - -
- Signature: Ident
-
-
-

F# syntax: ident -Optimized representation for SynExpr.LongIdent (false, [id], id.idRange)

- - -
- - IfThenElse(...) - -
- Signature: SynExpr * SynExpr * SynExpr option * DebugPointForBinding * bool * range * range
-
-
-

F# syntax: if expr then expr -F# syntax: if expr then expr else expr

- - -
- - ImplicitZero(range) - -
- Signature: range
-
-
-

Used in parser error recovery and internally during type checking for translating computation expressions.

- - -
- - InferredDowncast(expr,range) - -
- Signature: SynExpr * range
-
-
-

F# syntax: downcast expr

- - -
- - InferredUpcast(expr,range) - -
- Signature: SynExpr * range
-
-
-

F# syntax: upcast expr

- - -
- - JoinIn(lhsExpr,lhsRange,rhsExpr,range) - -
- Signature: SynExpr * range * SynExpr * range
-
-
-

F# syntax: ... in ... -Computation expressions only, based on JOIN_IN token from lex filter

- - -
- - Lambda(...) - -
- Signature: bool * bool * SynSimplePats * SynExpr * range
-
-
-

First bool indicates if lambda originates from a method. Patterns here are always "simple" -Second bool indicates if this is a "later" part of an iterated sequence of lambdas

-

F# syntax: fun pat -> expr

- - -
- - Lazy(expr,range) - -
- Signature: SynExpr * range
-
-
-

F# syntax: lazy expr

- - -
- - LetOrUse(...) - -
- Signature: bool * bool * SynBinding list * SynExpr * range
-
-
-

F# syntax: let pat = expr in expr -F# syntax: let f pat1 .. patN = expr in expr -F# syntax: let rec f pat1 .. patN = expr in expr -F# syntax: use pat = expr in expr

- - -
- - LetOrUseBang(...) - -
- Signature: DebugPointForBinding * bool * bool * SynPat * SynExpr * (DebugPointForBinding * bool * bool * SynPat * SynExpr * range) list * SynExpr * range
-
-
-

F# syntax: let! pat = expr in expr -F# syntax: use! pat = expr in expr -F# syntax: let! pat = expr and! ... and! ... and! pat = expr in expr -Computation expressions only

- - -
- - LibraryOnlyILAssembly(...) - -
- Signature: ILInstr array * SynType list * SynExpr list * SynType list * range
-
-
-

Only used in FSharp.Core

- - -
- - LibraryOnlyStaticOptimization(...) - -
- Signature: SynStaticOptimizationConstraint list * SynExpr * SynExpr * range
-
-
-

Only used in FSharp.Core

- - -
- - LibraryOnlyUnionCaseFieldGet(...) - -
- Signature: SynExpr * LongIdent * int * range
-
-
-

Only used in FSharp.Core

- - -
- - LibraryOnlyUnionCaseFieldSet(...) - -
- Signature: SynExpr * LongIdent * int * SynExpr * range
-
-
-

Only used in FSharp.Core

- - -
- - LongIdent(...) - -
- Signature: bool * LongIdentWithDots * SynSimplePatAlternativeIdInfo ref option * range
-
-
-

F# syntax: ident.ident...ident

-

isOptional: true if preceded by a '?' for an optional named parameter -altNameRefCell: Normally 'None' except for some compiler-generated -variables in desugaring pattern matching. See SynSimplePat.Id

- - -
- - LongIdentSet(longDotId,expr,range) - -
- Signature: LongIdentWithDots * SynExpr * range
-
-
-

F# syntax: ident.ident...ident <- expr

- - -
- - Match(matchSeqPoint,expr,clauses,range) - -
- Signature: DebugPointForBinding * SynExpr * SynMatchClause list * range
-
-
-

F# syntax: match expr with pat1 -> expr | ... | patN -> exprN

- - -
- - MatchBang(...) - -
- Signature: DebugPointForBinding * SynExpr * SynMatchClause list * range
-
-
-

F# syntax: match! expr with pat1 -> expr | ... | patN -> exprN

- - -
- - MatchLambda(...) - -
- Signature: bool * range * SynMatchClause list * DebugPointForBinding * range
-
-
-

F# syntax: function pat1 -> expr | ... | patN -> exprN

- - -
- - NamedIndexedPropertySet(...) - -
- Signature: LongIdentWithDots * SynExpr * SynExpr * range
-
-
-

F# syntax: Type.Items(e1) <- e2, rarely used named-property-setter notation, e.g. Foo.Bar.Chars(3) <- 'a'

- - -
- - New(isProtected,targetType,expr,range) - -
- Signature: bool * SynType * SynExpr * range
-
-
-

F# syntax: new C(...) -The flag is true if known to be 'family' ('protected') scope

- - -
- - Null(range) - -
- Signature: range
-
-
-

F# syntax: null

- - -
- - ObjExpr(...) - -
- Signature: SynType * (SynExpr * Ident option) option * SynBinding list * SynInterfaceImpl list * range * range
-
-
-

F# syntax: { new ... with ... }

- - -
- - Paren(...) - -
- Signature: SynExpr * range * range option * range
-
-
-

F# syntax: (expr)

-

Parenthesized expressions. Kept in AST to distinguish A.M((x, y)) -from A.M(x, y), among other things.

- - -
- - Quote(...) - -
- Signature: SynExpr * bool * SynExpr * bool * range
-
-
-

F# syntax: <@ expr @>, <@@ expr @@>

-

Quote(operator, isRaw, quotedSynExpr, isFromQueryExpression, m)

- - -
- - Record(...) - -
- Signature: (SynType * SynExpr * range * BlockSeparator option * range) option * (SynExpr * BlockSeparator) option * (RecordFieldName * SynExpr option * BlockSeparator option) list * range
-
-
-

F# syntax: { f1=e1; ...; fn=en } -inherit includes location of separator (for tooling) -copyOpt contains range of the following WITH part (for tooling) -every field includes range of separator after the field (for tooling)

- - -
- - Sequential(...) - -
- Signature: DebugPointAtSequential * bool * SynExpr * SynExpr * range
-
-
-

F# syntax: expr; expr

-

isTrueSeq: false indicates "let v = a in b; v"

- - -
- - SequentialOrImplicitYield(...) - -
- Signature: DebugPointAtSequential * SynExpr * SynExpr * SynExpr * range
-
-
-

Used internally during type checking for translating computation expressions.

- - -
- - Set(targetExpr,rhsExpr,range) - -
- Signature: SynExpr * SynExpr * range
-
-
-

F# syntax: expr <- expr

- - -
- - TraitCall(...) - -
- Signature: SynTypar list * SynMemberSig * SynExpr * range
-
-
-

F# syntax: ((typar1 or ... or typarN): (member-dig) expr)

- - -
- - TryFinally(...) - -
- Signature: SynExpr * SynExpr * range * DebugPointAtTry * DebugPointAtFinally
-
-
-

F# syntax: try expr finally expr

- - -
- - TryWith(...) - -
- Signature: SynExpr * range * SynMatchClause list * range * range * DebugPointAtTry * DebugPointAtWith
-
-
-

F# syntax: try expr with pat -> expr

- - -
- - Tuple(isStruct,exprs,commaRanges,range) - -
- Signature: bool * SynExpr list * range list * range
-
-
-

F# syntax: e1, ..., eN

- - -
- - TypeApp(...) - -
- Signature: SynExpr * range * SynType list * range list * range option * range * range
-
-
-

F# syntax: expr

- - -
- - Typed(expr,targetType,range) - -
- Signature: SynExpr * SynType * range
-
-
-

F# syntax: expr: type

- - -
- - TypeTest(expr,targetType,range) - -
- Signature: SynExpr * SynType * range
-
-
-

F# syntax: expr :? type

- - -
- - Upcast(expr,targetType,range) - -
- Signature: SynExpr * SynType * range
-
-
-

F# syntax: expr :> type

- - -
- - While(...) - -
- Signature: DebugPointAtWhile * SynExpr * SynExpr * range
-
-
-

F# syntax: 'while ... do ...'

- - -
- - YieldOrReturn(flags,expr,range) - -
- Signature: bool * bool * SynExpr * range
-
-
-

F# syntax: yield expr -F# syntax: return expr -Computation expressions only

- - -
- - YieldOrReturnFrom(flags,expr,range) - -
- Signature: bool * bool * SynExpr * range
-
-
-

F# syntax: yield! expr -F# syntax: return! expr -Computation expressions only

- - -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.IsArbExprAndThusAlreadyReportedError - -
- Signature: bool
-
-
-

Indicates if this expression arises from error recovery

- - -

CompiledName: get_IsArbExprAndThusAlreadyReportedError

-
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- - x.RangeOfFirstPortion - -
- Signature: range
-
-
-

Attempt to get the range of the first token or initial portion only - this -is ad-hoc, just a cheap way to improve a certain 'query custom operation' error range

- - -

CompiledName: get_RangeOfFirstPortion

-
- - x.RangeSansAnyExtraDot - -
- Signature: range
-
-
-

Get the Range ignoring any (parse error) extra trailing dots

- - -

CompiledName: get_RangeSansAnyExtraDot

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synfield.html b/docs/reference/fsharp-compiler-syntaxtree-synfield.html deleted file mode 100644 index 9bbe92c806..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synfield.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - SynField - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynField

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the syntax tree for a field declaration in a record or class

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - Field(...) - -
- Signature: SynAttributes * bool * Ident option * SynType * bool * PreXmlDoc * SynAccess option * range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synindexerarg.html b/docs/reference/fsharp-compiler-syntaxtree-synindexerarg.html deleted file mode 100644 index 76b9d2ca1e..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synindexerarg.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - SynIndexerArg - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynIndexerArg

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents a syntax tree for an F# indexer expression argument

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - One(expr,fromEnd,range) - -
- Signature: SynExpr * bool * range
-
-
-

A one-element item indexer argument

- - -
- - Two(...) - -
- Signature: SynExpr * bool * SynExpr * bool * range * range
-
-
-

A two-element range indexer argument

- - -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Exprs - -
- Signature: SynExpr list
-
-
-

Get the one or two expressions as a list

- - -

CompiledName: get_Exprs

-
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-syninterfaceimpl.html b/docs/reference/fsharp-compiler-syntaxtree-syninterfaceimpl.html deleted file mode 100644 index 8a6bcda7c3..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-syninterfaceimpl.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - SynInterfaceImpl - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynInterfaceImpl

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a set of bindings that implement an interface

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - InterfaceImpl(...) - -
- Signature: SynType * SynBinding list * range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synmatchclause.html b/docs/reference/fsharp-compiler-syntaxtree-synmatchclause.html deleted file mode 100644 index b32c5d1fac..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synmatchclause.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - SynMatchClause - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynMatchClause

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a clause in a 'match' expression

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - Clause(...) - -
- Signature: SynPat * SynExpr option * SynExpr * range * DebugPointForTarget
-
-
- -
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- - x.RangeOfGuardAndRhs - -
- Signature: range
-
-
-

Gets the syntax range of part of this constuct

- - -

CompiledName: get_RangeOfGuardAndRhs

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synmeasure.html b/docs/reference/fsharp-compiler-syntaxtree-synmeasure.html deleted file mode 100644 index a2564fef13..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synmeasure.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - - SynMeasure - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynMeasure

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents an unchecked syntax tree of F# unit of measure annotations.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Anon(range) - -
- Signature: range
-
-
-

An anonymous (inferred) unit of measure

- - -
- - Divide(SynMeasure,SynMeasure,range) - -
- Signature: SynMeasure * SynMeasure * range
-
-
-

A division of two units of measure, e.g. 'kg / m'

- - -
- - Named(longId,range) - -
- Signature: LongIdent * range
-
-
-

A named unit of measure

- - -
- - One - -
- Signature:
-
-
-

The '1' unit of measure

- - -
- - Power(SynMeasure,SynRationalConst,range) - -
- Signature: SynMeasure * SynRationalConst * range
-
-
-

A power of a unit of measure, e.g. 'kg ^ 2'

- - -
- - Product(SynMeasure,SynMeasure,range) - -
- Signature: SynMeasure * SynMeasure * range
-
-
-

A product of two units of measure, e.g. 'kg * m'

- - -
- - Seq(SynMeasure list,range) - -
- Signature: SynMeasure list * range
-
-
-

A sequence of several units of measure, e.g. 'kg m m'

- - -
- - Var(SynTypar,range) - -
- Signature: SynTypar * range
-
-
-

A variable unit of measure

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synmemberdefn.html b/docs/reference/fsharp-compiler-syntaxtree-synmemberdefn.html deleted file mode 100644 index d7e040aa76..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synmemberdefn.html +++ /dev/null @@ -1,300 +0,0 @@ - - - - - SynMemberDefn - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynMemberDefn

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents a definition element within a type definition, e.g. 'member ... '

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - AbstractSlot(slotSig,flags,range) - -
- Signature: SynValSig * MemberFlags * range
-
-
-

An abstract slot definition within a class or interface

- - -
- - AutoProperty(...) - -
- Signature: SynAttributes * bool * Ident * SynType option * MemberKind * MemberKind -> MemberFlags * PreXmlDoc * SynAccess option * SynExpr * range option * range
-
-
-

An auto-property definition, F# syntax: 'member val X = expr'

- - -
- - ImplicitCtor(...) - -
- Signature: SynAccess option * SynAttributes * SynSimplePats * Ident option * range
-
-
-

An implicit constructor definition

- - -
- - ImplicitInherit(...) - -
- Signature: SynType * SynExpr * Ident option * range
-
-
-

An implicit inherit definition, 'inherit (args...) as base'

- - -
- - Inherit(baseType,asIdent,range) - -
- Signature: SynType * Ident option * range
-
-
-

An 'inherit' definition within a class

- - -
- - Interface(interfaceType,members,range) - -
- Signature: SynType * SynMemberDefns option * range
-
-
-

An interface implementation definition within a class

- - -
- - LetBindings(...) - -
- Signature: SynBinding list * bool * bool * range
-
-
-

A 'let' definition within a class

- - -
- - Member(memberDefn,range) - -
- Signature: SynBinding * range
-
-
-

A 'member' definition within a type

- - -
- - NestedType(typeDefn,accessibility,range) - -
- Signature: SynTypeDefn * SynAccess option * range
-
-
-

A nested type definition, a feature that is not implemented

- - -
- - Open(longId,range) - -
- Signature: LongIdent * range
-
-
-

An 'open' definition within a type

- - -
- - ValField(fieldInfo,range) - -
- Signature: SynField * range
-
-
-

A 'val' definition within a class

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synmemberdefns.html b/docs/reference/fsharp-compiler-syntaxtree-synmemberdefns.html deleted file mode 100644 index c6bda90476..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synmemberdefns.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - SynMemberDefns - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynMemberDefns

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Head - -
- Signature: SynMemberDefn
-
-
- -

CompiledName: get_Head

-
- - x.IsEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_IsEmpty

-
- - [index] - -
- Signature: index:int -> SynMemberDefn
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
-
-
- -

CompiledName: get_Length

-
- - x.Tail - -
- Signature: SynMemberDefn list
-
-
- -

CompiledName: get_Tail

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - List.Empty - -
- Signature: SynMemberDefn list
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synmembersig.html b/docs/reference/fsharp-compiler-syntaxtree-synmembersig.html deleted file mode 100644 index 23e12bb9f4..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synmembersig.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - SynMemberSig - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynMemberSig

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents the syntax tree for a member signature (used in signature files, abstract member declarations -and member constraints)

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Inherit(inheritedType,range) - -
- Signature: SynType * range
-
-
-

An 'inherit' definition in a type in a signature file

- - -
- - Interface(interfaceType,range) - -
- Signature: SynType * range
-
-
-

An interface definition in a type in a signature file

- - -
- - Member(memberSig,flags,range) - -
- Signature: SynValSig * MemberFlags * range
-
-
-

A member definition in a type in a signature file

- - -
- - NestedType(nestedType,range) - -
- Signature: SynTypeDefnSig * range
-
-
-

A nested type definition in a signature file (an unimplemented feature)

- - -
- - ValField(field,range) - -
- Signature: SynField * range
-
-
-

A 'val' definition in a type in a signature file

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synmoduledecl.html b/docs/reference/fsharp-compiler-syntaxtree-synmoduledecl.html deleted file mode 100644 index 6f74901f0a..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synmoduledecl.html +++ /dev/null @@ -1,285 +0,0 @@ - - - - - SynModuleDecl - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynModuleDecl

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents a definition within a module

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Attributes(attributes,range) - -
- Signature: SynAttributes * range
-
-
-

An attribute definition within a module, for assembly and .NET module attributes

- - -
- - DoExpr(spInfo,expr,range) - -
- Signature: DebugPointForBinding * SynExpr * range
-
-
-

A 'do expr' within a module

- - -
- - Exception(exnDefn,range) - -
- Signature: SynExceptionDefn * range
-
-
-

An 'exception' definition within a module

- - -
- - HashDirective(hashDirective,range) - -
- Signature: ParsedHashDirective * range
-
-
-

A hash directive within a module

- - -
- - Let(isRecursive,bindings,range) - -
- Signature: bool * SynBinding list * range
-
-
-

A 'let' definition within a module

- - -
- - ModuleAbbrev(ident,longId,range) - -
- Signature: Ident * LongIdent * range
-
-
-

A module abbreviation definition 'module X = A.B.C'

- - -
- - NamespaceFragment(fragment) - -
- Signature: SynModuleOrNamespace
-
-
-

A namespace fragment within a module

- - -
- - NestedModule(...) - -
- Signature: SynComponentInfo * bool * SynModuleDecl list * bool * range
-
-
-

A nested module definition 'module X = ...'

- - -
- - Open(longDotId,range) - -
- Signature: LongIdentWithDots * range
-
-
-

An 'open' definition within a module

- - -
- - Types(typeDefns,range) - -
- Signature: SynTypeDefn list * range
-
-
-

One or more 'type' definitions within a module

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synmoduleornamespace.html b/docs/reference/fsharp-compiler-syntaxtree-synmoduleornamespace.html deleted file mode 100644 index f6590a2b55..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synmoduleornamespace.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - SynModuleOrNamespace - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynModuleOrNamespace

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the definition of a module or namespace

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - SynModuleOrNamespace(...) - -
- Signature: LongIdent * bool * SynModuleOrNamespaceKind * SynModuleDecl list * PreXmlDoc * SynAttributes * SynAccess option * range
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synmoduleornamespacekind.html b/docs/reference/fsharp-compiler-syntaxtree-synmoduleornamespacekind.html deleted file mode 100644 index 6e5f309683..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synmoduleornamespacekind.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - - SynModuleOrNamespaceKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynModuleOrNamespaceKind

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<Struct>]
- -
-

-
-

Represents the kind of a module or namespace definition

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - AnonModule - -
- Signature:
-
-
-

A module is anonymously named, e.g. a script

- - -
- - DeclaredNamespace - -
- Signature:
-
-
-

A namespace is explicitly declared

- - -
- - GlobalNamespace - -
- Signature:
-
-
-

A namespace is declared 'global'

- - -
- - NamedModule - -
- Signature:
-
-
-

A module is explicitly named 'module N'

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.IsModule - -
- Signature: bool
-
-
-

Indicates if this is a module definition

- - -

CompiledName: get_IsModule

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synmoduleornamespacesig.html b/docs/reference/fsharp-compiler-syntaxtree-synmoduleornamespacesig.html deleted file mode 100644 index d8afda46a8..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synmoduleornamespacesig.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - SynModuleOrNamespaceSig - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynModuleOrNamespaceSig

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the definition of a module or namespace in a signature file

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - SynModuleOrNamespaceSig(...) - -
- Signature: LongIdent * bool * SynModuleOrNamespaceKind * SynModuleSigDecl list * PreXmlDoc * SynAttributes * SynAccess option * range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synmodulesigdecl.html b/docs/reference/fsharp-compiler-syntaxtree-synmodulesigdecl.html deleted file mode 100644 index 84a59b6ce1..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synmodulesigdecl.html +++ /dev/null @@ -1,256 +0,0 @@ - - - - - SynModuleSigDecl - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynModuleSigDecl

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents a definition within a module or namespace in a signature file

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Exception(exnSig,range) - -
- Signature: SynExceptionSig * range
-
-
-

An exception definition within a module or namespace in a signature file

- - -
- - HashDirective(hashDirective,range) - -
- Signature: ParsedHashDirective * range
-
-
-

A hash directive within a module or namespace in a signature file

- - -
- - ModuleAbbrev(ident,longId,range) - -
- Signature: Ident * LongIdent * range
-
-
-

A module abbreviation definition within a module or namespace in a signature file

- - -
- - NamespaceFragment(...) - -
- Signature: SynModuleOrNamespaceSig
-
-
-

A namespace fragment within a namespace in a signature file

- - -
- - NestedModule(...) - -
- Signature: SynComponentInfo * bool * SynModuleSigDecl list * range
-
-
-

A nested module definition within a module or namespace in a signature file

- - -
- - Open(longId,range) - -
- Signature: LongIdent * range
-
-
-

An 'open' definition within a module or namespace in a signature file

- - -
- - Types(types,range) - -
- Signature: SynTypeDefnSig list * range
-
-
-

A set of one or more type definitions within a module or namespace in a signature file

- - -
- - Val(valSig,range) - -
- Signature: SynValSig * range
-
-
-

A 'val' definition within a module or namespace in a signature file, corresponding -to a 'let' definition in the implementation

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synpat.html b/docs/reference/fsharp-compiler-syntaxtree-synpat.html deleted file mode 100644 index 2f88f91709..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synpat.html +++ /dev/null @@ -1,420 +0,0 @@ - - - - - SynPat - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynPat

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents a syntax tree for an F# pattern

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Ands(pats,range) - -
- Signature: SynPat list * range
-
-
-

A conjunctive pattern 'pat1 & pat2'

- - -
- - ArrayOrList(isArray,elementPats,range) - -
- Signature: bool * SynPat list * range
-
-
-

An array or a list as a pattern

- - -
- - Attrib(pat,attributes,range) - -
- Signature: SynPat * SynAttributes * range
-
-
-

An attributed pattern, used in argument or declaration position

- - -
- - Const(constant,range) - -
- Signature: SynConst * range
-
-
-

A constant in a pattern

- - -
- - DeprecatedCharRange(...) - -
- Signature: char * char * range
-
-
-

Deprecated character range: ranges

- - -
- - FromParseError(pat,range) - -
- Signature: SynPat * range
-
-
-

A pattern arising from a parse error

- - -
- - InstanceMember(...) - -
- Signature: Ident * Ident * Ident option * SynAccess option * range
-
-
-

Used internally in the type checker

- - -
- - IsInst(pat,range) - -
- Signature: SynType * range
-
-
-

A type test pattern ':? type '

- - -
- - LongIdent(...) - -
- Signature: LongIdentWithDots * Ident option * SynValTyparDecls option * SynArgPats * SynAccess option * range
-
-
-

A long identifier pattern possibly with argument patterns

- - -
- - Named(...) - -
- Signature: SynPat * Ident * bool * SynAccess option * range
-
-
-

A named pattern 'pat as ident'

- - -
- - Null(range) - -
- Signature: range
-
-
-

The 'null' pattern

- - -
- - OptionalVal(ident,range) - -
- Signature: Ident * range
-
-
-

'?id' -- for optional argument names

- - -
- - Or(lhsPat,rhsPat,range) - -
- Signature: SynPat * SynPat * range
-
-
-

A disjunctive pattern 'pat1 | pat2'

- - -
- - Paren(pat,range) - -
- Signature: SynPat * range
-
-
-

A parentehsized pattern

- - -
- - QuoteExpr(expr,range) - -
- Signature: SynExpr * range
-
-
-

<@ expr @>, used for active pattern arguments

- - -
- - Record(fieldPats,range) - -
- Signature: ((LongIdent * Ident) * SynPat) list * range
-
-
-

A record pattern

- - -
- - Tuple(isStruct,elementPats,range) - -
- Signature: bool * SynPat list * range
-
-
-

A tuple pattern

- - -
- - Typed(pat,targetType,range) - -
- Signature: SynPat * SynType * range
-
-
-

A typed pattern 'pat : type'

- - -
- - Wild(range) - -
- Signature: range
-
-
-

A wildcard '_' in a pattern

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synrationalconst.html b/docs/reference/fsharp-compiler-syntaxtree-synrationalconst.html deleted file mode 100644 index 4501ad013f..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synrationalconst.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - SynRationalConst - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynRationalConst

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents an unchecked syntax tree of F# unit of measure exponents.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Integer(int32) - -
- Signature: int32
-
-
- -
- - Negate(SynRationalConst) - -
- Signature: SynRationalConst
-
-
- -
- - Rational(int32,int32,range) - -
- Signature: int32 * int32 * range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synreturninfo.html b/docs/reference/fsharp-compiler-syntaxtree-synreturninfo.html deleted file mode 100644 index 7c285d08b7..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synreturninfo.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - SynReturnInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynReturnInfo

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

Represents the syntactic elements associated with the "return" of a function or method.

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - SynReturnInfo(returnType,range) - -
- Signature: SynType * SynArgInfo * range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synsimplepat.html b/docs/reference/fsharp-compiler-syntaxtree-synsimplepat.html deleted file mode 100644 index f5d8671f62..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synsimplepat.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - - SynSimplePat - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynSimplePat

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents a syntax tree for simple F# patterns

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Attrib(pat,attributes,range) - -
- Signature: SynSimplePat * SynAttributes * range
-
-
-

An attributed simple pattern

- - -
- - Id(...) - -
- Signature: Ident * SynSimplePatAlternativeIdInfo ref option * bool * bool * bool * range
-
-
-

Indicates a simple pattern variable.

-

altNameRefCell: -Normally 'None' except for some compiler-generated variables in desugaring pattern matching. -Pattern processing sets this reference for hidden variable introduced -by desugaring pattern matching in arguments. The info indicates an -alternative (compiler generated) identifier to be used because the -name of the identifier is already bound.

-

isCompilerGenerated: true if a compiler generated name -isThisVar: true if 'this' variable in member -isOptArg: true if a '?' is in front of the name

- - -
- - Typed(pat,targetType,range) - -
- Signature: SynSimplePat * SynType * range
-
-
-

A type annotated simple pattern

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synsimplepatalternativeidinfo.html b/docs/reference/fsharp-compiler-syntaxtree-synsimplepatalternativeidinfo.html deleted file mode 100644 index 73f1766b24..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synsimplepatalternativeidinfo.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - SynSimplePatAlternativeIdInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynSimplePatAlternativeIdInfo

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

Represents the alternative identifier for a simple pattern

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Decided(Ident) - -
- Signature: Ident
-
-
-

We have decided to use an alternative name in the pattern and related expression

- - -
- - Undecided(Ident) - -
- Signature: Ident
-
-
-

We have not decided to use an alternative name in the pattern and related expression

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synsimplepats.html b/docs/reference/fsharp-compiler-syntaxtree-synsimplepats.html deleted file mode 100644 index c957cfa397..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synsimplepats.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - SynSimplePats - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynSimplePats

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents a simple set of variable bindings a, (a, b) or (a: Type, b: Type) at a lambda, -function definition or other binding point, after the elimination of pattern matching -from the construct, e.g. after changing a "function pat1 -> rule1 | ..." to a -"fun v -> match v with ..."

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - SimplePats(pats,range) - -
- Signature: SynSimplePat list * range
-
-
- -
- - Typed(pats,targetType,range) - -
- Signature: SynSimplePats * SynType * range
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synstaticoptimizationconstraint.html b/docs/reference/fsharp-compiler-syntaxtree-synstaticoptimizationconstraint.html deleted file mode 100644 index 54539354e8..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synstaticoptimizationconstraint.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - SynStaticOptimizationConstraint - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynStaticOptimizationConstraint

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a syntax tree for a static optimization constraint in the F# core library

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - WhenTyparIsStruct(typar,range) - -
- Signature: SynTypar * range
-
-
-

A static optimization conditional that activates for a struct

- - -
- - WhenTyparTyconEqualsTycon(...) - -
- Signature: SynTypar * SynType * range
-
-
-

A static optimization conditional that activates for a particular type instantiation

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-syntypar.html b/docs/reference/fsharp-compiler-syntaxtree-syntypar.html deleted file mode 100644 index df4b2ada89..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-syntypar.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - SynTypar - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynTypar

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a syntactic type parameter

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - Typar(ident,staticReq,isCompGen) - -
- Signature: Ident * TyparStaticReq * bool
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-syntypardecl.html b/docs/reference/fsharp-compiler-syntaxtree-syntypardecl.html deleted file mode 100644 index 4bbd36fb9a..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-syntypardecl.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - SynTyparDecl - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynTyparDecl

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the explicit declaration of a type parameter

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - TyparDecl(attributes,SynTypar) - -
- Signature: SynAttributes * SynTypar
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-syntype.html b/docs/reference/fsharp-compiler-syntaxtree-syntype.html deleted file mode 100644 index e472eef308..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-syntype.html +++ /dev/null @@ -1,379 +0,0 @@ - - - - - SynType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynType

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents a syntax tree for F# types

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Anon(range) - -
- Signature: range
-
-
-

F# syntax: _

- - -
- - AnonRecd(isStruct,fields,range) - -
- Signature: bool * (Ident * SynType) list * range
-
-
-

F# syntax: {| id: type; ...; id: type |} -F# syntax: struct {| id: type; ...; id: type |}

- - -
- - App(...) - -
- Signature: SynType * range option * SynType list * range list * range option * bool * range
-
-
-

F# syntax: type or type type or (type, ..., type) type -isPostfix: indicates a postfix type application e.g. "int list" or "(int, string) dict"

- - -
- - Array(rank,elementType,range) - -
- Signature: int * SynType * range
-
-
-

F# syntax: type[]

- - -
- - Fun(argType,returnType,range) - -
- Signature: SynType * SynType * range
-
-
-

F# syntax: type -> type

- - -
- - HashConstraint(innerType,range) - -
- Signature: SynType * range
-
-
-

F# syntax: #type

- - -
- - LongIdent(longDotId) - -
- Signature: LongIdentWithDots
-
-
-

F# syntax: A.B.C

- - -
- - LongIdentApp(...) - -
- Signature: SynType * LongIdentWithDots * range option * SynType list * range list * range option * range
-
-
-

F# syntax: type.A.B.C

- - -
- - MeasureDivide(dividend,divisor,range) - -
- Signature: SynType * SynType * range
-
-
-

F# syntax: for units of measure e.g. m / s

- - -
- - MeasurePower(baseMeasure,exponent,range) - -
- Signature: SynType * SynRationalConst * range
-
-
-

F# syntax: for units of measure e.g. m^3, kg^1/2

- - -
- - StaticConstant(constant,range) - -
- Signature: SynConst * range
-
-
-

F# syntax: 1, "abc" etc, used in parameters to type providers -For the dimensionless units i.e. 1, and static parameters to provided types

- - -
- - StaticConstantExpr(expr,range) - -
- Signature: SynExpr * range
-
-
-

F# syntax: const expr, used in static parameters to type providers

- - -
- - StaticConstantNamed(ident,value,range) - -
- Signature: SynType * SynType * range
-
-
-

F# syntax: ident=1 etc., used in static parameters to type providers

- - -
- - Tuple(isStruct,elementTypes,range) - -
- Signature: bool * (bool * SynType) list * range
-
-
-

F# syntax: type ... type -F# syntax: struct (type ... type)

- - -
- - Var(typar,range) - -
- Signature: SynTypar * range
-
-
-

F# syntax: 'Var

- - -
- - WithGlobalConstraints(...) - -
- Signature: SynType * SynTypeConstraint list * range
-
-
-

F# syntax: typ with constraints

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-syntypeconstraint.html b/docs/reference/fsharp-compiler-syntaxtree-syntypeconstraint.html deleted file mode 100644 index 6233e18569..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-syntypeconstraint.html +++ /dev/null @@ -1,275 +0,0 @@ - - - - - SynTypeConstraint - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynTypeConstraint

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

The unchecked abstract syntax tree of F# type constraints

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - WhereTyparDefaultsToType(...) - -
- Signature: SynTypar * SynType * range
-
-
-

F# syntax is default ^T: type

- - -
- - WhereTyparIsComparable(typar,range) - -
- Signature: SynTypar * range
-
-
-

F# syntax is 'typar: comparison

- - -
- - WhereTyparIsDelegate(...) - -
- Signature: SynTypar * SynType list * range
-
-
-

F# syntax is 'typar: delegate<'Args, unit>

- - -
- - WhereTyparIsEnum(typar,typeArgs,range) - -
- Signature: SynTypar * SynType list * range
-
-
-

F# syntax is 'typar: enum<'UnderlyingType>

- - -
- - WhereTyparIsEquatable(typar,range) - -
- Signature: SynTypar * range
-
-
-

F# syntax is 'typar: equality

- - -
- - WhereTyparIsReferenceType(typar,range) - -
- Signature: SynTypar * range
-
-
-

F# syntax: is 'typar: not struct

- - -
- - WhereTyparIsUnmanaged(typar,range) - -
- Signature: SynTypar * range
-
-
-

F# syntax is 'typar: unmanaged

- - -
- - WhereTyparIsValueType(typar,range) - -
- Signature: SynTypar * range
-
-
-

F# syntax: is 'typar: struct

- - -
- - WhereTyparSubtypeOfType(...) - -
- Signature: SynTypar * SynType * range
-
-
-

F# syntax is 'typar :> type

- - -
- - WhereTyparSupportsMember(...) - -
- Signature: SynType list * SynMemberSig * range
-
-
-

F# syntax is ^T: (static member MemberName: ^T * int -> ^T)

- - -
- - WhereTyparSupportsNull(typar,range) - -
- Signature: SynTypar * range
-
-
-

F# syntax is 'typar: null

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-syntypedefn.html b/docs/reference/fsharp-compiler-syntaxtree-syntypedefn.html deleted file mode 100644 index a57cf7ae28..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-syntypedefn.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - SynTypeDefn - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynTypeDefn

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents a type or exception declaration 'type C = ... ' plus -any additional member definitions for the type

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - TypeDefn(...) - -
- Signature: SynComponentInfo * SynTypeDefnRepr * SynMemberDefns * range
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-syntypedefnkind.html b/docs/reference/fsharp-compiler-syntaxtree-syntypedefnkind.html deleted file mode 100644 index cf214df647..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-syntypedefnkind.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - SynTypeDefnKind - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynTypeDefnKind

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the kind of a type definition whether explicit or inferred

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - TyconAbbrev - -
- Signature:
-
-
- -
- - TyconAugmentation - -
- Signature:
-
-
- -
- - TyconClass - -
- Signature:
-
-
- -
- - TyconDelegate(SynType,SynValInfo) - -
- Signature: SynType * SynValInfo
-
-
- -
- - TyconHiddenRepr - -
- Signature:
-
-
- -
- - TyconILAssemblyCode - -
- Signature:
-
-
- -
- - TyconInterface - -
- Signature:
-
-
- -
- - TyconRecord - -
- Signature:
-
-
- -
- - TyconStruct - -
- Signature:
-
-
- -
- - TyconUnion - -
- Signature:
-
-
- -
- - TyconUnspecified - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-syntypedefnrepr.html b/docs/reference/fsharp-compiler-syntaxtree-syntypedefnrepr.html deleted file mode 100644 index 5281f61f8d..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-syntypedefnrepr.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - SynTypeDefnRepr - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynTypeDefnRepr

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents the right hand side of a type or exception declaration 'type C = ... ' plus -any additional member definitions for the type

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Exception(exnRepr) - -
- Signature: SynExceptionDefnRepr
-
-
-

An exception definition

- - -
- - ObjectModel(kind,members,range) - -
- Signature: SynTypeDefnKind * SynMemberDefns * range
-
-
-

An object model type definition (class or interface)

- - -
- - Simple(simpleRepr,range) - -
- Signature: SynTypeDefnSimpleRepr * range
-
-
-

A simple type definition (record, union, abbreviation)

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-syntypedefnsig.html b/docs/reference/fsharp-compiler-syntaxtree-syntypedefnsig.html deleted file mode 100644 index 18e22ac21c..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-syntypedefnsig.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - SynTypeDefnSig - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynTypeDefnSig

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the syntax tree for a type definition in a signature

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - TypeDefnSig(...) - -
- Signature: SynComponentInfo * SynTypeDefnSigRepr * SynMemberSig list * range
-
-
-

The information for a type definition in a signature

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-syntypedefnsigrepr.html b/docs/reference/fsharp-compiler-syntaxtree-syntypedefnsigrepr.html deleted file mode 100644 index 2d5d3e62f8..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-syntypedefnsigrepr.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - SynTypeDefnSigRepr - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynTypeDefnSigRepr

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents the syntax tree for the right-hand-side of a type definition in a signature. -Note: in practice, using a discriminated union to make a distinction between -"simple" types and "object oriented" types is not particularly useful.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Exception(SynExceptionDefnRepr) - -
- Signature: SynExceptionDefnRepr
-
-
- -
- - ObjectModel(kind,memberSigs,range) - -
- Signature: SynTypeDefnKind * SynMemberSig list * range
-
-
-

Indicates the right right-hand-side is a class, struct, interface or other object-model type

- - -
- - Simple(repr,range) - -
- Signature: SynTypeDefnSimpleRepr * range
-
-
-

Indicates the right right-hand-side is a record, union or other simple type.

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-syntypedefnsimplerepr.html b/docs/reference/fsharp-compiler-syntaxtree-syntypedefnsimplerepr.html deleted file mode 100644 index ad4298e094..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-syntypedefnsimplerepr.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - SynTypeDefnSimpleRepr - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynTypeDefnSimpleRepr

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
-[<RequireQualifiedAccess>]
- -
-

-
-

Represents the syntax tree for the core of a simple type definition, in either signature -or implementation.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Enum(cases,range) - -
- Signature: SynEnumCase list * range
-
-
-

An enum type definition, type X = A = 1 | B = 2

- - -
- - Exception(exnRepr) - -
- Signature: SynExceptionDefnRepr
-
-
-

An exception definition, "exception E = ..."

- - -
- - General(...) - -
- Signature: SynTypeDefnKind * (SynType * range * Ident option) list * (SynValSig * MemberFlags) list * SynField list * bool * bool * SynSimplePats option * range
-
-
-

An object oriented type definition. This is not a parse-tree form, but represents the core -type representation which the type checker splits out from the "ObjectModel" cases of type definitions.

- - -
- - LibraryOnlyILAssembly(ilType,range) - -
- Signature: ILType * range
-
-
-

A type defined by using an IL assembly representation. Only used in FSharp.Core.

-

F# syntax: "type X = (# "..."#)

- - -
- - None(range) - -
- Signature: range
-
-
-

An abstract definition, "type X"

- - -
- - Record(accessibility,recordFields,range) - -
- Signature: SynAccess option * SynField list * range
-
-
-

A record type definition, type X = { A: int; B: int }

- - -
- - TypeAbbrev(detail,rhsType,range) - -
- Signature: ParserDetail * SynType * range
-
-
-

A type abbreviation, "type X = A.B.C"

- - -
- - Union(accessibility,unionCases,range) - -
- Signature: SynAccess option * SynUnionCase list * range
-
-
-

A union type definition, type X = A | B

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synunioncase.html b/docs/reference/fsharp-compiler-syntaxtree-synunioncase.html deleted file mode 100644 index f929f78d97..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synunioncase.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - SynUnionCase - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynUnionCase

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the syntax tree for one case in a union definition.

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - UnionCase(...) - -
- Signature: SynAttributes * Ident * SynUnionCaseType * PreXmlDoc * SynAccess option * range
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Range - -
- Signature: range
-
-
-

Gets the syntax range of this constuct

- - -

CompiledName: get_Range

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synunioncasetype.html b/docs/reference/fsharp-compiler-syntaxtree-synunioncasetype.html deleted file mode 100644 index 9c77cd2d4a..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synunioncasetype.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - SynUnionCaseType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynUnionCaseType

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the syntax tree for the right-hand-side of union definition, excluding members, -in either a signature or implementation.

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - UnionCaseFields(cases) - -
- Signature: SynField list
-
-
-

Normal style declaration

- - -
- - UnionCaseFullType(SynType,SynValInfo) - -
- Signature: SynType * SynValInfo
-
-
-

Full type spec given by 'UnionCase: ty1 * tyN -> rty'. Only used in FSharp.Core, otherwise a warning.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synvaldata.html b/docs/reference/fsharp-compiler-syntaxtree-synvaldata.html deleted file mode 100644 index 7a95244f2d..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synvaldata.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - SynValData - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynValData

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents extra information about the declaration of a value

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - SynValData(...) - -
- Signature: MemberFlags option * SynValInfo * Ident option
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synvalinfo.html b/docs/reference/fsharp-compiler-syntaxtree-synvalinfo.html deleted file mode 100644 index 987bb7a0a6..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synvalinfo.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - SynValInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynValInfo

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

The argument names and other metadata for a member or function

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - SynValInfo(...) - -
- Signature: SynArgInfo list list * SynArgInfo
-
-
-

SynValInfo(curriedArgInfos, returnInfo)

- - -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.ArgInfos - -
- Signature: SynArgInfo list list
-
-
- -

CompiledName: get_ArgInfos

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synvalsig.html b/docs/reference/fsharp-compiler-syntaxtree-synvalsig.html deleted file mode 100644 index 562e0969c5..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synvalsig.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - SynValSig - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynValSig

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the syntax tree for a 'val' definition in an abstract slot or a signature file

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - ValSpfn(...) - -
- Signature: SynAttributes * Ident * SynValTyparDecls * SynType * SynValInfo * bool * bool * PreXmlDoc * SynAccess option * SynExpr option * range
-
-
- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.RangeOfId - -
- Signature: range
-
-
- -

CompiledName: get_RangeOfId

-
- - x.SynInfo - -
- Signature: SynValInfo
-
-
- -

CompiledName: get_SynInfo

-
- - x.SynType - -
- Signature: SynType
-
-
- -

CompiledName: get_SynType

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-synvaltypardecls.html b/docs/reference/fsharp-compiler-syntaxtree-synvaltypardecls.html deleted file mode 100644 index c853b5dd57..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-synvaltypardecls.html +++ /dev/null @@ -1,123 +0,0 @@ - - - - - SynValTyparDecls - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynValTyparDecls

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Represents the names and other metadata for the type parameters for a member or function

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - SynValTyparDecls(...) - -
- Signature: SynTyparDecl list * bool * SynTypeConstraint list
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree-typarstaticreq.html b/docs/reference/fsharp-compiler-syntaxtree-typarstaticreq.html deleted file mode 100644 index 59a2e9c5d0..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree-typarstaticreq.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - TyparStaticReq - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

TyparStaticReq

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTree
-

-
-

Represents whether a type parameter has a static requirement or not (^T or 'T)

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - HeadTypeStaticReq - -
- Signature:
-
-
-

The construct is a statically inferred type inference variable '^T'

- - -
- - NoStaticReq - -
- Signature:
-
-
-

The construct is a normal type inference variable

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtree.html b/docs/reference/fsharp-compiler-syntaxtree.html deleted file mode 100644 index 5c48ca87ce..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtree.html +++ /dev/null @@ -1,958 +0,0 @@ - - - - - SyntaxTree - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SyntaxTree

-

- Namespace: FSharp.Compiler
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- BlockSeparator - -

Represents the location of the separator block + optional position -of the semicolon (used for tooling support)

- - -
- DebugPointAtFinally - -

Represents whether a debug point should be present for the 'finally' in a 'try .. finally', -that is whether the construct corresponds to a debug point in the original source.

- - -
- DebugPointAtFor - -

Represents whether a debug point should be present for the 'for' in a 'for...' loop, -that is whether the construct corresponds to a debug point in the original source.

- - -
- DebugPointAtSequential - -

Represents whether a debug point should be present for either the -first or second part of a sequential execution, that is whether the -construct corresponds to a debug point in the original source.

- - -
- DebugPointAtTry - -

Represents whether a debug point should be present for a 'try', that is whether -the construct corresponds to a debug point in the original source.

- - -
- DebugPointAtWhile - -

Represents whether a debug point should be present for the 'while' in a 'while...' loop, -that is whether the construct corresponds to a debug point in the original source.

- - -
- DebugPointAtWith - -

Represents whether a debug point should be present for the 'with' in a 'try .. with', -that is whether the construct corresponds to a debug point in the original source.

- - -
- DebugPointForBinding - -

Represents whether a debug point should be present for a 'let' binding, -that is whether the construct corresponds to a debug point in the original source.

- - -
- DebugPointForTarget - -

Represents whether a debug point should be present for the target -of a decision tree, that is whether the construct corresponds to a debug -point in the original source.

- - -
- ExprAtomicFlag - -

Indicates if an expression is an atomic expression.

-

An atomic expression has no whitespace unlessenclosed in parentheses, e.g. -1, "3", ident, ident.[expr] and (expr). If an atomic expression has type T, -then the largest expression ending at the same range as the atomic expression -also has type T.

- - -
- Ident - -

Represents an identifier in F# code

- - -
- LongIdent - -

Represents a long identifier e.g. 'A.B.C'

- - -
- LongIdentWithDots - -

Represents a long identifier with possible '.' at end.

-

Typically dotms.Length = lid.Length-1, but they may be same if (incomplete) code ends in a dot, e.g. "Foo.Bar." -The dots mostly matter for parsing, and are typically ignored by the typechecker, but -if dotms.Length = lid.Length, then the parser must have reported an error, so the typechecker is allowed -more freedom about typechecking these expressions. -LongIdent can be empty list - it is used to denote that name of some AST element is absent (i.e. empty type name in inherit)

- - -
- MemberFlags - -

Represents the flags for a 'member' declaration

- - -
- MemberKind - -

Note the member kind is actually computed partially by a syntax tree transformation in tc.fs

- - -
- ParsedFsiInteraction - -

Represents a parsed syntax tree for an F# Interactive interaction

- - -
- ParsedHashDirective - -

Represents a parsed hash directive

- - -
- ParsedImplFile - -

Represents a parsed implementation file made up of fragments

- - -
- ParsedImplFileFragment - -

Represents the syntax tree for the contents of a parsed implementation file

- - -
- ParsedImplFileInput - -

Represents the full syntax tree, file name and other parsing information for an implementation file

- - -
- ParsedInput - -

Represents the syntax tree for a parsed implementation or signature file

- - -
- ParsedSigFile - -

Represents a parsed signature file made up of fragments

- - -
- ParsedSigFileFragment - -

Represents the syntax tree for the contents of a parsed signature file

- - -
- ParsedSigFileInput - -

Represents the full syntax tree, file name and other parsing information for a signature file

- - -
- ParserDetail - -

Indicates if the construct arises from error recovery

- - -
- QualifiedNameOfFile - -

Represents a qualifying name for anonymous module specifications and implementations,

- - -
- RecordFieldName - -

Represents a record field name plus a flag indicating if given record field name is syntactically -correct and can be used in name resolution.

- - -
- ScopedPragma - -

Represents a scoped pragma

- - -
- SeqExprOnly - -

Indicates if a for loop is 'for x in e1 -> e2', only valid in sequence expressions

- - -
- SynAccess - -

Represents an accessibility modifier in F# syntax

- - -
- SynArgInfo - -

Represents the argument names and other metadata for a parameter for a member or function

- - -
- SynArgPats - -

Represents a syntax tree for argumments patterns

- - -
- SynAttribute - -

Represents an attribute

- - -
- SynAttributeList - -

List of attributes enclosed in [< ... >].

- - -
- SynAttributes - - -
- SynBinding - -

Represents a binding for a 'let' or 'member' declaration

- - -
- SynBindingKind - -

The kind associated with a binding - "let", "do" or a standalone expression

- - -
- SynBindingReturnInfo - -

Represents the return information in a binding for a 'let' or 'member' declaration

- - -
- SynComponentInfo - -

Represents the syntax tree associated with the name of a type definition or module -in signature or implementation.

-

This includes the name, attributes, type parameters, constraints, documentation and accessibility -for a type definition or module. For modules, entries such as the type parameters are -always empty.

- - -
- SynConst - -

The unchecked abstract syntax tree of constants in F# types and expressions.

- - -
- SynEnumCase - -

Represents the syntax tree for one case in an enum definition.

- - -
- SynExceptionDefn - -

Represents the right hand side of an exception declaration 'exception E = ... ' plus -any member definitions for the exception

- - -
- SynExceptionDefnRepr - -

Represents the right hand side of an exception declaration 'exception E = ... '

- - -
- SynExceptionSig - -

Represents the right hand side of an exception definition in a signature file

- - -
- SynExpr - -

Represents a syntax tree for F# expressions

- - -
- SynField - -

Represents the syntax tree for a field declaration in a record or class

- - -
- SynIndexerArg - -

Represents a syntax tree for an F# indexer expression argument

- - -
- SynInterfaceImpl - -

Represents a set of bindings that implement an interface

- - -
- SynMatchClause - -

Represents a clause in a 'match' expression

- - -
- SynMeasure - -

Represents an unchecked syntax tree of F# unit of measure annotations.

- - -
- SynMemberDefn - -

Represents a definition element within a type definition, e.g. 'member ... '

- - -
- SynMemberDefns - - -
- SynMemberSig - -

Represents the syntax tree for a member signature (used in signature files, abstract member declarations -and member constraints)

- - -
- SynModuleDecl - -

Represents a definition within a module

- - -
- SynModuleOrNamespace - -

Represents the definition of a module or namespace

- - -
- SynModuleOrNamespaceKind - -

Represents the kind of a module or namespace definition

- - -
- SynModuleOrNamespaceSig - -

Represents the definition of a module or namespace in a signature file

- - -
- SynModuleSigDecl - -

Represents a definition within a module or namespace in a signature file

- - -
- SynPat - -

Represents a syntax tree for an F# pattern

- - -
- SynRationalConst - -

Represents an unchecked syntax tree of F# unit of measure exponents.

- - -
- SynReturnInfo - -

Represents the syntactic elements associated with the "return" of a function or method.

- - -
- SynSimplePat - -

Represents a syntax tree for simple F# patterns

- - -
- SynSimplePatAlternativeIdInfo - -

Represents the alternative identifier for a simple pattern

- - -
- SynSimplePats - -

Represents a simple set of variable bindings a, (a, b) or (a: Type, b: Type) at a lambda, -function definition or other binding point, after the elimination of pattern matching -from the construct, e.g. after changing a "function pat1 -> rule1 | ..." to a -"fun v -> match v with ..."

- - -
- SynStaticOptimizationConstraint - -

Represents a syntax tree for a static optimization constraint in the F# core library

- - -
- SynTypar - -

Represents a syntactic type parameter

- - -
- SynTyparDecl - -

Represents the explicit declaration of a type parameter

- - -
- SynType - -

Represents a syntax tree for F# types

- - -
- SynTypeConstraint - -

The unchecked abstract syntax tree of F# type constraints

- - -
- SynTypeDefn - -

Represents a type or exception declaration 'type C = ... ' plus -any additional member definitions for the type

- - -
- SynTypeDefnKind - -

Represents the kind of a type definition whether explicit or inferred

- - -
- SynTypeDefnRepr - -

Represents the right hand side of a type or exception declaration 'type C = ... ' plus -any additional member definitions for the type

- - -
- SynTypeDefnSig - -

Represents the syntax tree for a type definition in a signature

- - -
- SynTypeDefnSigRepr - -

Represents the syntax tree for the right-hand-side of a type definition in a signature. -Note: in practice, using a discriminated union to make a distinction between -"simple" types and "object oriented" types is not particularly useful.

- - -
- SynTypeDefnSimpleRepr - -

Represents the syntax tree for the core of a simple type definition, in either signature -or implementation.

- - -
- SynUnionCase - -

Represents the syntax tree for one case in a union definition.

- - -
- SynUnionCaseType - -

Represents the syntax tree for the right-hand-side of union definition, excluding members, -in either a signature or implementation.

- - -
- SynValData - -

Represents extra information about the declaration of a value

- - -
- SynValInfo - -

The argument names and other metadata for a member or function

- - -
- SynValSig - -

Represents the syntax tree for a 'val' definition in an abstract slot or a signature file

- - -
- SynValTyparDecls - -

Represents the names and other metadata for the type parameters for a member or function

- - -
- TyparStaticReq - -

Represents whether a type parameter has a static requirement or not (^T or 'T)

- - -
- -
- - -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtreeops-synargnamegenerator.html b/docs/reference/fsharp-compiler-syntaxtreeops-synargnamegenerator.html deleted file mode 100644 index 9cc16c4296..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtreeops-synargnamegenerator.html +++ /dev/null @@ -1,150 +0,0 @@ - - - - - SynArgNameGenerator - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynArgNameGenerator

-

- - Namespace: FSharp.Compiler
- Parent Module: SyntaxTreeOps
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> SynArgNameGenerator
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.New() - -
- Signature: unit -> string
-
-
- -
- - x.Reset() - -
- Signature: unit -> unit
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtreeops-syninfo.html b/docs/reference/fsharp-compiler-syntaxtreeops-syninfo.html deleted file mode 100644 index 2f107c6e9d..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtreeops-syninfo.html +++ /dev/null @@ -1,443 +0,0 @@ - - - - - SynInfo - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SynInfo

-

- Namespace: FSharp.Compiler
- Parent Module: SyntaxTreeOps -

-
-

Operations related to the syntactic analysis of arguments of value, function and member definitions and signatures.

- -
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - AdjustArgsForUnitElimination(...) - -
- Signature: infosForArgs:SynArgInfo list list -> SynArgInfo list list
-
-
-

Make sure only a solitary unit argument has unit elimination

- - -
- - AdjustMemberArgs memFlags infosForArgs - -
- Signature: memFlags:MemberKind -> infosForArgs:'a list list -> 'a list list
- Type parameters: 'a
-
-

Transform a property declared using '[static] member P = expr' to a method taking a "unit" argument. -This is similar to IncorporateEmptyTupledArgForPropertyGetter, but applies to member definitions -rather than member signatures.

- - -
- - AritiesOfArgs(arg1) - -
- Signature: SynValInfo -> int list
-
-
-

Get the argument counts for each curried argument group. Used in some adhoc places in tc.fs.

- - -
- - AttribsOfArgData(arg1) - -
- Signature: SynArgInfo -> SynAttribute list
-
-
-

Get the argument attributes from the syntactic information for an argument.

- - -
- - emptySynValData - -
- Signature: SynValData
-
-
- -
- - HasNoArgs(arg1) - -
- Signature: SynValInfo -> bool
-
-
-

Determine if a syntactic information represents a member without arguments (which is implicitly a property getter)

- - -
- - HasOptionalArgs(arg1) - -
- Signature: SynValInfo -> bool
-
-
-

Check if there are any optional arguments in the syntactic argument information. Used when adjusting the -types of optional arguments for function and member signatures.

- - -
- - IncorporateEmptyTupledArgForPropertyGetter(...) - -
- Signature: SynValInfo -> SynValInfo
-
-
-

Add a parameter entry to the syntactic value information to represent the '()' argument to a property getter. This is -used for the implicit '()' argument in property getter signature specifications.

- - -
- - IncorporateSelfArg(arg1) - -
- Signature: SynValInfo -> SynValInfo
-
-
-

Add a parameter entry to the syntactic value information to represent the 'this' argument. This is -used for the implicit 'this' argument in member signature specifications.

- - -
- - IncorporateSetterArg(arg1) - -
- Signature: SynValInfo -> SynValInfo
-
-
-

Add a parameter entry to the syntactic value information to represent the value argument for a property setter. This is -used for the implicit value argument in property setter signature specifications.

- - -
- - InferLambdaArgs(origRhsExpr) - -
- Signature: origRhsExpr:SynExpr -> SynArgInfo list list
-
-
-

For 'let' definitions, we infer syntactic argument information from the r.h.s. of a definition, if it -is an immediate 'fun ... -> ...' or 'function ...' expression. This is noted in the F# language specification. -This does not apply to member definitions.

- - -
- - InferSynArgInfoFromPat(p) - -
- Signature: p:SynPat -> SynArgInfo list
-
-
-

Infer the syntactic argument info for one or more arguments a pattern.

- - -
- - InferSynArgInfoFromSimplePat attribs p - -
- Signature: attribs:SynAttributes -> p:SynSimplePat -> SynArgInfo
-
-
-

Infer the syntactic argument info for a single argument from a simple pattern.

- - -
- - InferSynArgInfoFromSimplePats(x) - -
- Signature: x:SynSimplePats -> SynArgInfo list
-
-
-

Infer the syntactic argument info for one or more arguments one or more simple patterns.

- - -
- - InferSynReturnData(retInfo) - -
- Signature: retInfo:SynReturnInfo option -> SynArgInfo
-
-
- -
- - InferSynValData(...) - -
- Signature: (memberFlagsOpt:MemberFlags option * pat:SynPat option * retInfo:SynReturnInfo option * origRhsExpr:SynExpr) -> SynValData
-
-
-

Infer the syntactic information for a 'let' or 'member' definition, based on the argument pattern, -any declared return information (e.g. .NET attributes on the return element), and the r.h.s. expression -in the case of 'let' definitions.

- - -
- - IsOptionalArg(arg1) - -
- Signature: SynArgInfo -> bool
-
-
-

Check if one particular argument is an optional argument. Used when adjusting the -types of optional arguments for function and member signatures.

- - -
- - selfMetadata - -
- Signature: SynArgInfo list
-
-
-

The 'argument' information for the 'this'/'self' parameter in the cases where it is not given explicitly

- - -
- - unitArgData - -
- Signature: SynArgInfo list
-
-
-

The argument information for a '()' argument

- - -
- - unnamedRetVal - -
- Signature: SynArgInfo
-
-
-

The 'argument' information for a return value where no attributes are given for the return value (the normal case)

- - -
- - unnamedTopArg - -
- Signature: SynArgInfo list
-
-
-

The argument information for a curried argument without a name

- - -
- - unnamedTopArg1 - -
- Signature: SynArgInfo
-
-
-

The argument information for an argument without a name

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-syntaxtreeops.html b/docs/reference/fsharp-compiler-syntaxtreeops.html deleted file mode 100644 index 3d69320b22..0000000000 --- a/docs/reference/fsharp-compiler-syntaxtreeops.html +++ /dev/null @@ -1,1174 +0,0 @@ - - - - - SyntaxTreeOps - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SyntaxTreeOps

-

- Namespace: FSharp.Compiler
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - -
TypeDescription
- SynArgNameGenerator - - -
- - - - - - - - - - -
ModuleDescription
- SynInfo - -

Operations related to the syntactic analysis of arguments of value, function and member definitions and signatures.

- - -
- -
- -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - AbstractMemberFlags(k) - -
- Signature: k:MemberKind -> MemberFlags
-
-
- -
- - appFunOpt funOpt x - -
- Signature: funOpt:('?680560 -> '?680560) option -> x:'?680560 -> '?680560
- Type parameters: '?680560
-
- -
- - arbExpr(debugStr, range) - -
- Signature: (debugStr:string * range:range) -> SynExpr
-
-
- -
- - arrPathOfLid(lid) - -
- Signature: lid:Ident list -> string []
-
-
- -
- - ClassCtorMemberFlags - -
- Signature: MemberFlags
-
-
- -
- - composeFunOpt funOpt1 funOpt2 - -
- Signature: funOpt1:('?680562 -> '?680562) option -> funOpt2:('?680562 -> '?680562) option -> ('?680562 -> '?680562) option
- Type parameters: '?680562
-
- -
- - ConcatAttributesLists(attrsLists) - -
- Signature: attrsLists:SynAttributeList list -> SynAttribute list
-
-
- -
- - CtorMemberFlags - -
- Signature: MemberFlags
-
-
- -
- - ident(s, r) - -
- Signature: (s:string * r:range) -> Ident
-
-
- -
- - inferredTyparDecls - -
- Signature: SynValTyparDecls
-
-
- -
- - IsControlFlowExpression(e) - -
- Signature: e:SynExpr -> bool
-
-
-

This affects placement of sequence points

- - -
- - mkAnonField(ty) - -
- Signature: ty:SynType -> SynField
-
-
- -
- - mkAttributeList attrs range - -
- Signature: attrs:SynAttribute list -> range:range -> SynAttributeList list
-
-
- -
- - mkNamedField(ident, ty) - -
- Signature: (ident:Ident * ty:SynType) -> SynField
-
-
- -
- - mkSynApp1 f x1 m - -
- Signature: f:SynExpr -> x1:SynExpr -> m:range -> SynExpr
-
-
- -
- - mkSynApp2 f x1 x2 m - -
- Signature: f:SynExpr -> x1:SynExpr -> x2:SynExpr -> m:range -> SynExpr
-
-
- -
- - mkSynApp3 f x1 x2 x3 m - -
- Signature: f:SynExpr -> x1:SynExpr -> x2:SynExpr -> x3:SynExpr -> m:range -> SynExpr
-
-
- -
- - mkSynApp4 f x1 x2 x3 x4 m - -
- Signature: f:SynExpr -> x1:SynExpr -> x2:SynExpr -> x3:SynExpr -> x4:SynExpr -> m:range -> SynExpr
-
-
- -
- - mkSynApp5 f x1 x2 x3 x4 x5 m - -
- Signature: f:SynExpr -> x1:SynExpr -> x2:SynExpr -> x3:SynExpr -> x4:SynExpr -> x5:SynExpr -> m:range -> SynExpr
-
-
- -
- - mkSynAssign l r - -
- Signature: l:SynExpr -> r:SynExpr -> SynExpr
-
-
- -
- - mkSynBifix m oper x1 x2 - -
- Signature: m:range -> oper:string -> x1:SynExpr -> x2:SynExpr -> SynExpr
-
-
- -
- - mkSynBinding(...) - -
- Signature: (xmlDoc:PreXmlDoc * headPat:SynPat) -> (vis:SynAccess option * isInline:bool * isMutable:bool * mBind:range * spBind:DebugPointForBinding * retInfo:SynReturnInfo option * origRhsExpr:SynExpr * mRhs:range * staticOptimizations:(SynStaticOptimizationConstraint list * SynExpr) list * attrs:SynAttributes * memberFlagsOpt:MemberFlags option) -> SynBinding
-
-
- -
- - mkSynBindingRhs(...) - -
- Signature: staticOptimizations:(SynStaticOptimizationConstraint list * SynExpr) list -> rhsExpr:SynExpr -> mRhs:range -> retInfo:SynReturnInfo option -> SynExpr * SynBindingReturnInfo option
-
-
- -
- - mkSynCaseName m n - -
- Signature: m:range -> n:string -> Ident list
-
-
- -
- - mkSynCompGenSimplePatVar(id) - -
- Signature: id:Ident -> SynSimplePat
-
-
- -
- - mkSynDelay m e - -
- Signature: m:range -> e:SynExpr -> SynExpr
-
-
- -
- - mkSynDot dotm m l r - -
- Signature: dotm:range -> m:range -> l:SynExpr -> r:Ident -> SynExpr
-
-
- -
- - mkSynDotBrackGet m mDot a b fromEnd - -
- Signature: m:range -> mDot:range -> a:SynExpr -> b:SynExpr -> fromEnd:bool -> SynExpr
-
-
- -
- - mkSynDotBrackSeqSliceGet(...) - -
- Signature: m:range -> mDot:range -> arr:SynExpr -> argsList:SynIndexerArg list -> SynExpr
-
-
- -
- - mkSynDotBrackSliceGet(...) - -
- Signature: m:range -> mDot:range -> arr:SynExpr -> sliceArg:SynIndexerArg -> SynExpr
-
-
- -
- - mkSynDotMissing dotm m l - -
- Signature: dotm:range -> m:range -> l:SynExpr -> SynExpr
-
-
- -
- - mkSynDotParenGet lhsm dotm a b - -
- Signature: lhsm:range -> dotm:range -> a:SynExpr -> b:SynExpr -> SynExpr
-
-
- -
- - mkSynDotParenSet m a b c - -
- Signature: m:range -> a:SynExpr -> b:SynExpr -> c:SynExpr -> SynExpr
-
-
- -
- - mkSynFunMatchLambdas(...) - -
- Signature: synArgNameGenerator:SynArgNameGenerator -> isMember:bool -> wholem:range -> ps:SynPat list -> e:SynExpr -> SynExpr
-
-
- -
- - mkSynId m s - -
- Signature: m:range -> s:string -> Ident
-
-
- -
- - mkSynIdGet m n - -
- Signature: m:range -> n:string -> SynExpr
-
-
- -
- - mkSynIdGetWithAlt m id altInfo - -
- Signature: m:range -> id:Ident -> altInfo:SynSimplePatAlternativeIdInfo ref option -> SynExpr
-
-
- -
- - mkSynInfix opm l oper r - -
- Signature: opm:range -> l:SynExpr -> oper:string -> r:SynExpr -> SynExpr
-
-
- -
- - mkSynLidGet m path n - -
- Signature: m:range -> path:string list -> n:string -> SynExpr
-
-
- -
- - mkSynOperator opm oper - -
- Signature: opm:range -> oper:string -> SynExpr
-
-
- -
- - mkSynPatMaybeVar lidwd vis m - -
- Signature: lidwd:LongIdentWithDots -> vis:SynAccess option -> m:range -> SynPat
-
-
- -
- - mkSynPatVar vis id - -
- Signature: vis:SynAccess option -> id:Ident -> SynPat
-
-
- -
- - mkSynPrefix opm m oper x - -
- Signature: opm:range -> m:range -> oper:string -> x:SynExpr -> SynExpr
-
-
- -
- - mkSynPrefixPrim opm m oper x - -
- Signature: opm:range -> m:range -> oper:string -> x:SynExpr -> SynExpr
-
-
- -
- - mkSynQMarkSet m a b c - -
- Signature: m:range -> a:SynExpr -> b:SynExpr -> c:SynExpr -> SynExpr
-
-
- -
- - mkSynSimplePatVar isOpt id - -
- Signature: isOpt:bool -> id:Ident -> SynSimplePat
-
-
- -
- - mkSynThisPatVar(id) - -
- Signature: id:Ident -> SynPat
-
-
- -
- - mkSynTrifix m oper x1 x2 x3 - -
- Signature: m:range -> oper:string -> x1:SynExpr -> x2:SynExpr -> x3:SynExpr -> SynExpr
-
-
- -
- - mkSynUnit(m) - -
- Signature: m:range -> SynExpr
-
-
- -
- - mkSynUnitPat(m) - -
- Signature: m:range -> SynPat
-
-
- -
- - noInferredTypars - -
- Signature: SynValTyparDecls
-
-
- -
- - NonVirtualMemberFlags(k) - -
- Signature: k:MemberKind -> MemberFlags
-
-
- -
- - opNameParenGet - -
- Signature: string
-
-
- -
- - opNameQMark - -
- Signature: string
-
-
- -
- - OverrideMemberFlags(k) - -
- Signature: k:MemberKind -> MemberFlags
-
-
- -
- - pathOfLid(lid) - -
- Signature: lid:Ident list -> string list
-
-
- -
- - pathToSynLid m p - -
- Signature: m:range -> p:string list -> Ident list
-
-
- -
- - PushCurriedPatternsToExpr(...) - -
- Signature: synArgNameGenerator:SynArgNameGenerator -> wholem:range -> isMember:bool -> pats:SynPat list -> rhs:SynExpr -> SynSimplePats list * SynExpr
-
-
-

"fun (UnionCase x) (UnionCase y) -> body" -==> -"fun tmp1 tmp2 -> -let (UnionCase x) = tmp1 in -let (UnionCase y) = tmp2 in -body"

- - -
- - PushPatternToExpr(...) - -
- Signature: synArgNameGenerator:SynArgNameGenerator -> isMember:bool -> pat:SynPat -> rhs:SynExpr -> SynSimplePats * SynExpr
-
-
- -
- - rangeOfLid(lid) - -
- Signature: lid:Ident list -> range
-
-
- -
- - rangeOfNonNilAttrs(attrs) - -
- Signature: attrs:SynAttributes -> range
-
-
- -
- - SimplePatOfPat synArgNameGenerator p - -
- Signature: synArgNameGenerator:SynArgNameGenerator -> p:SynPat -> SynSimplePat * (SynExpr -> SynExpr) option
-
-
-

Push non-simple parts of a patten match over onto the r.h.s. of a lambda. -Return a simple pattern and a function to build a match on the r.h.s. if the pattern is complex

- - -
- - SimplePatsOfPat synArgNameGenerator p - -
- Signature: synArgNameGenerator:SynArgNameGenerator -> p:SynPat -> SynSimplePats * (SynExpr -> SynExpr) option
-
-
- -
- - StaticMemberFlags(k) - -
- Signature: k:MemberKind -> MemberFlags
-
-
- -
- - synExprContainsError(inpExpr) - -
- Signature: inpExpr:SynExpr -> bool
-
-
- -
- - textOfId(id) - -
- Signature: id:Ident -> string
-
-
- -
- - textOfLid(lid) - -
- Signature: lid:Ident list -> string
-
-
- -
- - textOfPath(path) - -
- Signature: path:seq<string> -> string
-
-
- -
- - unionRangeWithListBy(...) - -
- Signature: projectRangeFromThing:('a -> range) -> m:range -> listOfThing:'a list -> range
- Type parameters: 'a
-
- -
-

Active patterns

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Active patternDescription
- - ( |Attributes| )(synAttributes) - -
- Signature: synAttributes:SynAttributeList list -> SynAttribute list
-
-
- -

CompiledName: |Attributes|

-
- - ( |LongOrSingleIdent|_| )(inp) - -
- Signature: inp:SynExpr -> (bool * LongIdentWithDots * SynSimplePatAlternativeIdInfo ref option * range) option
-
-
-

Match a long identifier, including the case for single identifiers which gets a more optimized node in the syntax tree.

- - -

CompiledName: |LongOrSingleIdent|_|

-
- - ( |SingleIdent|_| )(inp) - -
- Signature: inp:SynExpr -> Ident option
-
-
- -

CompiledName: |SingleIdent|_|

-
- - ( |SynExprErrorSkip| )(p) - -
- Signature: p:SynExpr -> SynExpr
-
-
- -

CompiledName: |SynExprErrorSkip|

-
- - ( |SynExprParen|_| )(e) - -
- Signature: e:SynExpr -> (SynExpr * range * range option * range) option
-
-
- -

CompiledName: |SynExprParen|_|

-
- - ( |SynPatErrorSkip| )(p) - -
- Signature: p:SynPat -> SynPat
-
-
- -

CompiledName: |SynPatErrorSkip|

-
- - ( |SynPatForConstructorDecl|_| )(x) - -
- Signature: x:SynPat -> SynPat option
-
-
-

Extract the argument for patterns corresponding to the declaration of 'new ... = ...'

- - -

CompiledName: |SynPatForConstructorDecl|_|

-
- - ( |SynPatForNullaryArgs|_| )(x) - -
- Signature: x:SynPat -> unit option
-
-
-

Recognize the '()' in 'new()'

- - -

CompiledName: |SynPatForNullaryArgs|_|

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-text-isourcetext.html b/docs/reference/fsharp-compiler-text-isourcetext.html deleted file mode 100644 index 1d49392354..0000000000 --- a/docs/reference/fsharp-compiler-text-isourcetext.html +++ /dev/null @@ -1,229 +0,0 @@ - - - - - ISourceText - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ISourceText

-

- - Namespace: FSharp.Compiler.Text
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.ContentEquals(sourceText) - -
- Signature: sourceText:ISourceText -> bool
- Modifiers: abstract
-
-
- -
- - x.CopyTo(...) - -
- Signature: (sourceIndex:int * destination:char [] * destinationIndex:int * count:int) -> unit
- Modifiers: abstract
-
-
- -
- - x.GetLastCharacterPosition() - -
- Signature: unit -> int * int
- Modifiers: abstract
-
-
- -
- - x.GetLineCount() - -
- Signature: unit -> int
- Modifiers: abstract
-
-
- -
- - x.GetLineString(lineIndex) - -
- Signature: lineIndex:int -> string
- Modifiers: abstract
-
-
- -
- - x.GetSubTextString(start, length) - -
- Signature: (start:int * length:int) -> string
- Modifiers: abstract
-
-
- -
- - [arg1] - -
- Signature: int -> char
- Modifiers: abstract
-
-
- -

CompiledName: get_Item

-
- - x.Length - -
- Signature: int
- Modifiers: abstract
-
-
- -

CompiledName: get_Length

-
- - x.SubTextEquals(target, startIndex) - -
- Signature: (target:string * startIndex:int) -> bool
- Modifiers: abstract
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-text-sourcetext.html b/docs/reference/fsharp-compiler-text-sourcetext.html deleted file mode 100644 index df900c090b..0000000000 --- a/docs/reference/fsharp-compiler-text-sourcetext.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - SourceText - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

SourceText

-

- Namespace: FSharp.Compiler.Text
-

-
-
- - - -

Functions and values

- - - - - - - - - - -
Function or valueDescription
- - ofString(arg1) - -
- Signature: string -> ISourceText
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-xmldoc-prexmldoc.html b/docs/reference/fsharp-compiler-xmldoc-prexmldoc.html deleted file mode 100644 index 8ffa4d3645..0000000000 --- a/docs/reference/fsharp-compiler-xmldoc-prexmldoc.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - PreXmlDoc - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PreXmlDoc

-

- - Namespace: FSharp.Compiler
- Parent Module: XmlDoc
-

-
-

Represents the XmlDoc fragments as collected from the lexer during parsing

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - PreXmlDoc(pos,XmlDocCollector) - -
- Signature: pos * XmlDocCollector
-
-
- -
- - PreXmlDocEmpty - -
- Signature:
-
-
- -
- - PreXmlMerge(PreXmlDoc,PreXmlDoc) - -
- Signature: PreXmlDoc * PreXmlDoc
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.ToXmlDoc() - -
- Signature: unit -> XmlDoc
-
-
- -
-

Static members

- - - - - - - - - - - - - - - - - - -
Static memberDescription
- - PreXmlDoc.CreateFromGrabPoint(...) - -
- Signature: (collector:XmlDocCollector * grabPointPos:pos) -> PreXmlDoc
-
-
- -
- - PreXmlDoc.Empty - -
- Signature: PreXmlDoc
-
-
- -

CompiledName: get_Empty

-
- - PreXmlDoc.Merge a b - -
- Signature: a:PreXmlDoc -> b:PreXmlDoc -> PreXmlDoc
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-xmldoc-xmldoc.html b/docs/reference/fsharp-compiler-xmldoc-xmldoc.html deleted file mode 100644 index 1817c86edf..0000000000 --- a/docs/reference/fsharp-compiler-xmldoc-xmldoc.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - XmlDoc - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

XmlDoc

-

- - Namespace: FSharp.Compiler
- Parent Module: XmlDoc
-

-
-

Represents the final form of collected XmlDoc lines

- -
-

Union Cases

- - - - - - - - - - -
Union CaseDescription
- - XmlDoc(string []) - -
- Signature: string []
-
-
- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.NonEmpty - -
- Signature: bool
-
-
- -

CompiledName: get_NonEmpty

-
-

Static members

- - - - - - - - - - - - - - - - - - -
Static memberDescription
- - XmlDoc.Empty - -
- Signature: XmlDoc
-
-
- -

CompiledName: get_Empty

-
- - XmlDoc.Merge arg1 arg2 - -
- Signature: XmlDoc -> XmlDoc -> XmlDoc
-
-
- -
- - XmlDoc.Process(arg1) - -
- Signature: XmlDoc -> XmlDoc
-
-
-

This code runs for .XML generation and thus influences cross-project xmldoc tooltips; for within-project tooltips, -see XmlDocumentation.fs in the language service

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-xmldoc-xmldoccollector.html b/docs/reference/fsharp-compiler-xmldoc-xmldoccollector.html deleted file mode 100644 index 2895f487e0..0000000000 --- a/docs/reference/fsharp-compiler-xmldoc-xmldoccollector.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - - XmlDocCollector - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

XmlDocCollector

-

- - Namespace: FSharp.Compiler
- Parent Module: XmlDoc
-

-
-

Used to collect XML documentation during lexing and parsing.

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> XmlDocCollector
-
-
- -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.AddGrabPoint(pos) - -
- Signature: pos:pos -> unit
-
-
- -
- - x.AddXmlDocLine(line, pos) - -
- Signature: (line:string * pos:pos) -> unit
-
-
- -
- - x.LinesBefore(grabPointPos) - -
- Signature: grabPointPos:pos -> string []
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-xmldoc-xmldocstatics.html b/docs/reference/fsharp-compiler-xmldoc-xmldocstatics.html deleted file mode 100644 index 0abcd217c2..0000000000 --- a/docs/reference/fsharp-compiler-xmldoc-xmldocstatics.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - XmlDocStatics - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

XmlDocStatics

-

- - Namespace: FSharp.Compiler
- Parent Module: XmlDoc
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new() - -
- Signature: unit -> XmlDocStatics
-
-
- -

CompiledName: .ctor

-
-

Static members

- - - - - - - - - - -
Static memberDescription
- - XmlDocStatics.Empty - -
- Signature: XmlDoc
-
-
- -

CompiledName: get_Empty

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/fsharp-compiler-xmldoc.html b/docs/reference/fsharp-compiler-xmldoc.html deleted file mode 100644 index 02be3103f2..0000000000 --- a/docs/reference/fsharp-compiler-xmldoc.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - XmlDoc - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

XmlDoc

-

- Namespace: FSharp.Compiler
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- PreXmlDoc - -

Represents the XmlDoc fragments as collected from the lexer during parsing

- - -
- XmlDoc - -

Represents the final form of collected XmlDoc lines

- - -
- XmlDocCollector - -

Used to collect XML documentation during lexing and parsing.

- - -
- XmlDocStatics - - -
- -
- - -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/index.html b/docs/reference/index.html deleted file mode 100644 index 95b3b8a992..0000000000 --- a/docs/reference/index.html +++ /dev/null @@ -1,1916 +0,0 @@ - - - - - Namespaces - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- -

F# Compiler Services

- -

FSharp.Compiler Namespace

-
- - - - - - - - - - -
TypeDescription
- PartialLongName - -

Qualified long name.

- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ModuleDescription
- CompilerGlobalState - -

Defines the global environment for all type checking.

- - -
- ErrorLogger - - -
- Layout - -

DSL to create structured layout objects with optional breaks and render them

- - -
- ParseHelpers - - -
- PrettyNaming - -

Some general F# utilities for mangling / unmangling / manipulating names. -Anything to do with special names of identifiers and other lexical rules

- - -
- QuickParse - -

Methods for cheaply and inaccurately parsing F#.

-

These methods are very old and are mostly to do with extracting "long identifier islands" -A.B.C -from F# source code, an approach taken from pre-F# VS samples for implementing intelliense.

-

This code should really no longer be needed since the language service has access to -parsed F# source code ASTs. However, the long identifiers are still passed back to GetDeclarations and friends in the -F# Compiler Service and it's annoyingly hard to remove their use completely.

-

In general it is unlikely much progress will be made by fixing this code - it will be better to -extract more information from the F# ASTs.

-

It's also surprising how hard even the job of getting long identifier islands can be. For example the code -below is inaccurate for long identifier chains involving ... identifiers. And there are special cases -for active pattern names and so on.

- - -
- Range - - -
- ReferenceResolver - - -
- SyntaxTree - - -
- SyntaxTreeOps - - -
- XmlDoc - - -
- -
-

FSharp.Compiler.AbstractIL Namespace

-
- - - - - - - - - - - - - - -
ModuleDescription
- IL - -

The "unlinked" view of .NET metadata and code. Central to the Abstract IL library

- - -
- ILBinaryReader - -

Binary reader. Read a .NET binary and concert it to Abstract IL data -structures.

-

NOTE: -- The metadata in the loaded modules will be relative to -those modules, e.g. ILScopeRef.Local will mean "local to -that module". You must use [rescopeILType] etc. if you want to include -(i.e. copy) the metadata into your own module.

-
    -
  • -

    PDB (debug info) reading/folding: -The PDB reader is invoked if you give a PDB path -This indicates if you want to search for PDB files and have the -reader fold them in. You cannot currently name the pdb file -directly - you can only name the path. Giving "None" says -"do not read the PDB file even if one exists".

    -

    The debug info appears primarily as I_seqpoint annotations in -the instruction streams. Unfortunately the PDB information does -not, for example, tell you how to map back from a class definition -to a source code line number - you will need to explicitly search -for a sequence point in the code for one of the methods of the -class. That is not particularly satisfactory, and it may be -a good idea to build a small library which extracts the information -you need.

    -
  • -
- - -
- -
-

FSharp.Compiler.AbstractIL.Internal Namespace

-
- - - - - - - - - - - - - - -
ModuleDescription
- Library - - -
- Utils - - -
- -
-

FSharp.Compiler.Interactive Namespace

-
- - - - - - - - - - -
ModuleDescription
- Shell - - -
- -
-

FSharp.Compiler.SourceCodeServices Namespace

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- AssemblyContentType - -

Assembly content type.

- - -
- AssemblyPath - -

Assembly path.

- - -
- AssemblySymbol - -

Represents type, module, member, function or value in a compiled assembly.

- - -
- CompilerEnvironment - -

Information about the compilation environment

- - -
- CompletionContext - - -
- CompletionItemKind - - -
- CompletionPath - - -
- Entity - -

Helper data structure representing a symbol, suitable for implementing unresolved identifiers resolution code fixes.

- - -
- EntityCache - -

Thread safe wrapper over IAssemblyContentCache.

- - -
- EntityKind - - -
- ExternalSymbol - -

Represents a symbol in an external (non F#) assembly

- - -
- ExternalType - -

Represents a type in an external (non F#) assembly.

- - -
- FSharpAbstractParameter - -

Represents a parameter in an abstract method of a class or interface

- - -
- FSharpAbstractSignature - -

Represents the signature of an abstract slot of a class or interface

- - -
- FSharpAccessibility - -

Indicates the accessibility of a symbol, as seen by the F# language

- - -
- FSharpAccessibilityRights - -

Represents the rights of a compilation to access symbols

- - -
- FSharpActivePatternCase - -

A subtype of FSharpSymbol that represents a single case within an active pattern

- - -
- FSharpActivePatternGroup - -

Represents all cases within an active pattern

- - -
- FSharpAnonRecordTypeDetails - -

A subtype of FSharpSymbol that represents a record or union case field as seen by the F# language

- - -
- FSharpAssembly - -

Represents an assembly as seen by the F# language

- - -
- FSharpAssemblyContents - -

Represents the definitional contents of an assembly, as seen by the F# language

- - -
- FSharpAssemblySignature - -

Represents an inferred signature of part of an assembly as seen by the F# language

- - -
- FSharpAttribute - -

Represents a custom attribute attached to F# source code or a compiler .NET component

- - -
- FSharpCheckFileAnswer - -

The result of calling TypeCheckResult including the possibility of abort and background compiler not caught up.

- - -
- FSharpCheckFileResults - -

A handle to the results of CheckFileInProject.

- - -
- FSharpCheckProjectResults - -

A handle to the results of CheckFileInProject.

- - -
- FSharpChecker - -

Used to parse and check F# source code.

- - -
- FSharpDeclarationListInfo - -

Represents a set of declarations in F# source code, with information attached ready for display by an editor. -Returned by GetDeclarations.

- - -
- FSharpDeclarationListItem - -

Represents a declaration in F# source code, with information attached ready for display by an editor. -Returned by GetDeclarations.

- - -
- FSharpDelegateSignature - -

Represents a delegate signature in an F# symbol

- - -
- FSharpDisplayContext - -

Represents the information needed to format types and other information in a style -suitable for use in F# source text at a particular source location.

-

Acquired via GetDisplayEnvAtLocationAlternate and similar methods. May be passed -to the Format method on FSharpType and other methods.

- - -
- FSharpEnclosingEntityKind - - -
- FSharpEntity - -

A subtype of FSharpSymbol that represents a type definition or module as seen by the F# language

- - -
- FSharpErrorInfo - -

Object model for diagnostics

- - -
- FSharpErrorSeverity - - -
- FSharpExpr - -

Represents a checked and reduced expression, as seen by the F# language. The active patterns -in 'FSharp.Compiler.SourceCodeServices' can be used to analyze information about the expression.

-

Pattern matching is reduced to decision trees and conditional tests. Some other -constructs may be represented in reduced form.

- - -
- FSharpField - -

A subtype of FSharpSymbol that represents a record or union case field as seen by the F# language

- - -
- FSharpFindDeclFailureReason - -

Represents the reason why the GetDeclarationLocation operation failed.

- - -
- FSharpFindDeclResult - -

Represents the result of the GetDeclarationLocation operation.

- - -
- FSharpGenericParameter - -

A subtype of FSharpSymbol that represents a generic parameter for an FSharpSymbol

- - -
- FSharpGenericParameterConstraint - -

Represents a constraint on a generic type parameter

- - -
- FSharpGenericParameterDefaultsToConstraint - -

Represents further information about a 'defaults to' constraint on a generic type parameter

- - -
- FSharpGenericParameterDelegateConstraint - -

Represents further information about a delegate constraint on a generic type parameter

- - -
- FSharpGenericParameterMemberConstraint - -

Represents further information about a member constraint on a generic type parameter

- - -
- FSharpGlyph - - -
- FSharpImplementationFileContents - -

Represents the definitional contents of a single file or fragment in an assembly, as seen by the F# language

- - -
- FSharpImplementationFileDeclaration - -

Represents a declaration in an implementation file, as seen by the F# language

- - -
- FSharpInlineAnnotation - - -
- FSharpLineTokenizer - -

Object to tokenize a line of F# source code, starting with the given lexState. The lexState should be FSharpTokenizerLexState.Initial for -the first line of text. Returns an array of ranges of the text and two enumerations categorizing the -tokens and characters covered by that range, i.e. FSharpTokenColorKind and FSharpTokenCharKind. The enumerations -are somewhat adhoc but useful enough to give good colorization options to the user in an IDE.

-

A new lexState is also returned. An IDE-plugin should in general cache the lexState -values for each line of the edited code.

- - -
- FSharpMemberOrFunctionOrValue - -

A subtype of F# symbol that represents an F# method, property, event, function or value, including extension members.

- - -
- FSharpMethodGroup - -

Represents a group of methods (or other items) returned by GetMethods.

- - -
- FSharpMethodGroupItem - -

Represents one method (or other item) in a method group. The item may represent either a method or -a single, non-overloaded item such as union case or a named function value.

- - -
- FSharpMethodGroupItemParameter - -

Represents one parameter for one method (or other item) in a group.

- - -
- FSharpNavigationDeclarationItem - -

Represents an item to be displayed in the navigation bar

- - -
- FSharpNavigationDeclarationItemKind - -

Indicates a kind of item to show in an F# navigation bar

- - -
- FSharpNavigationItems - -

Represents result of 'GetNavigationItems' operation - this contains -all the members and currently selected indices. First level correspond to -types & modules and second level are methods etc.

- - -
- FSharpNavigationTopLevelDeclaration - -

Represents top-level declarations (that should be in the type drop-down) -with nested declarations (that can be shown in the member drop-down)

- - -
- FSharpNoteworthyParamInfoLocations - -

Represents the locations relevant to activating parameter info in an IDE

- - -
- FSharpObjectExprOverride - -

Represents a checked method in an object expression, as seen by the F# language.

- - -
- FSharpOpenDeclaration - -

Represents open declaration in F# code.

- - -
- FSharpParameter - -

A subtype of FSharpSymbol that represents a parameter

- - -
- FSharpParseFileResults - -

Represents the results of parsing an F# file

- - -
- FSharpParsingOptions - -

Options used to determine active --define conditionals and other options relevant to parsing files in a project

- - -
- FSharpProjectContext - -

Represents the checking context implied by the ProjectOptions

- - -
- FSharpProjectOptions - -

A set of information describing a project or script build configuration.

- - -
- FSharpSourceTokenizer - -

Tokenizer for a source file. Holds some expensive-to-compute resources at the scope of the file.

- - -
- FSharpStaticParameter - -

A subtype of FSharpSymbol that represents a static parameter to an F# type provider

- - -
- FSharpStructuredToolTipElement - -

A single data tip display element with where text is expressed as

- - -
- FSharpStructuredToolTipText - - -
- FSharpSymbol - -

Represents a symbol in checked F# source code or a compiled .NET component.

-

The subtype of the symbol may reveal further information and can be one of FSharpEntity, FSharpUnionCase -FSharpField, FSharpGenericParameter, FSharpStaticParameter, FSharpMemberOrFunctionOrValue, FSharpParameter, -or FSharpActivePatternCase.

- - -
- FSharpSymbolUse - -

Represents the use of an F# symbol from F# source code

- - -
- FSharpTokenCharKind - -

Gives an indication of the class to assign to the characters of the token an IDE

- - -
- FSharpTokenColorKind - -

Gives an indication of the color class to assign to the token an IDE

- - -
- FSharpTokenInfo - -

Information about a particular token from the tokenizer

- - -
- FSharpTokenTriggerClass - -

Gives an indication of what should happen when the token is typed in an IDE

- - -
- FSharpTokenizerColorState - -

Represents stable information for the state of the lexing engine at the end of a line

- - -
- FSharpTokenizerLexState - -

Represents encoded information for the end-of-line continuation of lexing

- - -
- FSharpToolTipElement<'T> - -

A single tool tip display element

- - -
- FSharpToolTipElement - -

A single data tip display element with where text is expressed as string

- - -
- FSharpToolTipElementData<'T> - -

A single data tip display element

- - -
- FSharpToolTipText<'T> - -

Information for building a tool tip box.

- - -
- FSharpToolTipText - - -
- FSharpType - - -
- FSharpUnionCase - -

A subtype of FSharpSymbol that represents a union case as seen by the F# language

- - -
- FSharpXmlDoc - -

Describe a comment as either a block of text or a file+signature reference into an intellidoc file.

- - -
- IAssemblyContentCache - -

Assembly content cache.

- - -
- Idents - -

An array of ShortIdent.

- - -
- InheritanceContext - - -
- InsertContext - -

Insert open namespace context.

- - -
- InterfaceData - -

Capture information about an interface in ASTs

- - -
- Layout - - -
- LookupType - -

Entity lookup type.

- - -
- MaybeUnresolvedIdent - -

ShortIdent with a flag indicating if it's resolved in some scope.

- - -
- MaybeUnresolvedIdents - -

Array of MaybeUnresolvedIdent.

- - -
- ModuleKind - - -
- OpenStatementInsertionPoint - -

Where open statements should be added.

- - -
- ParamTypeSymbol - -

Represents the type of a single method parameter

- - -
- Position - - -
- Range - - -
- RecordContext - - -
- ScopeKind - -

Kind of lexical scope.

- - -
- SemanticClassificationType - -

A kind that determines what range in a source's text is semantically classified as after type-checking.

- - -
- ShortIdent - -

Short identifier, i.e. an identifier that contains no dots.

- - -
- StringLongIdent - -

Long identifier (i.e. it may contain dots).

- - -
- UnresolvedReferencesSet - -

Unused in this API

- - -
- UnresolvedSymbol - - -
- XmlDocable - -

Represent an Xml documentation block in source code

- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ModuleDescription
- AssemblyContentProvider - -

Provides assembly content.

- - -
- AstTraversal - -

A range of utility functions to assist with traversing an AST

- - -
- BasicPatterns - -

A collection of active patterns to analyze expressions

- - -
- CompilerEnvironment - -

Information about the compilation environment

- - -
- DebuggerEnvironment - -

Information about the debugging environment

- - -
- Extensions - - -
- ExternalType - - -
- FSharpFileUtilities - -

A set of helpers for dealing with F# files.

- - -
- FSharpNavigation - - -
- FSharpTokenTag - -

Some of the values in the field FSharpTokenInfo.Tag

- - -
- InterfaceStubGenerator - - -
- Keywords - - -
- Lexer - - -
- NavigateTo - - -
- ParamTypeSymbol - - -
- ParsedInput - -

Parse AST helpers.

- - -
- PrettyNaming - -

A set of helpers related to naming of identifiers

- - -
- SimplifyNames - - -
- SourceFile - -

Information about F# source file names

- - -
- Structure - - -
- Symbol - -

Patterns over FSharpSymbol and derivatives.

- - -
- Tooltips - - -
- UntypedParseImpl - - -
- UnusedDeclarations - - -
- UnusedOpens - - -
- XmlDocComment - - -
- XmlDocParser - - -
- -
-

FSharp.Compiler.Text Namespace

-
- - - - - - - - - - -
TypeDescription
- ISourceText - - -
- - - - - - - - - - -
ModuleDescription
- SourceText - - -
- -
-

Internal.Utilities Namespace

-
- - - - - - - - - - -
TypeDescription
- PathMap - - -
- -
-

Internal.Utilities.StructuredFormat Namespace

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- FormatOptions - -

A record of options to control structural formatting. -For F# Interactive properties matching those of this value can be accessed via the 'fsi' -value.

-

Floating Point format given in the same format accepted by System.Double.ToString, -e.g. f6 or g15.

-

If ShowProperties is set the printing process will evaluate properties of the values being -displayed. This may cause additional computation.

-

The ShowIEnumerable is set the printing process will force the evaluation of IEnumerable objects -to a small, finite depth, as determined by the printing parameters. -This may lead to additional computation being performed during printing.

- -From F# Interactive the default settings can be adjusted using, for example, -
-  open FSharp.Compiler.Interactive.Settings;;
-  setPrintWidth 120;;
-
-
- - -
- IEnvironment - - -
- Joint - -

Data representing joints in structured layouts of terms. The representation -of this data type is only for the consumption of formatting engines.

- - -
- Layout - -

Data representing structured layouts of terms. The representation -of this data type is only for the consumption of formatting engines.

- - -
- LayoutTag - - -
- TaggedText - - -
- TaggedTextWriter - - -
- - - - - - - - - - - - - - - - - - -
ModuleDescription
- Display - - -
- LayoutOps - -

A layout is a sequence of strings which have been joined together. -The strings are classified as words, separators and left and right parenthesis. -This classification determines where spaces are inserted. -A joint is either unbreakable, breakable or broken. -If a joint is broken the RHS layout occurs on the next line with optional indentation. -A layout can be squashed to for given width which forces breaks as required.

- - -
- TaggedTextOps - - -
- -
-

Microsoft.Interactive.DependencyManager Namespace

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TypeDescription
- AssemblyResolutionProbe - -

Signature for ResolutionProbe callback -host implements this, it's job is to return a list of assembly paths to probe.

- - -
- AssemblyResolveHandler - -

Handle Assembly resolution

- - -
- DependencyProvider - -

Provides DependencyManagement functions. -Class is IDisposable

- - -
- ErrorReportType - -

Todo describe this API

- - -
- IDependencyManagerProvider - -

Wraps access to a DependencyManager implementation

- - -
- IResolveDependenciesResult - -

The results of ResolveDependencies

- - -
- NativeDllResolveHandler - - -
- NativeResolutionProbe - -

Signature for Native library resolution probe callback -host implements this, it's job is to return a list of package roots to probe.

- - -
- ResolvingErrorReport - - -
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/internal-utilities-pathmap.html b/docs/reference/internal-utilities-pathmap.html deleted file mode 100644 index abdcc09b74..0000000000 --- a/docs/reference/internal-utilities-pathmap.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - PathMap - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

PathMap

-

- - Namespace: Internal.Utilities
-

-
-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/internal-utilities-structuredformat-display.html b/docs/reference/internal-utilities-structuredformat-display.html deleted file mode 100644 index 99e6c60cdf..0000000000 --- a/docs/reference/internal-utilities-structuredformat-display.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - Display - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Display

-

- Namespace: Internal.Utilities.StructuredFormat
-

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - any_to_layout options (value, arg3) - -
- Signature: options:FormatOptions -> (value:'T * Type) -> Layout
- Type parameters: 'T
-
- -
- - any_to_string(value, arg2) - -
- Signature: (value:'T * Type) -> string
- Type parameters: 'T
-
-

Convert any value to a string using a standard formatter -Data is typically formatted in a structured format, e.g. -lists are formatted using the "[1;2]" notation. -The details of the format are not specified and may change -from version to version and according to the flags given -to the F# compiler. The format is intended to be human-readable, -not machine readable. If alternative generic formats are required -you should develop your own formatter, using the code in the -implementation of this file as a starting point.

-

Data from other .NET languages is formatted using a virtual -call to Object.ToString() on the boxed version of the input.

- - -
- - asTaggedTextWriter(writer) - -
- Signature: writer:TextWriter -> TaggedTextWriter
-
-
- -
- - fsi_any_to_layout options (value, arg3) - -
- Signature: options:FormatOptions -> (value:'T * Type) -> Layout
- Type parameters: 'T
-
- -
- - layout_as_string options (value, arg3) - -
- Signature: options:FormatOptions -> (value:'T * Type) -> string
- Type parameters: 'T
-
- -
- - layout_to_string options layout - -
- Signature: options:FormatOptions -> layout:Layout -> string
-
-
-

Convert any value to a layout using the given formatting options. The -layout can then be processed using formatting display engines such as -those in the LayoutOps module. anytostring and outputany are -built using anyto_layout with default format options.

- - -
- - output_any writer (value, arg3) - -
- Signature: writer:TextWriter -> (value:'T * Type) -> unit
- Type parameters: 'T
-
-

Output any value to a channel using the same set of formatting rules -as anytostring

- - -
- - output_layout options writer layout - -
- Signature: options:FormatOptions -> writer:TextWriter -> layout:Layout -> unit
-
-
- -
- - output_layout_tagged(...) - -
- Signature: options:FormatOptions -> writer:TaggedTextWriter -> layout:Layout -> unit
-
-
- -
- - squash_layout options layout - -
- Signature: options:FormatOptions -> layout:Layout -> Layout
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/internal-utilities-structuredformat-formatoptions.html b/docs/reference/internal-utilities-structuredformat-formatoptions.html deleted file mode 100644 index fae09ebe65..0000000000 --- a/docs/reference/internal-utilities-structuredformat-formatoptions.html +++ /dev/null @@ -1,303 +0,0 @@ - - - - - FormatOptions - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

FormatOptions

-

- - Namespace: Internal.Utilities.StructuredFormat
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

A record of options to control structural formatting. -For F# Interactive properties matching those of this value can be accessed via the 'fsi' -value.

-

Floating Point format given in the same format accepted by System.Double.ToString, -e.g. f6 or g15.

-

If ShowProperties is set the printing process will evaluate properties of the values being -displayed. This may cause additional computation.

-

The ShowIEnumerable is set the printing process will force the evaluation of IEnumerable objects -to a small, finite depth, as determined by the printing parameters. -This may lead to additional computation being performed during printing.

- -From F# Interactive the default settings can be adjusted using, for example, -
-  open FSharp.Compiler.Interactive.Settings;;
-  setPrintWidth 120;;
-
-
- -
-

Record Fields

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Record FieldDescription
- - AttributeProcessor - -
- Signature: string -> (string * string) list -> bool -> unit
-
-
- -
- - BindingFlags - -
- Signature: BindingFlags
-
-
- -
- - FloatingPointFormat - -
- Signature: string
-
-
- -
- - FormatProvider - -
- Signature: IFormatProvider
-
-
- -
- - PrintDepth - -
- Signature: int
-
-
- -
- - PrintIntercepts - -
- Signature: (IEnvironment -> obj -> Layout option) list
-
-
- -
- - PrintLength - -
- Signature: int
-
-
- -
- - PrintSize - -
- Signature: int
-
-
- -
- - PrintWidth - -
- Signature: int
-
-
- -
- - ShowIEnumerable - -
- Signature: bool
-
-
- -
- - ShowProperties - -
- Signature: bool
-
-
- -
- - StringLimit - -
- Signature: int
-
-
- -
-

Static members

- - - - - - - - - - -
Static memberDescription
- - FormatOptions.Default - -
- Signature: FormatOptions
-
-
- -

CompiledName: get_Default

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/internal-utilities-structuredformat-ienvironment.html b/docs/reference/internal-utilities-structuredformat-ienvironment.html deleted file mode 100644 index 73fface188..0000000000 --- a/docs/reference/internal-utilities-structuredformat-ienvironment.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - IEnvironment - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

IEnvironment

-

- - Namespace: Internal.Utilities.StructuredFormat
-

-
-
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.GetLayout(arg1) - -
- Signature: obj -> Layout
- Modifiers: abstract
-
-
-

Return to the layout-generation -environment to layout any otherwise uninterpreted object

- - -
- - x.MaxColumns - -
- Signature: int
- Modifiers: abstract
-
-
-

The maximum number of elements for which to generate layout for -list-like structures, or columns in table-like -structures. -1 if no maximum.

- - -

CompiledName: get_MaxColumns

-
- - x.MaxRows - -
- Signature: int
- Modifiers: abstract
-
-
-

The maximum number of rows for which to generate layout for table-like -structures. -1 if no maximum.

- - -

CompiledName: get_MaxRows

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/internal-utilities-structuredformat-joint.html b/docs/reference/internal-utilities-structuredformat-joint.html deleted file mode 100644 index bb927e8606..0000000000 --- a/docs/reference/internal-utilities-structuredformat-joint.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - Joint - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Joint

-

- - Namespace: Internal.Utilities.StructuredFormat
- - Attributes:
-[<StructuralEquality>]
-[<NoComparison>]
- -
-

-
-

Data representing joints in structured layouts of terms. The representation -of this data type is only for the consumption of formatting engines.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Breakable(int) - -
- Signature: int
-
-
- -
- - Broken(int) - -
- Signature: int
-
-
- -
- - Unbreakable - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/internal-utilities-structuredformat-layout.html b/docs/reference/internal-utilities-structuredformat-layout.html deleted file mode 100644 index 001899ca0f..0000000000 --- a/docs/reference/internal-utilities-structuredformat-layout.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - Layout - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Layout

-

- - Namespace: Internal.Utilities.StructuredFormat
- - Attributes:
-[<NoEquality>]
-[<NoComparison>]
- -
-

-
-

Data representing structured layouts of terms. The representation -of this data type is only for the consumption of formatting engines.

- -
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - Attr(...) - -
- Signature: string * (string * string) list * Layout
-
-
- -
- - Leaf(bool,TaggedText,bool) - -
- Signature: bool * TaggedText * bool
-
-
- -
- - Node(bool,Layout,bool,Layout,bool,Joint) - -
- Signature: bool * Layout * bool * Layout * bool * Joint
-
-
- -
- - ObjLeaf(bool,obj,bool) - -
- Signature: bool * obj * bool
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/internal-utilities-structuredformat-layoutops.html b/docs/reference/internal-utilities-structuredformat-layoutops.html deleted file mode 100644 index 0b43cbd6da..0000000000 --- a/docs/reference/internal-utilities-structuredformat-layoutops.html +++ /dev/null @@ -1,541 +0,0 @@ - - - - - LayoutOps - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LayoutOps

-

- Namespace: Internal.Utilities.StructuredFormat
-

-
-

A layout is a sequence of strings which have been joined together. -The strings are classified as words, separators and left and right parenthesis. -This classification determines where spaces are inserted. -A joint is either unbreakable, breakable or broken. -If a joint is broken the RHS layout occurs on the next line with optional indentation. -A layout can be squashed to for given width which forces breaks as required.

- -
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - ( -- ) layout1 layout2 - -
- Signature: layout1:Layout -> layout2:Layout -> Layout
-
-
-

Join, possible break with indent=1

- - -

CompiledName: op_MinusMinus

-
- - ( --- ) layout1 layout2 - -
- Signature: layout1:Layout -> layout2:Layout -> Layout
-
-
-

Join, possible break with indent=2

- - -

CompiledName: op_MinusMinusMinus

-
- - ( @@ ) layout1 layout2 - -
- Signature: layout1:Layout -> layout2:Layout -> Layout
-
-
-

Join broken with ident=0

- - -

CompiledName: op_AtAt

-
- - ( @@- ) layout1 layout2 - -
- Signature: layout1:Layout -> layout2:Layout -> Layout
-
-
-

Join broken with ident=1

- - -

CompiledName: op_AtAtMinus

-
- - ( @@-- ) layout1 layout2 - -
- Signature: layout1:Layout -> layout2:Layout -> Layout
-
-
-

Join broken with ident=2

- - -

CompiledName: op_AtAtMinusMinus

-
- - ( ^^ ) layout1 layout2 - -
- Signature: layout1:Layout -> layout2:Layout -> Layout
-
-
-

Join, unbreakable.

- - -

CompiledName: op_HatHat

-
- - ( ++ ) layout1 layout2 - -
- Signature: layout1:Layout -> layout2:Layout -> Layout
-
-
-

Join, possible break with indent=0

- - -

CompiledName: op_PlusPlus

-
- - aboveL layout1 layout2 - -
- Signature: layout1:Layout -> layout2:Layout -> Layout
-
-
-

Layout two vertically.

- - -
- - aboveListL(layouts) - -
- Signature: layouts:Layout list -> Layout
-
-
-

Layout list vertically.

- - -
- - braceL(layout) - -
- Signature: layout:Layout -> Layout
-
-
-

Wrap braces around layout.

- - -
- - bracketL(layout) - -
- Signature: layout:Layout -> Layout
-
-
-

Wrap round brackets around Layout.

- - -
- - commaListL(layouts) - -
- Signature: layouts:Layout list -> Layout
-
-
-

Join layouts into a comma separated list.

- - -
- - emptyL - -
- Signature: Layout
-
-
-

The empty layout

- - -
- - isEmptyL(layout) - -
- Signature: layout:Layout -> bool
-
-
-

Is it the empty layout?

- - -
- - leftL(text) - -
- Signature: text:TaggedText -> Layout
-
-
-

An string which is left parenthesis (no space on the right).

- - -
- - listL selector value - -
- Signature: selector:('T -> Layout) -> value:'T list -> Layout
- Type parameters: 'T
-
-

Layout like an F# list.

- - -
- - objL(value) - -
- Signature: value:obj -> Layout
-
-
-

An uninterpreted leaf, to be interpreted into a string -by the layout engine. This allows leaf layouts for numbers, strings and -other atoms to be customized according to culture.

- - -
- - optionL selector value - -
- Signature: selector:('T -> Layout) -> value:'T option -> Layout
- Type parameters: 'T
-
-

Layout like an F# option.

- - -
- - rightL(text) - -
- Signature: text:TaggedText -> Layout
-
-
-

An string which is right parenthesis (no space on the left).

- - -
- - semiListL(layouts) - -
- Signature: layouts:Layout list -> Layout
-
-
-

Join layouts into a semi-colon separated list.

- - -
- - sepL(text) - -
- Signature: text:TaggedText -> Layout
-
-
-

An string which requires no spaces either side.

- - -
- - sepListL layout1 layouts - -
- Signature: layout1:Layout -> layouts:Layout list -> Layout
-
-
-

Join layouts into a list separated using the given Layout.

- - -
- - spaceListL(layouts) - -
- Signature: layouts:Layout list -> Layout
-
-
-

Join layouts into a space separated list.

- - -
- - squareBracketL(layout) - -
- Signature: layout:Layout -> Layout
-
-
-

Wrap square brackets around layout.

- - -
- - tagAttrL text maps layout - -
- Signature: text:string -> maps:(string * string) list -> layout:Layout -> Layout
-
-
-

See tagL

- - -
- - tupleL(layouts) - -
- Signature: layouts:Layout list -> Layout
-
-
-

Form tuple of layouts.

- - -
- - unfoldL selector folder state count - -
- Signature: selector:('T -> Layout) -> folder:('State -> ('T * 'State) option) -> state:'State -> count:int -> Layout list
- Type parameters: 'T, 'State
-
-

For limiting layout of list-like sequences (lists,arrays,etc). -unfold a list of items using (project and z) making layout list via itemL. -If reach maxLength (before exhausting) then truncate.

- - -
- - wordL(text) - -
- Signature: text:TaggedText -> Layout
-
-
-

An string leaf

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/internal-utilities-structuredformat-layouttag.html b/docs/reference/internal-utilities-structuredformat-layouttag.html deleted file mode 100644 index baba0c98a6..0000000000 --- a/docs/reference/internal-utilities-structuredformat-layouttag.html +++ /dev/null @@ -1,536 +0,0 @@ - - - - - LayoutTag - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

LayoutTag

-

- - Namespace: Internal.Utilities.StructuredFormat
- - Attributes:
-[<StructuralEquality>]
-[<NoComparison>]
- -
-

-
-
-

Union Cases

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Union CaseDescription
- - ActivePatternCase - -
- Signature:
-
-
- -
- - ActivePatternResult - -
- Signature:
-
-
- -
- - Alias - -
- Signature:
-
-
- -
- - Class - -
- Signature:
-
-
- -
- - Delegate - -
- Signature:
-
-
- -
- - Enum - -
- Signature:
-
-
- -
- - Event - -
- Signature:
-
-
- -
- - Field - -
- Signature:
-
-
- -
- - Interface - -
- Signature:
-
-
- -
- - Keyword - -
- Signature:
-
-
- -
- - LineBreak - -
- Signature:
-
-
- -
- - Local - -
- Signature:
-
-
- -
- - Member - -
- Signature:
-
-
- -
- - Method - -
- Signature:
-
-
- -
- - Module - -
- Signature:
-
-
- -
- - ModuleBinding - -
- Signature:
-
-
- -
- - Namespace - -
- Signature:
-
-
- -
- - NumericLiteral - -
- Signature:
-
-
- -
- - Operator - -
- Signature:
-
-
- -
- - Parameter - -
- Signature:
-
-
- -
- - Property - -
- Signature:
-
-
- -
- - Punctuation - -
- Signature:
-
-
- -
- - Record - -
- Signature:
-
-
- -
- - RecordField - -
- Signature:
-
-
- -
- - Space - -
- Signature:
-
-
- -
- - StringLiteral - -
- Signature:
-
-
- -
- - Struct - -
- Signature:
-
-
- -
- - Text - -
- Signature:
-
-
- -
- - TypeParameter - -
- Signature:
-
-
- -
- - Union - -
- Signature:
-
-
- -
- - UnionCase - -
- Signature:
-
-
- -
- - UnknownEntity - -
- Signature:
-
-
- -
- - UnknownType - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/internal-utilities-structuredformat-taggedtext.html b/docs/reference/internal-utilities-structuredformat-taggedtext.html deleted file mode 100644 index 7b5534795b..0000000000 --- a/docs/reference/internal-utilities-structuredformat-taggedtext.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - TaggedText - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

TaggedText

-

- - Namespace: Internal.Utilities.StructuredFormat
-

-
-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Tag - -
- Signature: LayoutTag
- Modifiers: abstract
-
-
- -

CompiledName: get_Tag

-
- - x.Text - -
- Signature: string
- Modifiers: abstract
-
-
- -

CompiledName: get_Text

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/internal-utilities-structuredformat-taggedtextops-literals.html b/docs/reference/internal-utilities-structuredformat-taggedtextops-literals.html deleted file mode 100644 index 81eb70e389..0000000000 --- a/docs/reference/internal-utilities-structuredformat-taggedtextops-literals.html +++ /dev/null @@ -1,299 +0,0 @@ - - - - - Literals - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

Literals

-

- Namespace: Internal.Utilities.StructuredFormat
- Parent Module: TaggedTextOps -

-
-
- - - -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - arrow - -
- Signature: TaggedText
-
-
- -
- - comma - -
- Signature: TaggedText
-
-
- -
- - equals - -
- Signature: TaggedText
-
-
- -
- - leftBrace - -
- Signature: TaggedText
-
-
- -
- - leftBraceBar - -
- Signature: TaggedText
-
-
- -
- - leftBracket - -
- Signature: TaggedText
-
-
- -
- - leftParen - -
- Signature: TaggedText
-
-
- -
- - lineBreak - -
- Signature: TaggedText
-
-
- -
- - questionMark - -
- Signature: TaggedText
-
-
- -
- - rightBrace - -
- Signature: TaggedText
-
-
- -
- - rightBraceBar - -
- Signature: TaggedText
-
-
- -
- - rightBracket - -
- Signature: TaggedText
-
-
- -
- - rightParen - -
- Signature: TaggedText
-
-
- -
- - semicolon - -
- Signature: TaggedText
-
-
- -
- - space - -
- Signature: TaggedText
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/internal-utilities-structuredformat-taggedtextops.html b/docs/reference/internal-utilities-structuredformat-taggedtextops.html deleted file mode 100644 index f0e83f2dbb..0000000000 --- a/docs/reference/internal-utilities-structuredformat-taggedtextops.html +++ /dev/null @@ -1,499 +0,0 @@ - - - - - TaggedTextOps - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

TaggedTextOps

-

- Namespace: Internal.Utilities.StructuredFormat
-

-
-
- - -

Nested types and modules

-
- - - - - - - - - - -
ModuleDescription
- Literals - - -
- -
- -

Functions and values

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function or valueDescription
- - keywordFunctions - -
- Signature: Set<string>
-
-
- -
- - tag arg1 arg2 - -
- Signature: LayoutTag -> string -> TaggedText
-
-
- -
- - tagAlias(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagClass(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagDelegate(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagEnum(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagEvent(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagField(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagInterface(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagKeyword(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagLineBreak(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagLocal(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagMethod(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagModule(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagModuleBinding(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagNamespace(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagNumericLiteral(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagOperator(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagParameter(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagProperty(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagPunctuation(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagRecord(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagRecordField(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagSpace(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagStringLiteral(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagStruct(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagText(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagTypeParameter(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- - tagUnionCase(arg1) - -
- Signature: string -> TaggedText
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/internal-utilities-structuredformat-taggedtextwriter.html b/docs/reference/internal-utilities-structuredformat-taggedtextwriter.html deleted file mode 100644 index e035d18c90..0000000000 --- a/docs/reference/internal-utilities-structuredformat-taggedtextwriter.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - TaggedTextWriter - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

TaggedTextWriter

-

- - Namespace: Internal.Utilities.StructuredFormat
-

-
-
-

Instance members

- - - - - - - - - - - - - - -
Instance memberDescription
- - x.Write(t) - -
- Signature: t:TaggedText -> unit
- Modifiers: abstract
-
-
- -
- - x.WriteLine() - -
- Signature: unit -> unit
- Modifiers: abstract
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/microsoft-interactive-dependencymanager-assemblyresolutionprobe.html b/docs/reference/microsoft-interactive-dependencymanager-assemblyresolutionprobe.html deleted file mode 100644 index eab9d051dd..0000000000 --- a/docs/reference/microsoft-interactive-dependencymanager-assemblyresolutionprobe.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - AssemblyResolutionProbe - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

AssemblyResolutionProbe

-

- - Namespace: Microsoft.Interactive.DependencyManager
-

-
-

Signature for ResolutionProbe callback -host implements this, it's job is to return a list of assembly paths to probe.

- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Invoke() - -
- Signature: unit -> seq<string>
- Modifiers: abstract
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/microsoft-interactive-dependencymanager-assemblyresolvehandler.html b/docs/reference/microsoft-interactive-dependencymanager-assemblyresolvehandler.html deleted file mode 100644 index 24c035c913..0000000000 --- a/docs/reference/microsoft-interactive-dependencymanager-assemblyresolvehandler.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - AssemblyResolveHandler - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

AssemblyResolveHandler

-

- - Namespace: Microsoft.Interactive.DependencyManager
-

-
-

Handle Assembly resolution

- -
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(assemblyProbingPaths) - -
- Signature: assemblyProbingPaths:AssemblyResolutionProbe -> AssemblyResolveHandler
-
-
-

Construct a new DependencyProvider

- - -

CompiledName: .ctor

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/microsoft-interactive-dependencymanager-dependencyprovider.html b/docs/reference/microsoft-interactive-dependencymanager-dependencyprovider.html deleted file mode 100644 index 1a3fd1c8ac..0000000000 --- a/docs/reference/microsoft-interactive-dependencymanager-dependencyprovider.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - DependencyProvider - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

DependencyProvider

-

- - Namespace: Microsoft.Interactive.DependencyManager
-

-
-

Provides DependencyManagement functions. -Class is IDisposable

- -
-

Constructors

- - - - - - - - - - - - - - -
ConstructorDescription
- - new(nativeProbingRoots) - -
- Signature: nativeProbingRoots:NativeResolutionProbe -> DependencyProvider
-
-
-

Construct a new DependencyProvider

- - -

CompiledName: .ctor

-
- - new(...) - -
- Signature: (assemblyProbingPaths:AssemblyResolutionProbe * nativeProbingRoots:NativeResolutionProbe) -> DependencyProvider
-
-
-

Construct a new DependencyProvider

- - -

CompiledName: .ctor

-
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.CreatePackageManagerUnknownError(...) - -
- Signature: (seq<string> * string * string * ResolvingErrorReport) -> int * string
-
-
-

Returns a formatted error message for the host to present

- - -
- - x.RemoveDependencyManagerKey(...) - -
- Signature: (packageManagerKey:string * path:string) -> string
-
-
-

Remove the dependency mager with the specified key

- - -
- - x.Resolve(...) - -
- Signature: (packageManager:IDependencyManagerProvider * scriptExt:string * packageManagerTextLines:seq<string> * reportError:ResolvingErrorReport * executionTfm:string * executionRid:string * implicitIncludeDir:string * mainScriptName:string * fileName:string) -> IResolveDependenciesResult
-
-
-

Resolve reference for a list of package manager lines

- - -
- - x.TryFindDependencyManagerByKey(...) - -
- Signature: (compilerTools:seq<string> * outputDir:string * reportError:ResolvingErrorReport * key:string) -> IDependencyManagerProvider
-
-
-

Fetch a dependencymanager that supports a specific key

- - -
- - x.TryFindDependencyManagerInPath(...) - -
- Signature: (compilerTools:seq<string> * outputDir:string * reportError:ResolvingErrorReport * path:string) -> string * IDependencyManagerProvider
-
-
-

TryFindDependencyManagerInPath - given a #r "key:sometext" go and find a DependencyManager that satisfies the key

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/microsoft-interactive-dependencymanager-errorreporttype.html b/docs/reference/microsoft-interactive-dependencymanager-errorreporttype.html deleted file mode 100644 index d0ede82040..0000000000 --- a/docs/reference/microsoft-interactive-dependencymanager-errorreporttype.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - ErrorReportType - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ErrorReportType

-

- - Namespace: Microsoft.Interactive.DependencyManager
- - Attributes:
-[<RequireQualifiedAccess>]
- -
-

-
-

Todo describe this API

- -
-

Union Cases

- - - - - - - - - - - - - - -
Union CaseDescription
- - Error - -
- Signature:
-
-
- -
- - Warning - -
- Signature:
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/microsoft-interactive-dependencymanager-idependencymanagerprovider.html b/docs/reference/microsoft-interactive-dependencymanager-idependencymanagerprovider.html deleted file mode 100644 index c6fe9a5d79..0000000000 --- a/docs/reference/microsoft-interactive-dependencymanager-idependencymanagerprovider.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - IDependencyManagerProvider - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

IDependencyManagerProvider

-

- - Namespace: Microsoft.Interactive.DependencyManager
- - Attributes:
-[<AllowNullLiteral>]
- -
-

-
-

Wraps access to a DependencyManager implementation

- -
-

Instance members

- - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Key - -
- Signature: string
- Modifiers: abstract
-
-
-

Key that identifies the types of dependencies that this DependencyManager operates on -E.g -nuget: indicates that this DM is for nuget packages -paket: indicates that this DM is for paket scripts, which manage nuget packages, github source dependencies etc ...

- - -

CompiledName: get_Key

-
- - x.Name - -
- Signature: string
- Modifiers: abstract
-
-
-

Name of the dependency manager

- - -

CompiledName: get_Name

-
- - x.ResolveDependencies(...) - -
- Signature: (scriptDir:string * mainScriptName:string * scriptName:string * scriptExt:string * packageManagerTextLines:seq<string> * tfm:string * rid:string) -> IResolveDependenciesResult
- Modifiers: abstract
-
-
-

Resolve the dependencies, for the given set of arguments, go find the .dll references, scripts and additional include values.

- - -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/microsoft-interactive-dependencymanager-iresolvedependenciesresult.html b/docs/reference/microsoft-interactive-dependencymanager-iresolvedependenciesresult.html deleted file mode 100644 index 72a4f275c4..0000000000 --- a/docs/reference/microsoft-interactive-dependencymanager-iresolvedependenciesresult.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - - IResolveDependenciesResult - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

IResolveDependenciesResult

-

- - Namespace: Microsoft.Interactive.DependencyManager
-

-
-

The results of ResolveDependencies

- -
-

Instance members

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Instance memberDescription
- - x.Resolutions - -
- Signature: seq<string>
- Modifiers: abstract
-
-
-

The resolution paths

- - -

CompiledName: get_Resolutions

-
- - x.Roots - -
- Signature: seq<string>
- Modifiers: abstract
-
-
-

The roots to package directories

- - -

CompiledName: get_Roots

-
- - x.SourceFiles - -
- Signature: seq<string>
- Modifiers: abstract
-
-
-

The source code file paths

- - -

CompiledName: get_SourceFiles

-
- - x.StdError - -
- Signature: string array
- Modifiers: abstract
-
-
-

The resolution error log (process stderr)

- - -

CompiledName: get_StdError

-
- - x.StdOut - -
- Signature: string array
- Modifiers: abstract
-
-
-

The resolution output log

- - -

CompiledName: get_StdOut

-
- - x.Success - -
- Signature: bool
- Modifiers: abstract
-
-
-

Succeded?

- - -

CompiledName: get_Success

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/microsoft-interactive-dependencymanager-nativedllresolvehandler.html b/docs/reference/microsoft-interactive-dependencymanager-nativedllresolvehandler.html deleted file mode 100644 index 8f3379a863..0000000000 --- a/docs/reference/microsoft-interactive-dependencymanager-nativedllresolvehandler.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - NativeDllResolveHandler - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NativeDllResolveHandler

-

- - Namespace: Microsoft.Interactive.DependencyManager
-

-
-
-

Constructors

- - - - - - - - - - -
ConstructorDescription
- - new(nativeProbingRoots) - -
- Signature: nativeProbingRoots:NativeResolutionProbe -> NativeDllResolveHandler
-
-
-

Construct a new DependencyProvider

- - -

CompiledName: .ctor

-
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/microsoft-interactive-dependencymanager-nativeresolutionprobe.html b/docs/reference/microsoft-interactive-dependencymanager-nativeresolutionprobe.html deleted file mode 100644 index b15d8e00b1..0000000000 --- a/docs/reference/microsoft-interactive-dependencymanager-nativeresolutionprobe.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - NativeResolutionProbe - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

NativeResolutionProbe

-

- - Namespace: Microsoft.Interactive.DependencyManager
-

-
-

Signature for Native library resolution probe callback -host implements this, it's job is to return a list of package roots to probe.

- -
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Invoke() - -
- Signature: unit -> seq<string>
- Modifiers: abstract
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/reference/microsoft-interactive-dependencymanager-resolvingerrorreport.html b/docs/reference/microsoft-interactive-dependencymanager-resolvingerrorreport.html deleted file mode 100644 index 7057241350..0000000000 --- a/docs/reference/microsoft-interactive-dependencymanager-resolvingerrorreport.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - ResolvingErrorReport - F# Compiler Services - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
- - -

ResolvingErrorReport

-

- - Namespace: Microsoft.Interactive.DependencyManager
-

-
-
-

Instance members

- - - - - - - - - - -
Instance memberDescription
- - x.Invoke(arg1, arg2, arg3) - -
- Signature: (ErrorReportType * int * string) -> unit
- Modifiers: abstract
-
-
- -
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/symbols.html b/docs/symbols.html deleted file mode 100644 index ec2ba62aef..0000000000 --- a/docs/symbols.html +++ /dev/null @@ -1,513 +0,0 @@ - - - - - Compiler Services: Working with symbols - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Compiler Services: Working with symbols

-

This tutorial demonstrates how to work with symbols provided by the F# compiler. See also project wide analysis -for information on symbol references.

-
-

NOTE: The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published.

-
-

As usual we start by referencing FSharp.Compiler.Service.dll, opening the relevant namespace and creating an instance -of FSharpChecker:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-
// Reference F# compiler API
-#r "FSharp.Compiler.Service.dll"
-
-open System
-open System.IO
-open FSharp.Compiler.SourceCodeServices
-open FSharp.Compiler.Text
-
-// Create an interactive checker instance 
-let checker = FSharpChecker.Create()
-
-

We now perform type checking on the specified input:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-
let parseAndTypeCheckSingleFile (file, input) = 
-    // Get context representing a stand-alone (script) file
-    let projOptions, errors = 
-        checker.GetProjectOptionsFromScript(file, input)
-        |> Async.RunSynchronously
-
-    let parseFileResults, checkFileResults = 
-        checker.ParseAndCheckFileInProject(file, 0, input, projOptions) 
-        |> Async.RunSynchronously
-
-    // Wait until type checking succeeds (or 100 attempts)
-    match checkFileResults with
-    | FSharpCheckFileAnswer.Succeeded(res) -> parseFileResults, res
-    | res -> failwithf "Parsing did not finish... (%A)" res
-
-let file = "/home/user/Test.fsx"
-
-

Getting resolved signature information about the file

-

After type checking a file, you can access the inferred signature of a project up to and including the -checking of the given file through the PartialAssemblySignature property of the TypeCheckResults.

-

The full signature information is available for modules, types, attributes, members, values, functions, -union cases, record types, units of measure and other F# language constructs.

-

The typed expression trees are also available, see typed tree tutorial.

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-
let input2 = 
-      """
-[<System.CLSCompliant(true)>]
-let foo(x, y) = 
-    let msg = String.Concat("Hello"," ","world")
-    if true then 
-        printfn "x = %d, y = %d" x y 
-        printfn "%s" msg
-
-type C() = 
-    member x.P = 1
-      """
-let parseFileResults, checkFileResults = 
-    parseAndTypeCheckSingleFile(file, SourceText.ofString input2)
-
-

Now get the partial assembly signature for the code:

- - - -
1: 
-2: 
-3: 
-4: 
-
let partialAssemblySignature = checkFileResults.PartialAssemblySignature
-    
-partialAssemblySignature.Entities.Count = 1  // one entity
-    
-
-

Now get the entity that corresponds to the module containing the code:

- - - -
1: 
-2: 
-3: 
-
let moduleEntity = partialAssemblySignature.Entities.[0]
-
-moduleEntity.DisplayName = "Test"
-
-

Now get the entity that corresponds to the type definition in the code:

- - - -
1: 
-
let classEntity = moduleEntity.NestedEntities.[0]
-
-

Now get the value that corresponds to the function defined in the code:

- - - -
1: 
-
let fnVal = moduleEntity.MembersFunctionsAndValues.[0]
-
-

Now look around at the properties describing the function value. All of the following evaluate to true:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-21: 
-22: 
-23: 
-
fnVal.Attributes.Count = 1
-fnVal.CurriedParameterGroups.Count // 1
-fnVal.CurriedParameterGroups.[0].Count // 2
-fnVal.CurriedParameterGroups.[0].[0].Name // "x"
-fnVal.CurriedParameterGroups.[0].[1].Name // "y"
-fnVal.DeclarationLocation.StartLine // 3
-fnVal.DisplayName // "foo"
-fnVal.DeclaringEntity.Value.DisplayName // "Test"
-fnVal.DeclaringEntity.Value.DeclarationLocation.StartLine // 1
-fnVal.GenericParameters.Count // 0
-fnVal.InlineAnnotation // FSharpInlineAnnotation.OptionalInline
-fnVal.IsActivePattern // false
-fnVal.IsCompilerGenerated // false
-fnVal.IsDispatchSlot // false
-fnVal.IsExtensionMember // false
-fnVal.IsPropertyGetterMethod // false
-fnVal.IsImplicitConstructor // false
-fnVal.IsInstanceMember // false
-fnVal.IsMember // false
-fnVal.IsModuleValueOrMember // true
-fnVal.IsMutable // false
-fnVal.IsPropertySetterMethod // false
-fnVal.IsTypeFunction // false
-
-

Now look at the type of the function if used as a first class value. (Aside: the CurriedParameterGroups property contains -more information like the names of the arguments.)

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
fnVal.FullType // int * int -> unit
-fnVal.FullType.IsFunctionType // int * int -> unit
-fnVal.FullType.GenericArguments.[0] // int * int 
-fnVal.FullType.GenericArguments.[0].IsTupleType // int * int 
-let argTy1 = fnVal.FullType.GenericArguments.[0].GenericArguments.[0]
-
-argTy1.TypeDefinition.DisplayName // int
-
-

OK, so we got an object representation of the type int * int -> unit, and we have seen the first 'int'. We can find out more about the -type 'int' as follows, determining that it is a named type, which is an F# type abbreviation, type int = int32:

- - - -
1: 
-2: 
-
argTy1.HasTypeDefinition
-argTy1.TypeDefinition.IsFSharpAbbreviation // "int"
-
-

We can now look at the right-hand-side of the type abbreviation, which is the type int32:

- - - -
1: 
-2: 
-3: 
-
let argTy1b = argTy1.TypeDefinition.AbbreviatedType
-argTy1b.TypeDefinition.Namespace // Some "Microsoft.FSharp.Core" 
-argTy1b.TypeDefinition.CompiledName // "int32" 
-
-

Again we can now look through the type abbreviation type int32 = System.Int32 to get the -full information about the type:

- - - -
1: 
-2: 
-3: 
-
let argTy1c = argTy1b.TypeDefinition.AbbreviatedType
-argTy1c.TypeDefinition.Namespace // Some "SystemCore" 
-argTy1c.TypeDefinition.CompiledName // "Int32" 
-
-

The type checking results for a file also contain information extracted from the project (or script) options -used in the compilation, called the ProjectContext:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
let projectContext = checkFileResults.ProjectContext
-    
-for assembly in projectContext.GetReferencedAssemblies() do
-    match assembly.FileName with 
-    | None -> printfn "compilation referenced an assembly without a file" 
-    | Some s -> printfn "compilation references assembly '%s'" s
-    
-
-

Notes:

-
    -
  • If incomplete code is present, some or all of the attributes may not be quite as expected.
  • -
  • -If some assembly references are missing (which is actually very, very common), then 'IsUnresolved' may -be true on values, members and/or entities related to external assemblies. You should be sure to make your -code robust against IsUnresolved exceptions. -
  • -
-

Getting symbolic information about whole projects

-

To check whole projects, create a checker, then call parseAndCheckScript. In this case, we just check -the project for a single script. By specifying a different "projOptions" you can create -a specification of a larger project.

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-
let parseAndCheckScript (file, input) = 
-    let projOptions, errors = 
-        checker.GetProjectOptionsFromScript(file, input)
-        |> Async.RunSynchronously
-
-    checker.ParseAndCheckProject(projOptions) |> Async.RunSynchronously
-
-

Now do it for a particular input:

- - - -
1: 
-2: 
-3: 
-4: 
-
let tmpFile = Path.ChangeExtension(System.IO.Path.GetTempFileName() , "fs")
-File.WriteAllText(tmpFile, input2)
-
-let projectResults = parseAndCheckScript(tmpFile, SourceText.ofString input2)
-
-

Now look at the results:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-
let assemblySig = projectResults.AssemblySignature
-    
-assemblySig.Entities.Count = 1  // one entity
-assemblySig.Entities.[0].Namespace  // one entity
-assemblySig.Entities.[0].DisplayName // "Tmp28D0"
-assemblySig.Entities.[0].MembersFunctionsAndValues.Count // 1 
-assemblySig.Entities.[0].MembersFunctionsAndValues.[0].DisplayName // "foo" 
-    
-
- -
namespace System
-
namespace System.IO
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp

--------------------
type FSharpAttribute =
  member Format : context:FSharpDisplayContext -> string
  member AttributeType : FSharpEntity
  member ConstructorArguments : IList<FSharpType * obj>
  member IsUnresolved : bool
  member NamedArguments : IList<FSharpType * string * bool * obj>
-
namespace FSharp.Compiler.Text
-
val checker : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
val parseAndTypeCheckSingleFile : file:string * input:ISourceText -> FSharpParseFileResults * FSharpCheckFileResults
-
val file : string
-
val input : ISourceText
-
val projOptions : FSharpProjectOptions
-
val errors : FSharpErrorInfo list
-
member FSharpChecker.GetProjectOptionsFromScript : filename:string * sourceText:ISourceText * ?previewEnabled:bool * ?loadedTimeStamp:DateTime * ?otherFlags:string [] * ?useFsiAuxLib:bool * ?useSdkRefs:bool * ?assumeDotNetFramework:bool * ?extraProjectInfo:obj * ?optionsStamp:int64 * ?userOpName:string -> Async<FSharpProjectOptions * FSharpErrorInfo list>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
val parseFileResults : FSharpParseFileResults
-
val checkFileResults : FSharpCheckFileAnswer
-
member FSharpChecker.ParseAndCheckFileInProject : filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileAnswer>
-
type FSharpCheckFileAnswer =
  | Aborted
  | Succeeded of FSharpCheckFileResults
-
union case FSharpCheckFileAnswer.Succeeded: FSharpCheckFileResults -> FSharpCheckFileAnswer
-
val res : FSharpCheckFileResults
-
val res : FSharpCheckFileAnswer
-
val failwithf : format:Printf.StringFormat<'T,'Result> -> 'T
-
val input2 : string
-
val checkFileResults : FSharpCheckFileResults
-
module SourceText

from FSharp.Compiler.Text
-
val ofString : string -> ISourceText
-
val partialAssemblySignature : FSharpAssemblySignature
-
property FSharpCheckFileResults.PartialAssemblySignature: FSharpAssemblySignature with get
-
property FSharpAssemblySignature.Entities: Collections.Generic.IList<FSharpEntity> with get
-
property Collections.Generic.ICollection.Count: int with get
-
val moduleEntity : FSharpEntity
-
property FSharpEntity.DisplayName: string with get
-
val classEntity : FSharpEntity
-
property FSharpEntity.NestedEntities: Collections.Generic.IList<FSharpEntity> with get
-
val fnVal : FSharpMemberOrFunctionOrValue
-
property FSharpEntity.MembersFunctionsAndValues: Collections.Generic.IList<FSharpMemberOrFunctionOrValue> with get
-
property FSharpMemberOrFunctionOrValue.Attributes: Collections.Generic.IList<FSharpAttribute> with get
-
property FSharpMemberOrFunctionOrValue.CurriedParameterGroups: Collections.Generic.IList<Collections.Generic.IList<FSharpParameter>> with get
-
property FSharpMemberOrFunctionOrValue.DeclarationLocation: FSharp.Compiler.Range.range with get
-
property FSharp.Compiler.Range.range.StartLine: int with get
-
property FSharpMemberOrFunctionOrValue.DisplayName: string with get
-
property FSharpMemberOrFunctionOrValue.DeclaringEntity: FSharpEntity option with get
-
property Option.Value: FSharpEntity with get
-
property FSharpEntity.DeclarationLocation: FSharp.Compiler.Range.range with get
-
property FSharpMemberOrFunctionOrValue.GenericParameters: Collections.Generic.IList<FSharpGenericParameter> with get
-
property FSharpMemberOrFunctionOrValue.InlineAnnotation: FSharpInlineAnnotation with get
-
property FSharpMemberOrFunctionOrValue.IsActivePattern: bool with get
-
property FSharpMemberOrFunctionOrValue.IsCompilerGenerated: bool with get
-
property FSharpMemberOrFunctionOrValue.IsDispatchSlot: bool with get
-
property FSharpMemberOrFunctionOrValue.IsExtensionMember: bool with get
-
property FSharpMemberOrFunctionOrValue.IsPropertyGetterMethod: bool with get
-
property FSharpMemberOrFunctionOrValue.IsImplicitConstructor: bool with get
-
property FSharpMemberOrFunctionOrValue.IsInstanceMember: bool with get
-
property FSharpMemberOrFunctionOrValue.IsMember: bool with get
-
property FSharpMemberOrFunctionOrValue.IsModuleValueOrMember: bool with get
-
property FSharpMemberOrFunctionOrValue.IsMutable: bool with get
-
property FSharpMemberOrFunctionOrValue.IsPropertySetterMethod: bool with get
-
property FSharpMemberOrFunctionOrValue.IsTypeFunction: bool with get
-
property FSharpMemberOrFunctionOrValue.FullType: FSharpType with get
-
property FSharpType.IsFunctionType: bool with get
-
property FSharpType.GenericArguments: Collections.Generic.IList<FSharpType> with get
-
val argTy1 : FSharpType
-
property FSharpType.TypeDefinition: FSharpEntity with get
-
property FSharpType.HasTypeDefinition: bool with get
-
property FSharpEntity.IsFSharpAbbreviation: bool with get
-
val argTy1b : FSharpType
-
property FSharpEntity.AbbreviatedType: FSharpType with get
-
property FSharpEntity.Namespace: string option with get
-
property FSharpEntity.CompiledName: string with get
-
val argTy1c : FSharpType
-
val projectContext : FSharpProjectContext
-
property FSharpCheckFileResults.ProjectContext: FSharpProjectContext with get
-
val assembly : FSharpAssembly
-
member FSharpProjectContext.GetReferencedAssemblies : unit -> FSharpAssembly list
-
property FSharpAssembly.FileName: string option with get
-
union case Option.None: Option<'T>
-
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
-
union case Option.Some: Value: 'T -> Option<'T>
-
val s : string
-
val parseAndCheckScript : file:string * input:ISourceText -> FSharpCheckProjectResults
-
member FSharpChecker.ParseAndCheckProject : options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpCheckProjectResults>
-
val tmpFile : string
-
type Path =
  static val DirectorySeparatorChar : char
  static val AltDirectorySeparatorChar : char
  static val VolumeSeparatorChar : char
  static val PathSeparator : char
  static val InvalidPathChars : char[]
  static member ChangeExtension : path:string * extension:string -> string
  static member Combine : [<ParamArray>] paths:string[] -> string + 3 overloads
  static member GetDirectoryName : path:string -> string + 1 overload
  static member GetExtension : path:string -> string + 1 overload
  static member GetFileName : path:string -> string + 1 overload
  ...
-
Path.ChangeExtension(path: string, extension: string) : string
-
Path.GetTempFileName() : string
-
type File =
  static member AppendAllLines : path:string * contents:IEnumerable<string> -> unit + 1 overload
  static member AppendAllLinesAsync : path:string * contents:IEnumerable<string> * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendAllText : path:string * contents:string -> unit + 1 overload
  static member AppendAllTextAsync : path:string * contents:string * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendText : path:string -> StreamWriter
  static member Copy : sourceFileName:string * destFileName:string -> unit + 1 overload
  static member Create : path:string -> FileStream + 2 overloads
  static member CreateText : path:string -> StreamWriter
  static member Decrypt : path:string -> unit
  static member Delete : path:string -> unit
  ...
-
File.WriteAllText(path: string, contents: string) : unit
File.WriteAllText(path: string, contents: string, encoding: Text.Encoding) : unit
-
val projectResults : FSharpCheckProjectResults
-
val assemblySig : FSharpAssemblySignature
-
property FSharpCheckProjectResults.AssemblySignature: FSharpAssemblySignature with get
-
union case ScopeKind.Namespace: ScopeKind
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/tokenizer.html b/docs/tokenizer.html deleted file mode 100644 index cc8c87ca26..0000000000 --- a/docs/tokenizer.html +++ /dev/null @@ -1,282 +0,0 @@ - - - - - Compiler Services: Using the F# tokenizer - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Compiler Services: Using the F# tokenizer

-

This tutorial demonstrates how to call the F# language tokenizer. Given F# -source code, the tokenizer generates a list of source code lines that contain -information about tokens on each line. For each token, you can get the type -of the token, exact location as well as color kind of the token (keyword, -identifier, number, operator, etc.).

-
-

NOTE: The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published

-
-

Creating the tokenizer

-

To use the tokenizer, reference FSharp.Compiler.Service.dll and open the -SourceCodeServices namespace:

- - - -
1: 
-2: 
-
#r "FSharp.Compiler.Service.dll"
-open FSharp.Compiler.SourceCodeServices
-
-

Now you can create an instance of FSharpSourceTokenizer. The class takes two -arguments - the first is the list of defined symbols and the second is the -file name of the source code. The defined symbols are required because the -tokenizer handles #if directives. The file name is required only to specify -locations of the source code (and it does not have to exist):

- - - -
1: 
-
let sourceTok = FSharpSourceTokenizer([], Some "C:\\test.fsx")
-
-

Using the sourceTok object, we can now (repeatedly) tokenize lines of -F# source code.

-

Tokenizing F# code

-

The tokenizer operates on individual lines rather than on the entire source -file. After getting a token, the tokenizer also returns new state (as int64 value). -This can be used to tokenize F# code more efficiently. When source code changes, -you do not need to re-tokenize the entire file - only the parts that have changed.

-

Tokenizing single line

-

To tokenize a single line, we create a FSharpLineTokenizer by calling CreateLineTokenizer -on the FSharpSourceTokenizer object that we created earlier:

- - - -
1: 
-
let tokenizer = sourceTok.CreateLineTokenizer("let answer=42")
-
-

Now, we can write a simple recursive function that calls ScanToken on the tokenizer -until it returns None (indicating the end of line). When the function succeeds, it -returns FSharpTokenInfo object with all the interesting details:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-9: 
-
/// Tokenize a single line of F# code
-let rec tokenizeLine (tokenizer:FSharpLineTokenizer) state =
-  match tokenizer.ScanToken(state) with
-  | Some tok, state ->
-      // Print token name
-      printf "%s " tok.TokenName
-      // Tokenize the rest, in the new state
-      tokenizeLine tokenizer state
-  | None, state -> state
-
-

The function returns the new state, which is needed if you need to tokenize multiple lines -and an earlier line ends with a multi-line comment. As an initial state, we can use 0L:

- - - -
1: 
-
tokenizeLine tokenizer FSharpTokenizerLexState.Initial
-
-

The result is a sequence of tokens with names LET, WHITESPACE, IDENT, EQUALS and INT32. -There is a number of interesting properties on FSharpTokenInfo including:

-
    -
  • -CharClass and ColorClass return information about the token category that -can be used for colorizing F# code. -
  • -
  • LeftColumn and RightColumn return the location of the token inside the line.
  • -
  • TokenName is the name of the token (as defined in the F# lexer)
  • -
-

Note that the tokenizer is stateful - if you want to tokenize single line multiple times, -you need to call CreateLineTokenizer again.

-

Tokenizing sample code

-

To run the tokenizer on a longer sample code or an entire file, you need to read the -sample input as a collection of string values:

- - - -
1: 
-2: 
-3: 
-4: 
-
let lines = """
-  // Hello world
-  let hello() =
-     printfn "Hello world!" """.Split('\r','\n')
-
-

To tokenize multi-line input, we again need a recursive function that keeps the current -state. The following function takes the lines as a list of strings (together with line number -and the current state). We create a new tokenizer for each line and call tokenizeLine -using the state from the end of the previous line:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-
/// Print token names for multiple lines of code
-let rec tokenizeLines state count lines = 
-  match lines with
-  | line::lines ->
-      // Create tokenizer & tokenize single line
-      printfn "\nLine %d" count
-      let tokenizer = sourceTok.CreateLineTokenizer(line)
-      let state = tokenizeLine tokenizer state
-      // Tokenize the rest using new state
-      tokenizeLines state (count+1) lines
-  | [] -> ()
-
-

The function simply calls tokenizeLine (defined earlier) to print the names of all -the tokens on each line. We can call it on the previous input with 0L as the initial -state and 1 as the number of the first line:

- - - -
1: 
-2: 
-3: 
-
lines
-|> List.ofSeq
-|> tokenizeLines FSharpTokenizerLexState.Initial 1
-
-

Ignoring some unimportant details (like whitespace at the beginning of each line and -the first line which is just whitespace), the code generates the following output:

- -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-
Line 1
-  LINE_COMMENT LINE_COMMENT (...) LINE_COMMENT 
-Line 2
-  LET WHITESPACE IDENT LPAREN RPAREN WHITESPACE EQUALS 
-Line 3
-  IDENT WHITESPACE STRING_TEXT (...) STRING_TEXT STRING 
-
-

It is worth noting that the tokenizer yields multiple LINE_COMMENT tokens and multiple -STRING_TEXT tokens for each single comment or string (roughly, one for each word), so -if you want to get the entire text of a comment/string, you need to concatenate the -tokens.

- -
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
val sourceTok : FSharpSourceTokenizer
-
Multiple items
type FSharpSourceTokenizer =
  new : conditionalDefines:string list * fileName:string option -> FSharpSourceTokenizer
  member CreateBufferTokenizer : bufferFiller:(char [] * int * int -> int) -> FSharpLineTokenizer
  member CreateLineTokenizer : lineText:string -> FSharpLineTokenizer

--------------------
new : conditionalDefines:string list * fileName:string option -> FSharpSourceTokenizer
-
union case Option.Some: Value: 'T -> Option<'T>
-
val tokenizer : FSharpLineTokenizer
-
member FSharpSourceTokenizer.CreateLineTokenizer : lineText:string -> FSharpLineTokenizer
-
val tokenizeLine : tokenizer:FSharpLineTokenizer -> state:FSharpTokenizerLexState -> FSharpTokenizerLexState


 Tokenize a single line of F# code
-
type FSharpLineTokenizer =
  member ScanToken : lexState:FSharpTokenizerLexState -> FSharpTokenInfo option * FSharpTokenizerLexState
  static member ColorStateOfLexState : FSharpTokenizerLexState -> FSharpTokenizerColorState
  static member LexStateOfColorState : FSharpTokenizerColorState -> FSharpTokenizerLexState
-
[<Struct>]
val state : FSharpTokenizerLexState
-
member FSharpLineTokenizer.ScanToken : lexState:FSharpTokenizerLexState -> FSharpTokenInfo option * FSharpTokenizerLexState
-
val tok : FSharpTokenInfo
-
val printf : format:Printf.TextWriterFormat<'T> -> 'T
-
FSharpTokenInfo.TokenName: string
-
union case Option.None: Option<'T>
-
[<Struct>]
type FSharpTokenizerLexState =
  { PosBits: int64
    OtherBits: int64 }
    member Equals : FSharpTokenizerLexState -> bool
    static member Initial : FSharpTokenizerLexState
-
property FSharpTokenizerLexState.Initial: FSharpTokenizerLexState with get
-
val lines : string []
-
val tokenizeLines : state:FSharpTokenizerLexState -> count:int -> lines:string list -> unit


 Print token names for multiple lines of code
-
val count : int
-
val lines : string list
-
val line : string
-
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
-
Multiple items
module List

from Microsoft.FSharp.Collections

--------------------
type List<'T> =
  | ( [] )
  | ( :: ) of Head: 'T * Tail: 'T list
    interface IReadOnlyList<'T>
    interface IReadOnlyCollection<'T>
    interface IEnumerable
    interface IEnumerable<'T>
    member GetSlice : startIndex:int option * endIndex:int option -> 'T list
    member Head : 'T
    member IsEmpty : bool
    member Item : index:int -> 'T with get
    member Length : int
    member Tail : 'T list
    ...
-
val ofSeq : source:seq<'T> -> 'T list
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/typedtree.html b/docs/typedtree.html deleted file mode 100644 index abc00a5c88..0000000000 --- a/docs/typedtree.html +++ /dev/null @@ -1,743 +0,0 @@ - - - - - Compiler Services: Processing typed expression tree - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Compiler Services: Processing typed expression tree

-

This tutorial demonstrates how to get the checked, typed expressions tree (TAST) -for F# code and how to walk over the tree.

-

This can be used for creating tools such as source code analyzers and refactoring tools. -You can also combine the information with the API available -from symbols.

-
-

NOTE: The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published

-
-

Getting checked expressions

-

To access the type-checked, resolved expressions, you need to create an instance of InteractiveChecker.

-

To use the interactive checker, reference FSharp.Compiler.Service.dll and open the -SourceCodeServices namespace:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-
#r "FSharp.Compiler.Service.dll"
-open System
-open System.IO
-open FSharp.Compiler.SourceCodeServices
-open FSharp.Compiler.Text
-
-

Checking code

-

We first parse and check some code as in the symbols tutorial. -One difference is that we set keepAssemblyContents to true.

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-
// Create an interactive checker instance 
-let checker = FSharpChecker.Create(keepAssemblyContents=true)
-
-let parseAndCheckSingleFile (input) = 
-    let file = Path.ChangeExtension(System.IO.Path.GetTempFileName(), "fsx")  
-    File.WriteAllText(file, input)
-    // Get context representing a stand-alone (script) file
-    let projOptions, _errors = 
-        checker.GetProjectOptionsFromScript(file, SourceText.ofString input)
-        |> Async.RunSynchronously
-
-    let fprojOptions = projOptions
-
-    checker.ParseAndCheckProject (fprojOptions)
-    |> Async.RunSynchronously
-
-

Getting the expressions

-

After type checking a file, you can access the declarations and contents of the assembly, including expressions:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-
let input2 = 
-      """
-module MyLibrary 
-
-open System
-
-let foo(x, y) = 
-    let msg = String.Concat("Hello", " ", "world")
-    if msg.Length > 10 then 
-        10 
-    else 
-        20
-
-type MyClass() = 
-    member x.MyMethod() = 1
-      """
-let checkProjectResults = 
-    parseAndCheckSingleFile(input2)
-
-checkProjectResults.Errors // should be empty
-
-

Checked assemblies are made up of a series of checked implementation files. The "file" granularity -matters in F# because initialization actions are triggered at the granularity of files. -In this case there is only one implementation file in the project:

- - - -
1: 
-
let checkedFile = checkProjectResults.AssemblyContents.ImplementationFiles.[0]
-
-

Checked assemblies are made up of a series of checked implementation files. The "file" granularity -matters in F# because initialization actions are triggered at the granularity of files. -In this case there is only one implementation file in the project:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-
let rec printDecl prefix d = 
-    match d with 
-    | FSharpImplementationFileDeclaration.Entity (e, subDecls) -> 
-        printfn "%sEntity %s was declared and contains %d sub-declarations" prefix e.CompiledName subDecls.Length
-        for subDecl in subDecls do 
-            printDecl (prefix+"    ") subDecl
-    | FSharpImplementationFileDeclaration.MemberOrFunctionOrValue(v, vs, e) -> 
-        printfn "%sMember or value %s was declared" prefix  v.CompiledName
-    | FSharpImplementationFileDeclaration.InitAction(e) -> 
-        printfn "%sA top-level expression was declared" prefix 
-
-
-for d in checkedFile.Declarations do 
-   printDecl "" d
-
-// Entity MyLibrary was declared and contains 4 sub-declarations
-//     Member or value foo was declared
-//     Entity MyClass was declared and contains 0 sub-declarations
-//     Member or value .ctor was declared
-//     Member or value MyMethod was declared
-
-

As can be seen, the only declaration in the implementation file is that of the module MyLibrary, which -contains fours sub-declarations.

-
-

As an aside, one peculiarity here is that the member declarations (e.g. the "MyMethod" member) are returned as part of the containing module entity, not as part of their class. -Note that the class constructor is returned as a separate declaration. The class type definition has been "split" into a constructor and the other declarations.

-
- - - -
1: 
-2: 
-3: 
-4: 
-
let myLibraryEntity, myLibraryDecls =    
-   match checkedFile.Declarations.[0] with 
-   | FSharpImplementationFileDeclaration.Entity (e, subDecls) -> (e, subDecls)
-   | _ -> failwith "unexpected"
-
-

What about the expressions, for example the body of function "foo"? Let's find it:

- - - -
1: 
-2: 
-3: 
-4: 
-
let (fooSymbol, fooArgs, fooExpression) = 
-    match myLibraryDecls.[0] with 
-    | FSharpImplementationFileDeclaration.MemberOrFunctionOrValue(v, vs, e) -> (v, vs, e)
-    | _ -> failwith "unexpected"
-
-

Here 'fooSymbol' is a symbol associated with the declaration of 'foo', -'fooArgs' represents the formal arguments to the 'foo' function, and 'fooExpression' -is an expression for the implementation of the 'foo' function.

-

Once you have an expression, you can work with it much like an F# quotation. For example, -you can find its declaration range and its type:

- - - -
1: 
-2: 
-
fooExpression.Type  // shows that the return type of the body expression is 'int'
-fooExpression.Range  // shows the declaration range of the expression implementing 'foo'
-
-

Walking over expressions

-

Expressions are analyzed using active patterns, much like F# quotations. -Here is a generic expression visitor:

- - - -
  1: 
-  2: 
-  3: 
-  4: 
-  5: 
-  6: 
-  7: 
-  8: 
-  9: 
- 10: 
- 11: 
- 12: 
- 13: 
- 14: 
- 15: 
- 16: 
- 17: 
- 18: 
- 19: 
- 20: 
- 21: 
- 22: 
- 23: 
- 24: 
- 25: 
- 26: 
- 27: 
- 28: 
- 29: 
- 30: 
- 31: 
- 32: 
- 33: 
- 34: 
- 35: 
- 36: 
- 37: 
- 38: 
- 39: 
- 40: 
- 41: 
- 42: 
- 43: 
- 44: 
- 45: 
- 46: 
- 47: 
- 48: 
- 49: 
- 50: 
- 51: 
- 52: 
- 53: 
- 54: 
- 55: 
- 56: 
- 57: 
- 58: 
- 59: 
- 60: 
- 61: 
- 62: 
- 63: 
- 64: 
- 65: 
- 66: 
- 67: 
- 68: 
- 69: 
- 70: 
- 71: 
- 72: 
- 73: 
- 74: 
- 75: 
- 76: 
- 77: 
- 78: 
- 79: 
- 80: 
- 81: 
- 82: 
- 83: 
- 84: 
- 85: 
- 86: 
- 87: 
- 88: 
- 89: 
- 90: 
- 91: 
- 92: 
- 93: 
- 94: 
- 95: 
- 96: 
- 97: 
- 98: 
- 99: 
-100: 
-
let rec visitExpr f (e:FSharpExpr) = 
-    f e
-    match e with 
-    | BasicPatterns.AddressOf(lvalueExpr) -> 
-        visitExpr f lvalueExpr
-    | BasicPatterns.AddressSet(lvalueExpr, rvalueExpr) -> 
-        visitExpr f lvalueExpr; visitExpr f rvalueExpr
-    | BasicPatterns.Application(funcExpr, typeArgs, argExprs) -> 
-        visitExpr f funcExpr; visitExprs f argExprs
-    | BasicPatterns.Call(objExprOpt, memberOrFunc, typeArgs1, typeArgs2, argExprs) -> 
-        visitObjArg f objExprOpt; visitExprs f argExprs
-    | BasicPatterns.Coerce(targetType, inpExpr) -> 
-        visitExpr f inpExpr
-    | BasicPatterns.FastIntegerForLoop(startExpr, limitExpr, consumeExpr, isUp) -> 
-        visitExpr f startExpr; visitExpr f limitExpr; visitExpr f consumeExpr
-    | BasicPatterns.ILAsm(asmCode, typeArgs, argExprs) -> 
-        visitExprs f argExprs
-    | BasicPatterns.ILFieldGet (objExprOpt, fieldType, fieldName) -> 
-        visitObjArg f objExprOpt
-    | BasicPatterns.ILFieldSet (objExprOpt, fieldType, fieldName, valueExpr) -> 
-        visitObjArg f objExprOpt
-    | BasicPatterns.IfThenElse (guardExpr, thenExpr, elseExpr) -> 
-        visitExpr f guardExpr; visitExpr f thenExpr; visitExpr f elseExpr
-    | BasicPatterns.Lambda(lambdaVar, bodyExpr) -> 
-        visitExpr f bodyExpr
-    | BasicPatterns.Let((bindingVar, bindingExpr), bodyExpr) -> 
-        visitExpr f bindingExpr; visitExpr f bodyExpr
-    | BasicPatterns.LetRec(recursiveBindings, bodyExpr) -> 
-        List.iter (snd >> visitExpr f) recursiveBindings; visitExpr f bodyExpr
-    | BasicPatterns.NewArray(arrayType, argExprs) -> 
-        visitExprs f argExprs
-    | BasicPatterns.NewDelegate(delegateType, delegateBodyExpr) -> 
-        visitExpr f delegateBodyExpr
-    | BasicPatterns.NewObject(objType, typeArgs, argExprs) -> 
-        visitExprs f argExprs
-    | BasicPatterns.NewRecord(recordType, argExprs) ->  
-        visitExprs f argExprs
-    | BasicPatterns.NewAnonRecord(recordType, argExprs) ->  
-        visitExprs f argExprs
-    | BasicPatterns.NewTuple(tupleType, argExprs) -> 
-        visitExprs f argExprs
-    | BasicPatterns.NewUnionCase(unionType, unionCase, argExprs) -> 
-        visitExprs f argExprs
-    | BasicPatterns.Quote(quotedExpr) -> 
-        visitExpr f quotedExpr
-    | BasicPatterns.FSharpFieldGet(objExprOpt, recordOrClassType, fieldInfo) -> 
-        visitObjArg f objExprOpt
-    | BasicPatterns.AnonRecordGet(objExpr, recordOrClassType, fieldInfo) -> 
-        visitExpr f objExpr
-    | BasicPatterns.FSharpFieldSet(objExprOpt, recordOrClassType, fieldInfo, argExpr) -> 
-        visitObjArg f objExprOpt; visitExpr f argExpr
-    | BasicPatterns.Sequential(firstExpr, secondExpr) -> 
-        visitExpr f firstExpr; visitExpr f secondExpr
-    | BasicPatterns.TryFinally(bodyExpr, finalizeExpr) -> 
-        visitExpr f bodyExpr; visitExpr f finalizeExpr
-    | BasicPatterns.TryWith(bodyExpr, _, _, catchVar, catchExpr) -> 
-        visitExpr f bodyExpr; visitExpr f catchExpr
-    | BasicPatterns.TupleGet(tupleType, tupleElemIndex, tupleExpr) -> 
-        visitExpr f tupleExpr
-    | BasicPatterns.DecisionTree(decisionExpr, decisionTargets) -> 
-        visitExpr f decisionExpr; List.iter (snd >> visitExpr f) decisionTargets
-    | BasicPatterns.DecisionTreeSuccess (decisionTargetIdx, decisionTargetExprs) -> 
-        visitExprs f decisionTargetExprs
-    | BasicPatterns.TypeLambda(genericParam, bodyExpr) -> 
-        visitExpr f bodyExpr
-    | BasicPatterns.TypeTest(ty, inpExpr) -> 
-        visitExpr f inpExpr
-    | BasicPatterns.UnionCaseSet(unionExpr, unionType, unionCase, unionCaseField, valueExpr) -> 
-        visitExpr f unionExpr; visitExpr f valueExpr
-    | BasicPatterns.UnionCaseGet(unionExpr, unionType, unionCase, unionCaseField) -> 
-        visitExpr f unionExpr
-    | BasicPatterns.UnionCaseTest(unionExpr, unionType, unionCase) -> 
-        visitExpr f unionExpr
-    | BasicPatterns.UnionCaseTag(unionExpr, unionType) -> 
-        visitExpr f unionExpr
-    | BasicPatterns.ObjectExpr(objType, baseCallExpr, overrides, interfaceImplementations) -> 
-        visitExpr f baseCallExpr
-        List.iter (visitObjMember f) overrides
-        List.iter (snd >> List.iter (visitObjMember f)) interfaceImplementations
-    | BasicPatterns.TraitCall(sourceTypes, traitName, typeArgs, typeInstantiation, argTypes, argExprs) -> 
-        visitExprs f argExprs
-    | BasicPatterns.ValueSet(valToSet, valueExpr) -> 
-        visitExpr f valueExpr
-    | BasicPatterns.WhileLoop(guardExpr, bodyExpr) -> 
-        visitExpr f guardExpr; visitExpr f bodyExpr
-    | BasicPatterns.BaseValue baseType -> ()
-    | BasicPatterns.DefaultValue defaultType -> ()
-    | BasicPatterns.ThisValue thisType -> ()
-    | BasicPatterns.Const(constValueObj, constType) -> ()
-    | BasicPatterns.Value(valueToGet) -> ()
-    | _ -> failwith (sprintf "unrecognized %+A" e)
-
-and visitExprs f exprs = 
-    List.iter (visitExpr f) exprs
-
-and visitObjArg f objOpt = 
-    Option.iter (visitExpr f) objOpt
-
-and visitObjMember f memb = 
-    visitExpr f memb.Body
-
-

Let's use this expresssion walker:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-
fooExpression |> visitExpr (fun e -> printfn "Visiting %A" e)
-
-// Prints:
-//
-// Visiting Let...
-// Visiting Call...
-// Visiting Const ("Hello", ...)
-// Visiting Const (" ", ...)
-// Visiting Const ("world", ...)
-// Visiting IfThenElse...
-// Visiting Call...
-// Visiting Call...
-// Visiting Value ...
-// Visiting Const ...
-// Visiting Const ...
-// Visiting Const ...
-
-

Note that

-
    -
  • The visitExpr function is recursive (for nested expressions).
  • -
  • Pattern matching is removed from the tree, into a form called 'decision trees'.
  • -
-

Summary

-

In this tutorial, we looked at basic of working with checked declarations and expressions.

-

In practice, it is also useful to combine the information here -with some information you can obtain from the symbols -tutorial.

- -
namespace System
-
namespace System.IO
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp

--------------------
type FSharpAttribute =
  member Format : context:FSharpDisplayContext -> string
  member AttributeType : FSharpEntity
  member ConstructorArguments : IList<FSharpType * obj>
  member IsUnresolved : bool
  member NamedArguments : IList<FSharpType * string * bool * obj>
-
namespace FSharp.Compiler.Text
-
val checker : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
val parseAndCheckSingleFile : input:string -> FSharpCheckProjectResults
-
val input : string
-
val file : string
-
type Path =
  static val DirectorySeparatorChar : char
  static val AltDirectorySeparatorChar : char
  static val VolumeSeparatorChar : char
  static val PathSeparator : char
  static val InvalidPathChars : char[]
  static member ChangeExtension : path:string * extension:string -> string
  static member Combine : [<ParamArray>] paths:string[] -> string + 3 overloads
  static member GetDirectoryName : path:string -> string + 1 overload
  static member GetExtension : path:string -> string + 1 overload
  static member GetFileName : path:string -> string + 1 overload
  ...
-
Path.ChangeExtension(path: string, extension: string) : string
-
Path.GetTempFileName() : string
-
type File =
  static member AppendAllLines : path:string * contents:IEnumerable<string> -> unit + 1 overload
  static member AppendAllLinesAsync : path:string * contents:IEnumerable<string> * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendAllText : path:string * contents:string -> unit + 1 overload
  static member AppendAllTextAsync : path:string * contents:string * ?cancellationToken:CancellationToken -> Task + 1 overload
  static member AppendText : path:string -> StreamWriter
  static member Copy : sourceFileName:string * destFileName:string -> unit + 1 overload
  static member Create : path:string -> FileStream + 2 overloads
  static member CreateText : path:string -> StreamWriter
  static member Decrypt : path:string -> unit
  static member Delete : path:string -> unit
  ...
-
File.WriteAllText(path: string, contents: string) : unit
File.WriteAllText(path: string, contents: string, encoding: Text.Encoding) : unit
-
val projOptions : FSharpProjectOptions
-
val _errors : FSharpErrorInfo list
-
member FSharpChecker.GetProjectOptionsFromScript : filename:string * sourceText:ISourceText * ?previewEnabled:bool * ?loadedTimeStamp:DateTime * ?otherFlags:string [] * ?useFsiAuxLib:bool * ?useSdkRefs:bool * ?assumeDotNetFramework:bool * ?extraProjectInfo:obj * ?optionsStamp:int64 * ?userOpName:string -> Async<FSharpProjectOptions * FSharpErrorInfo list>
-
module SourceText

from FSharp.Compiler.Text
-
val ofString : string -> ISourceText
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
val fprojOptions : FSharpProjectOptions
-
member FSharpChecker.ParseAndCheckProject : options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpCheckProjectResults>
-
val input2 : string
-
val checkProjectResults : FSharpCheckProjectResults
-
property FSharpCheckProjectResults.Errors: FSharpErrorInfo [] with get
-
val checkedFile : FSharpImplementationFileContents
-
property FSharpCheckProjectResults.AssemblyContents: FSharpAssemblyContents with get
-
property FSharpAssemblyContents.ImplementationFiles: FSharpImplementationFileContents list with get
-
val printDecl : prefix:string -> d:FSharpImplementationFileDeclaration -> unit
-
val prefix : string
-
val d : FSharpImplementationFileDeclaration
-
type FSharpImplementationFileDeclaration =
  | Entity of FSharpEntity * FSharpImplementationFileDeclaration list
  | MemberOrFunctionOrValue of FSharpMemberOrFunctionOrValue * FSharpMemberOrFunctionOrValue list list * FSharpExpr
  | InitAction of FSharpExpr
-
union case FSharpImplementationFileDeclaration.Entity: FSharpEntity * FSharpImplementationFileDeclaration list -> FSharpImplementationFileDeclaration
-
val e : FSharpEntity
-
val subDecls : FSharpImplementationFileDeclaration list
-
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
-
property FSharpEntity.CompiledName: string with get
-
property List.Length: int with get
-
val subDecl : FSharpImplementationFileDeclaration
-
union case FSharpImplementationFileDeclaration.MemberOrFunctionOrValue: FSharpMemberOrFunctionOrValue * FSharpMemberOrFunctionOrValue list list * FSharpExpr -> FSharpImplementationFileDeclaration
-
val v : FSharpMemberOrFunctionOrValue
-
val vs : FSharpMemberOrFunctionOrValue list list
-
val e : FSharpExpr
-
property FSharpMemberOrFunctionOrValue.CompiledName: string with get
-
union case FSharpImplementationFileDeclaration.InitAction: FSharpExpr -> FSharpImplementationFileDeclaration
-
property FSharpImplementationFileContents.Declarations: FSharpImplementationFileDeclaration list with get
-
val myLibraryEntity : FSharpEntity
-
val myLibraryDecls : FSharpImplementationFileDeclaration list
-
val failwith : message:string -> 'T
-
val fooSymbol : FSharpMemberOrFunctionOrValue
-
val fooArgs : FSharpMemberOrFunctionOrValue list list
-
val fooExpression : FSharpExpr
-
property FSharpExpr.Type: FSharpType with get
-
property FSharpExpr.Range: FSharp.Compiler.Range.range with get
-
val visitExpr : f:(FSharpExpr -> unit) -> e:FSharpExpr -> unit
-
val f : (FSharpExpr -> unit)
-
type FSharpExpr =
  member ImmediateSubExpressions : FSharpExpr list
  member Range : range
  member Type : FSharpType
-
module BasicPatterns

from FSharp.Compiler.SourceCodeServices
-
active recognizer AddressOf: FSharpExpr -> FSharpExpr option
-
val lvalueExpr : FSharpExpr
-
active recognizer AddressSet: FSharpExpr -> (FSharpExpr * FSharpExpr) option
-
val rvalueExpr : FSharpExpr
-
active recognizer Application: FSharpExpr -> (FSharpExpr * FSharpType list * FSharpExpr list) option
-
val funcExpr : FSharpExpr
-
val typeArgs : FSharpType list
-
val argExprs : FSharpExpr list
-
val visitExprs : f:(FSharpExpr -> unit) -> exprs:FSharpExpr list -> unit
-
active recognizer Call: FSharpExpr -> (FSharpExpr option * FSharpMemberOrFunctionOrValue * FSharpType list * FSharpType list * FSharpExpr list) option
-
val objExprOpt : FSharpExpr option
-
val memberOrFunc : FSharpMemberOrFunctionOrValue
-
val typeArgs1 : FSharpType list
-
val typeArgs2 : FSharpType list
-
val visitObjArg : f:(FSharpExpr -> unit) -> objOpt:FSharpExpr option -> unit
-
active recognizer Coerce: FSharpExpr -> (FSharpType * FSharpExpr) option
-
val targetType : FSharpType
-
val inpExpr : FSharpExpr
-
active recognizer FastIntegerForLoop: FSharpExpr -> (FSharpExpr * FSharpExpr * FSharpExpr * bool) option
-
val startExpr : FSharpExpr
-
val limitExpr : FSharpExpr
-
val consumeExpr : FSharpExpr
-
val isUp : bool
-
active recognizer ILAsm: FSharpExpr -> (string * FSharpType list * FSharpExpr list) option
-
val asmCode : string
-
active recognizer ILFieldGet: FSharpExpr -> (FSharpExpr option * FSharpType * string) option
-
val fieldType : FSharpType
-
val fieldName : string
-
active recognizer ILFieldSet: FSharpExpr -> (FSharpExpr option * FSharpType * string * FSharpExpr) option
-
val valueExpr : FSharpExpr
-
active recognizer IfThenElse: FSharpExpr -> (FSharpExpr * FSharpExpr * FSharpExpr) option
-
val guardExpr : FSharpExpr
-
val thenExpr : FSharpExpr
-
val elseExpr : FSharpExpr
-
active recognizer Lambda: FSharpExpr -> (FSharpMemberOrFunctionOrValue * FSharpExpr) option
-
val lambdaVar : FSharpMemberOrFunctionOrValue
-
val bodyExpr : FSharpExpr
-
active recognizer Let: FSharpExpr -> ((FSharpMemberOrFunctionOrValue * FSharpExpr) * FSharpExpr) option
-
val bindingVar : FSharpMemberOrFunctionOrValue
-
val bindingExpr : FSharpExpr
-
active recognizer LetRec: FSharpExpr -> ((FSharpMemberOrFunctionOrValue * FSharpExpr) list * FSharpExpr) option
-
val recursiveBindings : (FSharpMemberOrFunctionOrValue * FSharpExpr) list
-
Multiple items
module List

from Microsoft.FSharp.Collections

--------------------
type List<'T> =
  | ( [] )
  | ( :: ) of Head: 'T * Tail: 'T list
    interface IReadOnlyList<'T>
    interface IReadOnlyCollection<'T>
    interface IEnumerable
    interface IEnumerable<'T>
    member GetSlice : startIndex:int option * endIndex:int option -> 'T list
    member Head : 'T
    member IsEmpty : bool
    member Item : index:int -> 'T with get
    member Length : int
    member Tail : 'T list
    ...
-
val iter : action:('T -> unit) -> list:'T list -> unit
-
val snd : tuple:('T1 * 'T2) -> 'T2
-
active recognizer NewArray: FSharpExpr -> (FSharpType * FSharpExpr list) option
-
val arrayType : FSharpType
-
active recognizer NewDelegate: FSharpExpr -> (FSharpType * FSharpExpr) option
-
val delegateType : FSharpType
-
val delegateBodyExpr : FSharpExpr
-
active recognizer NewObject: FSharpExpr -> (FSharpMemberOrFunctionOrValue * FSharpType list * FSharpExpr list) option
-
val objType : FSharpMemberOrFunctionOrValue
-
active recognizer NewRecord: FSharpExpr -> (FSharpType * FSharpExpr list) option
-
val recordType : FSharpType
-
active recognizer NewAnonRecord: FSharpExpr -> (FSharpType * FSharpExpr list) option
-
active recognizer NewTuple: FSharpExpr -> (FSharpType * FSharpExpr list) option
-
val tupleType : FSharpType
-
active recognizer NewUnionCase: FSharpExpr -> (FSharpType * FSharpUnionCase * FSharpExpr list) option
-
val unionType : FSharpType
-
val unionCase : FSharpUnionCase
-
active recognizer Quote: FSharpExpr -> FSharpExpr option
-
val quotedExpr : FSharpExpr
-
active recognizer FSharpFieldGet: FSharpExpr -> (FSharpExpr option * FSharpType * FSharpField) option
-
val recordOrClassType : FSharpType
-
val fieldInfo : FSharpField
-
active recognizer AnonRecordGet: FSharpExpr -> (FSharpExpr * FSharpType * int) option
-
val objExpr : FSharpExpr
-
val fieldInfo : int
-
active recognizer FSharpFieldSet: FSharpExpr -> (FSharpExpr option * FSharpType * FSharpField * FSharpExpr) option
-
val argExpr : FSharpExpr
-
active recognizer Sequential: FSharpExpr -> (FSharpExpr * FSharpExpr) option
-
val firstExpr : FSharpExpr
-
val secondExpr : FSharpExpr
-
active recognizer TryFinally: FSharpExpr -> (FSharpExpr * FSharpExpr) option
-
val finalizeExpr : FSharpExpr
-
active recognizer TryWith: FSharpExpr -> (FSharpExpr * FSharpMemberOrFunctionOrValue * FSharpExpr * FSharpMemberOrFunctionOrValue * FSharpExpr) option
-
val catchVar : FSharpMemberOrFunctionOrValue
-
val catchExpr : FSharpExpr
-
active recognizer TupleGet: FSharpExpr -> (FSharpType * int * FSharpExpr) option
-
val tupleElemIndex : int
-
val tupleExpr : FSharpExpr
-
active recognizer DecisionTree: FSharpExpr -> (FSharpExpr * (FSharpMemberOrFunctionOrValue list * FSharpExpr) list) option
-
val decisionExpr : FSharpExpr
-
val decisionTargets : (FSharpMemberOrFunctionOrValue list * FSharpExpr) list
-
active recognizer DecisionTreeSuccess: FSharpExpr -> (int * FSharpExpr list) option
-
val decisionTargetIdx : int
-
val decisionTargetExprs : FSharpExpr list
-
active recognizer TypeLambda: FSharpExpr -> (FSharpGenericParameter list * FSharpExpr) option
-
val genericParam : FSharpGenericParameter list
-
active recognizer TypeTest: FSharpExpr -> (FSharpType * FSharpExpr) option
-
val ty : FSharpType
-
active recognizer UnionCaseSet: FSharpExpr -> (FSharpExpr * FSharpType * FSharpUnionCase * FSharpField * FSharpExpr) option
-
val unionExpr : FSharpExpr
-
val unionCaseField : FSharpField
-
active recognizer UnionCaseGet: FSharpExpr -> (FSharpExpr * FSharpType * FSharpUnionCase * FSharpField) option
-
active recognizer UnionCaseTest: FSharpExpr -> (FSharpExpr * FSharpType * FSharpUnionCase) option
-
active recognizer UnionCaseTag: FSharpExpr -> (FSharpExpr * FSharpType) option
-
active recognizer ObjectExpr: FSharpExpr -> (FSharpType * FSharpExpr * FSharpObjectExprOverride list * (FSharpType * FSharpObjectExprOverride list) list) option
-
val objType : FSharpType
-
val baseCallExpr : FSharpExpr
-
val overrides : FSharpObjectExprOverride list
-
val interfaceImplementations : (FSharpType * FSharpObjectExprOverride list) list
-
val visitObjMember : f:(FSharpExpr -> unit) -> memb:FSharpObjectExprOverride -> unit
-
active recognizer TraitCall: FSharpExpr -> (FSharpType list * string * FSharp.Compiler.SyntaxTree.MemberFlags * FSharpType list * FSharpType list * FSharpExpr list) option
-
val sourceTypes : FSharpType list
-
val traitName : string
-
val typeArgs : FSharp.Compiler.SyntaxTree.MemberFlags
-
val typeInstantiation : FSharpType list
-
val argTypes : FSharpType list
-
active recognizer ValueSet: FSharpExpr -> (FSharpMemberOrFunctionOrValue * FSharpExpr) option
-
val valToSet : FSharpMemberOrFunctionOrValue
-
active recognizer WhileLoop: FSharpExpr -> (FSharpExpr * FSharpExpr) option
-
active recognizer BaseValue: FSharpExpr -> FSharpType option
-
val baseType : FSharpType
-
active recognizer DefaultValue: FSharpExpr -> FSharpType option
-
val defaultType : FSharpType
-
active recognizer ThisValue: FSharpExpr -> FSharpType option
-
val thisType : FSharpType
-
active recognizer Const: FSharpExpr -> (obj * FSharpType) option
-
val constValueObj : obj
-
val constType : FSharpType
-
active recognizer Value: FSharpExpr -> FSharpMemberOrFunctionOrValue option
-
val valueToGet : FSharpMemberOrFunctionOrValue
-
val sprintf : format:Printf.StringFormat<'T> -> 'T
-
val exprs : FSharpExpr list
-
val objOpt : FSharpExpr option
-
module Option

from Microsoft.FSharp.Core
-
val iter : action:('T -> unit) -> option:'T option -> unit
-
val memb : FSharpObjectExprOverride
-
property FSharpObjectExprOverride.Body: FSharpExpr with get
- -
- -
-
- Fork me on GitHub - - diff --git a/docs/untypedtree.html b/docs/untypedtree.html deleted file mode 100644 index abed4c6340..0000000000 --- a/docs/untypedtree.html +++ /dev/null @@ -1,469 +0,0 @@ - - - - - Compiler Services: Processing untyped syntax tree - - - - - - - - - - - - - - - - - -
-
- -

F# Compiler Services

-
-
-
-
-

Compiler Services: Processing untyped syntax tree

-

This tutorial demonstrates how to get the untyped abstract syntax tree (AST) -for F# code and how to walk over the tree. This can be used for creating tools -such as code formatter, basic refactoring or code navigation tools. The untyped -syntax tree contains information about the code structure, but does not contain -types and there are some ambiguities that are resolved only later by the type -checker. You can also combine the untyped AST information with the API available -from editor services.

-
-

NOTE: The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published

-
-

Getting the untyped AST

-

To access the untyped AST, you need to create an instance of FSharpChecker. -This type represents a context for type checking and parsing and corresponds either -to a stand-alone F# script file (e.g. opened in Visual Studio) or to a loaded project -file with multiple files. Once you have an instance of FSharpChecker, you can -use it to perform "untyped parse" which is the first step of type-checking. The -second phase is "typed parse" and is used by editor services.

-

To use the interactive checker, reference FSharp.Compiler.Service.dll and open the -SourceCodeServices namespace:

- - - -
1: 
-2: 
-3: 
-4: 
-
#r "FSharp.Compiler.Service.dll"
-open System
-open FSharp.Compiler.SourceCodeServices
-open FSharp.Compiler.Text
-
-

Performing untyped parse

-

The untyped parse operation is very fast (compared to type checking, which can -take notable amount of time) and so we can perform it synchronously. First, we -need to create FSharpChecker - the constructor takes an argument that -can be used to notify the checker about file changes (which we ignore).

- - - -
1: 
-2: 
-
// Create an interactive checker instance 
-let checker = FSharpChecker.Create()
-
-

To get the AST, we define a function that takes file name and the source code -(the file is only used for location information and does not have to exist). -We first need to get "interactive checker options" which represents the context. -For simple tasks, you can use GetProjectOptionsFromScriptRoot which infers -the context for a script file. Then we use the ParseFile method and -return the ParseTree property:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-
/// Get untyped tree for a specified input
-let getUntypedTree (file, input) = 
-  // Get compiler options for the 'project' implied by a single script file
-  let projOptions, errors = 
-      checker.GetProjectOptionsFromScript(file, input)
-      |> Async.RunSynchronously
-
-  let parsingOptions, _errors = checker.GetParsingOptionsFromProjectOptions(projOptions)
-
-  // Run the first phase (untyped parsing) of the compiler
-  let parseFileResults = 
-      checker.ParseFile(file, input, parsingOptions) 
-      |> Async.RunSynchronously
-
-  match parseFileResults.ParseTree with
-  | Some tree -> tree
-  | None -> failwith "Something went wrong during parsing!"
-
-

Walking over the AST

-

The abstract syntax tree is defined as a number of discriminated unions that represent -different syntactical elements (such as expressions, patterns, declarations etc.). The best -way to understand the AST is to look at the definitions in ast.fs in the source -code.

-

The relevant parts are in the following namespace:

- - - -
1: 
-
open FSharp.Compiler.Ast
-
-

When processing the AST, you will typically write a number of mutually recursive functions -that pattern match on the different syntactical elements. There is a number of elements -that need to be supported - the top-level element is module or namespace declaration, -containing declarations inside a module (let bindings, types etc.). A let declaration inside -a module then contains expression, which can contain patterns.

-

Walking over patterns and expressions

-

We start by looking at functions that walk over expressions and patterns - as we walk, -we print information about the visited elements. For patterns, the input is of type -SynPat and has a number of cases including Wild (for _ pattern), Named (for -<pat> as name) and LongIdent (for a Foo.Bar name). Note that the parsed pattern -is occasionally more complex than what is in the source code (in particular, Named is -used more often):

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-
/// Walk over a pattern - this is for example used in 
-/// let <pat> = <expr> or in the 'match' expression
-let rec visitPattern = function
-  | SynPat.Wild(_) -> 
-      printfn "  .. underscore pattern"
-  | SynPat.Named(pat, name, _, _, _) ->
-      visitPattern pat
-      printfn "  .. named as '%s'" name.idText
-  | SynPat.LongIdent(LongIdentWithDots(ident, _), _, _, _, _, _) ->
-      let names = String.concat "." [ for i in ident -> i.idText ]
-      printfn "  .. identifier: %s" names
-  | pat -> printfn "  .. other pattern: %A" pat
-
-

The function is recursive (for nested patterns such as (foo, _) as bar), but it does not -call any of the functions defined later (because patterns cannot contain other syntactical -elements).

-

The next function iterates over expressions - this is where most of the work would be and -there are around 20 cases to cover (type SynExpr. and you'll get completion with other -options). In the following, we only show how to handle if .. then .. and let .. = ...:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-16: 
-17: 
-18: 
-19: 
-20: 
-21: 
-22: 
-23: 
-24: 
-
/// Walk over an expression - if expression contains two or three 
-/// sub-expressions (two if the 'else' branch is missing), let expression
-/// contains pattern and two sub-expressions
-let rec visitExpression = function
-  | SynExpr.IfThenElse(cond, trueBranch, falseBranchOpt, _, _, _, _) ->
-      // Visit all sub-expressions
-      printfn "Conditional:"
-      visitExpression cond
-      visitExpression trueBranch
-      falseBranchOpt |> Option.iter visitExpression 
-
-  | SynExpr.LetOrUse(_, _, bindings, body, _) ->
-      // Visit bindings (there may be multiple 
-      // for 'let .. = .. and .. = .. in ...'
-      printfn "LetOrUse with the following bindings:"
-      for binding in bindings do
-        let (Binding(access, kind, inlin, mutabl, attrs, xmlDoc, 
-                     data, pat, retInfo, init, m, sp)) = binding
-        visitPattern pat 
-        visitExpression init
-      // Visit the body expression
-      printfn "And the following body:"
-      visitExpression body
-  | expr -> printfn " - not supported expression: %A" expr
-
-

The visitExpression function will be called from a function that visits all top-level -declarations inside a module. In this tutorial, we ignore types and members, but that would -be another source of calls to visitExpression.

-

Walking over declarations

-

As mentioned earlier, the AST of a file contains a number of module or namespace declarations -(top-level node) that contain declarations inside a module (let bindings or types) or inside -a namespace (just types). The following functions walks over declarations - we ignore types, -nested modules and all other elements and look only at top-level let bindings (values and -functions):

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-15: 
-
/// Walk over a list of declarations in a module. This is anything
-/// that you can write as a top-level inside module (let bindings,
-/// nested modules, type declarations etc.)
-let visitDeclarations decls = 
-  for declaration in decls do
-    match declaration with
-    | SynModuleDecl.Let(isRec, bindings, range) ->
-        // Let binding as a declaration is similar to let binding
-        // as an expression (in visitExpression), but has no body
-        for binding in bindings do
-          let (Binding(access, kind, inlin, mutabl, attrs, xmlDoc, 
-                       data, pat, retInfo, body, m, sp)) = binding
-          visitPattern pat 
-          visitExpression body         
-    | _ -> printfn " - not supported declaration: %A" declaration
-
-

The visitDeclarations function will be called from a function that walks over a -sequence of module or namespace declarations. This corresponds, for example, to a file -with multiple namespace Foo declarations:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-8: 
-9: 
-
/// Walk over all module or namespace declarations 
-/// (basically 'module Foo =' or 'namespace Foo.Bar')
-/// Note that there is one implicitly, even if the file
-/// does not explicitly define it..
-let visitModulesAndNamespaces modulesOrNss =
-  for moduleOrNs in modulesOrNss do
-    let (SynModuleOrNamespace(lid, isRec, isMod, decls, xml, attrs, _, m)) = moduleOrNs
-    printfn "Namespace or module: %A" lid
-    visitDeclarations decls
-
-

Now that we have functions that walk over the elements of the AST (starting from declaration, -down to expressions and patterns), we can get AST of a sample input and run the above function.

-

Putting things together

-

As already discussed, the getUntypedTree function uses FSharpChecker to run the first -phase (parsing) on the AST and get back the tree. The function requires F# source code together -with location of the file. The location does not have to exist (it is used only for location -information) and it can be in both Unix and Windows formats:

- - - -
 1: 
- 2: 
- 3: 
- 4: 
- 5: 
- 6: 
- 7: 
- 8: 
- 9: 
-10: 
-11: 
-12: 
-13: 
-14: 
-
// Sample input for the compiler service
-let input =
-  """
-  let foo() = 
-    let msg = "Hello world"
-    if true then 
-      printfn "%s" msg
-  """
-
-// File name in Unix format
-let file = "/home/user/Test.fsx"
-
-// Get the AST of sample F# code
-let tree = getUntypedTree(file, SourceText.ofString input)
-
-

When you run the code in F# interactive, you can enter tree;; in the interactive console and -see pretty printed representation of the data structure - the tree contains a lot of information, -so this is not particularly readable, but it gives you good idea about how the tree looks.

-

The returned tree value is again a discriminated union that can be two different cases - one case -is ParsedInput.SigFile which represents F# signature file (*.fsi) and the other one is -ParsedInput.ImplFile representing regular source code (*.fsx or *.fs). The implementation -file contains a sequence of modules or namespaces that we can pass to the function implemented -in the previous step:

- - - -
1: 
-2: 
-3: 
-4: 
-5: 
-6: 
-7: 
-
// Extract implementation file details
-match tree with
-| ParsedInput.ImplFile(implFile) ->
-    // Extract declarations and walk over them
-    let (ParsedImplFileInput(fn, script, name, _, _, modules, _)) = implFile
-    visitModulesAndNamespaces modules
-| _ -> failwith "F# Interface file (*.fsi) not supported."
-
-

Summary

-

In this tutorial, we looked at basic of working with the untyped abstract syntax tree. This is a -comprehensive topic, so it is not possible to explain everything in a single article. The -Fantomas project is a good example of tool based on the untyped -AST that can help you understand more. In practice, it is also useful to combine the information here -with some information you can obtain from the editor services discussed in the next -tutorial.

- -
namespace System
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
-
namespace FSharp.Compiler
-
namespace FSharp.Compiler.SourceCodeServices
-
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp

--------------------
type FSharpAttribute =
  member Format : context:FSharpDisplayContext -> string
  member AttributeType : FSharpEntity
  member ConstructorArguments : IList<FSharpType * obj>
  member IsUnresolved : bool
  member NamedArguments : IList<FSharpType * string * bool * obj>
-
namespace FSharp.Compiler.Text
-
val checker : FSharpChecker
-
type FSharpChecker =
  member CheckFileInProject : parsed:FSharpParseFileResults * filename:string * fileversion:int * sourceText:ISourceText * options:FSharpProjectOptions * ?textSnapshotInfo:obj * ?userOpName:string -> Async<FSharpCheckFileAnswer>
  member CheckProjectInBackground : options:FSharpProjectOptions * ?userOpName:string -> unit
  member ClearLanguageServiceRootCachesAndCollectAndFinalizeAllTransients : unit -> unit
  member Compile : argv:string [] * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member Compile : ast:ParsedInput list * assemblyName:string * outFile:string * dependencies:string list * ?pdbFile:string * ?executable:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int>
  member CompileToDynamicAssembly : otherFlags:string [] * execute:(TextWriter * TextWriter) option * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member CompileToDynamicAssembly : ast:ParsedInput list * assemblyName:string * dependencies:string list * execute:(TextWriter * TextWriter) option * ?debug:bool * ?noframework:bool * ?userOpName:string -> Async<FSharpErrorInfo [] * int * Assembly option>
  member FindBackgroundReferencesInFile : filename:string * options:FSharpProjectOptions * symbol:FSharpSymbol * ?userOpName:string -> Async<seq<range>>
  member GetBackgroundCheckResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults * FSharpCheckFileResults>
  member GetBackgroundParseResultsForFileInProject : filename:string * options:FSharpProjectOptions * ?userOpName:string -> Async<FSharpParseFileResults>
  ...
-
static member FSharpChecker.Create : ?projectCacheSize:int * ?keepAssemblyContents:bool * ?keepAllBackgroundResolutions:bool * ?legacyReferenceResolver:FSharp.Compiler.ReferenceResolver.Resolver * ?tryGetMetadataSnapshot:FSharp.Compiler.AbstractIL.ILBinaryReader.ILReaderTryGetMetadataSnapshot * ?suggestNamesForErrors:bool * ?keepAllBackgroundSymbolUses:bool * ?enableBackgroundItemKeyStoreAndSemanticClassification:bool -> FSharpChecker
-
val getUntypedTree : file:string * input:ISourceText -> FSharp.Compiler.SyntaxTree.ParsedInput


 Get untyped tree for a specified input
-
val file : string
-
val input : ISourceText
-
val projOptions : FSharpProjectOptions
-
val errors : FSharpErrorInfo list
-
member FSharpChecker.GetProjectOptionsFromScript : filename:string * sourceText:ISourceText * ?previewEnabled:bool * ?loadedTimeStamp:DateTime * ?otherFlags:string [] * ?useFsiAuxLib:bool * ?useSdkRefs:bool * ?assumeDotNetFramework:bool * ?extraProjectInfo:obj * ?optionsStamp:int64 * ?userOpName:string -> Async<FSharpProjectOptions * FSharpErrorInfo list>
-
Multiple items
type Async =
  static member AsBeginEnd : computation:('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit)
  static member AwaitEvent : event:IEvent<'Del,'T> * ?cancelAction:(unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate)
  static member AwaitIAsyncResult : iar:IAsyncResult * ?millisecondsTimeout:int -> Async<bool>
  static member AwaitTask : task:Task -> Async<unit>
  static member AwaitTask : task:Task<'T> -> Async<'T>
  static member AwaitWaitHandle : waitHandle:WaitHandle * ?millisecondsTimeout:int -> Async<bool>
  static member CancelDefaultToken : unit -> unit
  static member Catch : computation:Async<'T> -> Async<Choice<'T,exn>>
  static member Choice : computations:seq<Async<'T option>> -> Async<'T option>
  static member FromBeginEnd : beginAction:(AsyncCallback * obj -> IAsyncResult) * endAction:(IAsyncResult -> 'T) * ?cancelAction:(unit -> unit) -> Async<'T>
  ...

--------------------
type Async<'T> =
-
static member Async.RunSynchronously : computation:Async<'T> * ?timeout:int * ?cancellationToken:Threading.CancellationToken -> 'T
-
val parsingOptions : FSharpParsingOptions
-
val _errors : FSharpErrorInfo list
-
member FSharpChecker.GetParsingOptionsFromProjectOptions : FSharpProjectOptions -> FSharpParsingOptions * FSharpErrorInfo list
-
val parseFileResults : FSharpParseFileResults
-
member FSharpChecker.ParseFile : filename:string * sourceText:ISourceText * options:FSharpParsingOptions * ?userOpName:string -> Async<FSharpParseFileResults>
-
property FSharpParseFileResults.ParseTree: FSharp.Compiler.SyntaxTree.ParsedInput option with get
-
union case Option.Some: Value: 'T -> Option<'T>
-
val tree : FSharp.Compiler.SyntaxTree.ParsedInput
-
union case Option.None: Option<'T>
-
val failwith : message:string -> 'T
-
val visitPattern : (obj -> obj)


 Walk over a pattern - this is for example used in
 let <pat> = <expr> or in the 'match' expression
-
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
-
Multiple items
type String =
  new : value:char[] -> string + 8 overloads
  member Chars : int -> char
  member Clone : unit -> obj
  member CompareTo : value:obj -> int + 1 overload
  member Contains : value:string -> bool + 3 overloads
  member CopyTo : sourceIndex:int * destination:char[] * destinationIndex:int * count:int -> unit
  member EndsWith : value:string -> bool + 3 overloads
  member Equals : obj:obj -> bool + 2 overloads
  member GetEnumerator : unit -> CharEnumerator
  member GetHashCode : unit -> int + 1 overload
  ...

--------------------
String(value: char []) : String
String(value: nativeptr<char>) : String
String(value: nativeptr<sbyte>) : String
String(value: ReadOnlySpan<char>) : String
String(c: char, count: int) : String
String(value: char [], startIndex: int, length: int) : String
String(value: nativeptr<char>, startIndex: int, length: int) : String
String(value: nativeptr<sbyte>, startIndex: int, length: int) : String
String(value: nativeptr<sbyte>, startIndex: int, length: int, enc: Text.Encoding) : String
-
val concat : sep:string -> strings:seq<string> -> string
-
val visitExpression : (obj -> obj)


 Walk over an expression - if expression contains two or three
 sub-expressions (two if the 'else' branch is missing), let expression
 contains pattern and two sub-expressions
-
module Option

from Microsoft.FSharp.Core
-
val iter : action:('T -> unit) -> option:'T option -> unit
-
val visitDeclarations : decls:seq<'a> -> unit


 Walk over a list of declarations in a module. This is anything
 that you can write as a top-level inside module (let bindings,
 nested modules, type declarations etc.)
-
val decls : seq<'a>
-
val declaration : 'a
-
val visitModulesAndNamespaces : modulesOrNss:seq<'a> -> unit


 Walk over all module or namespace declarations
 (basically 'module Foo =' or 'namespace Foo.Bar')
 Note that there is one implicitly, even if the file
 does not explicitly define it..
-
val modulesOrNss : seq<'a>
-
val moduleOrNs : 'a
-
val input : string
-
module SourceText

from FSharp.Compiler.Text
-
val ofString : string -> ISourceText
-
module ParsedInput

from FSharp.Compiler.SourceCodeServices
- -
- -
-
- Fork me on GitHub - - diff --git a/fcs/.config/dotnet-tools.json b/fcs/.config/dotnet-tools.json index c3e6f5e472..921015529f 100644 --- a/fcs/.config/dotnet-tools.json +++ b/fcs/.config/dotnet-tools.json @@ -13,6 +13,12 @@ "commands": [ "paket" ] + }, + "fornax": { + "version": "0.13.1", + "commands": [ + "fornax" + ] } } } \ No newline at end of file diff --git a/fcs/.gitignore b/fcs/.gitignore index 1ae18f2aa0..0a3b52abf5 100644 --- a/fcs/.gitignore +++ b/fcs/.gitignore @@ -11,3 +11,4 @@ FSharp.Compiler.Service.netstandard/pplex.fs FSharp.Compiler.Service.netstandard/pppars.fs FSharp.Compiler.Service.netstandard/pppars.fsi .idea/ +_public \ No newline at end of file diff --git a/fcs/build.fsx b/fcs/build.fsx index 350da96295..1418ed756e 100644 --- a/fcs/build.fsx +++ b/fcs/build.fsx @@ -37,6 +37,7 @@ let runDotnet workingDir command args = let releaseDir = Path.Combine(__SOURCE_DIRECTORY__, "../artifacts/bin/fcs/Release") let packagesDir = Path.Combine(__SOURCE_DIRECTORY__, "../artifacts/packages/Release/Shipping") +let docsDir = Path.Combine(__SOURCE_DIRECTORY__, "docsrc", "_public") // Read release notes & version info from RELEASE_NOTES.md let release = ReleaseNotes.load (__SOURCE_DIRECTORY__ + "/RELEASE_NOTES.md") @@ -52,6 +53,7 @@ let buildVersion = Target.create "Clean" (fun _ -> Shell.cleanDir releaseDir + Shell.cleanDir docsDir ) Target.create "Restore" (fun _ -> @@ -90,13 +92,10 @@ Target.create "NuGet" (fun _ -> }) "FSharp.Compiler.Service.sln" ) -Target.create "GenerateDocsEn" (fun _ -> - runDotnet "docsrc/tools" "fake" "run generate.fsx" +Target.create "GenerateDocs" (fun _ -> + runDotnet "docsrc" "fornax" "build" ) -Target.create "GenerateDocsJa" (fun _ -> - runDotnet "docsrc/tools" "fake" "run generate.ja.fsx" -) open Fake.IO.Globbing.Operators @@ -169,7 +168,6 @@ Target.create "ValidateVersionBump" (fun _ -> Target.create "Start" ignore Target.create "Release" ignore -Target.create "GenerateDocs" ignore Target.create "TestAndNuGet" ignore open Fake.Core.TargetOperators @@ -177,6 +175,7 @@ open Fake.Core.TargetOperators "Start" =?> ("BuildVersion", isAppVeyorBuild) ==> "Restore" + ==> "Clean" ==> "Build" "Build" @@ -198,11 +197,9 @@ open Fake.Core.TargetOperators ==> "Release" "Build" - // ==> "GenerateDocsEn" ==> "GenerateDocs" "Build" - // ==> "GenerateDocsJa" ==> "GenerateDocs" "GenerateDocs" diff --git a/fcs/docsrc/_lib/Fornax.Core.dll b/fcs/docsrc/_lib/Fornax.Core.dll new file mode 100644 index 0000000000..b8754840a0 Binary files /dev/null and b/fcs/docsrc/_lib/Fornax.Core.dll differ diff --git a/fcs/docsrc/config.fsx b/fcs/docsrc/config.fsx new file mode 100644 index 0000000000..7c8ecd104a --- /dev/null +++ b/fcs/docsrc/config.fsx @@ -0,0 +1,20 @@ +#r "_lib/Fornax.Core.dll" + +open Config + +let customRename (page: string) = + System.IO.Path.ChangeExtension(page.Replace ("content/", ""), ".html") + +let isScriptToParse (ap, rp : string) = + let folder = System.IO.Path.GetDirectoryName rp + folder.Contains "content" && rp.EndsWith ".fsx" + +let config = { + Generators = [ + {Script = "page.fsx"; Trigger = OnFileExt ".md"; OutputFile = Custom customRename } + {Script = "page.fsx"; Trigger = OnFilePredicate isScriptToParse; OutputFile = Custom customRename } + {Script = "apiref.fsx"; Trigger = Once; OutputFile = MultipleFiles (sprintf "reference/%s.html") } + + {Script = "lunr.fsx"; Trigger = Once; OutputFile = NewFileName "index.json" } + ] +} diff --git a/fcs/docsrc/content/caches.fsx b/fcs/docsrc/content/caches.fsx index 7f8eaea65f..48b2d0c187 100644 --- a/fcs/docsrc/content/caches.fsx +++ b/fcs/docsrc/content/caches.fsx @@ -1,3 +1,11 @@ +(** +--- +category: how-to +title: Notes on the FSharpChecker caches +menu_order: 2 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** @@ -8,24 +16,24 @@ This is a design note on the FSharpChecker component and its caches. See also t Each FSharpChecker object maintains a set of caches. These are -* ``scriptClosureCache`` - an MRU cache of default size ``projectCacheSize`` that caches the +* ``scriptClosureCache`` - an MRU cache of default size ``projectCacheSize`` that caches the computation of GetProjectOptionsFromScript. This computation can be lengthy as it can involve processing the transitive closure of all ``#load`` directives, which in turn can mean parsing an unbounded number of script files -* ``incrementalBuildersCache`` - an MRU cache of projects where a handle is being kept to their incremental checking state, - of default size ``projectCacheSize`` (= 3 unless explicitly set as a parameter). - The "current background project" (see the [FSharpChecker operations queue](queue.html)) +* ``incrementalBuildersCache`` - an MRU cache of projects where a handle is being kept to their incremental checking state, + of default size ``projectCacheSize`` (= 3 unless explicitly set as a parameter). + The "current background project" (see the [FSharpChecker operations queue](queue.html)) will be one of these projects. When analyzing large collections of projects, this cache usually occupies by far the most memory. Increasing the size of this cache can dramatically decrease incremental computation of project-wide checking, or of checking individual files within a project, but can very greatly increase memory usage. * ``braceMatchCache`` - an MRU cache of size ``braceMatchCacheSize`` (default = 5) keeping the results of calls to MatchBraces, keyed by filename, source and project options. -* ``parseFileCache`` - an MRU cache of size ``parseFileCacheSize`` (default = 2) keeping the results of ParseFile, +* ``parseFileCache`` - an MRU cache of size ``parseFileCacheSize`` (default = 2) keeping the results of ParseFile, keyed by filename, source and project options. -* ``checkFileInProjectCache`` - an MRU cache of size ``incrementalTypeCheckCacheSize`` (default = 5) keeping the results of - ParseAndCheckFileInProject, CheckFileInProject and/or CheckFileInProjectIfReady. This is keyed by filename, file source +* ``checkFileInProjectCache`` - an MRU cache of size ``incrementalTypeCheckCacheSize`` (default = 5) keeping the results of + ParseAndCheckFileInProject, CheckFileInProject and/or CheckFileInProjectIfReady. This is keyed by filename, file source and project options. The results held in this cache are only returned if they would reflect an accurate parse and check of the file. @@ -35,8 +43,8 @@ Each FSharpChecker object maintains a set of caches. These are are all weak references, you can generally ignore this cache, since its entries will be automatically collected. Strong references to binary readers will be kept by other FCS data structures, e.g. any project checkers, symbols or project checking results. - In more detail, the bytes for referenced .NET binaries are read into memory all at once, eagerly. Files are not left - open or memory-mapped when using FSharpChecker (as opposed to FsiEvaluationSession, which loads assemblies using reflection). + In more detail, the bytes for referenced .NET binaries are read into memory all at once, eagerly. Files are not left + open or memory-mapped when using FSharpChecker (as opposed to FsiEvaluationSession, which loads assemblies using reflection). The purpose of this cache is mainly to ensure that while setting up compilation, the reads of mscorlib, FSharp.Core and so on amortize cracking the DLLs. @@ -46,8 +54,8 @@ Each FSharpChecker object maintains a set of caches. These are Profiling the memory used by the various caches can be done by looking for the corresponding static roots in memory profiling traces. -The sizes of some of these caches can be adjusted by giving parameters to FSharpChecker. Unless otherwise noted, -the cache sizes above indicate the "strong" size of the cache, where memory is held regardless of the memory +The sizes of some of these caches can be adjusted by giving parameters to FSharpChecker. Unless otherwise noted, +the cache sizes above indicate the "strong" size of the cache, where memory is held regardless of the memory pressure on the system. Some of the caches can also hold "weak" references which can be collected at will by the GC. > Note: Because of these caches, you should generally use one global, shared FSharpChecker for everything in an IDE application. @@ -58,13 +66,13 @@ Low-Memory Condition Version 1.4.0.8 added a "maximum memory" limit specified by the `MaxMemory` property on FSharpChecker (in MB). If an FCS project operation is performed (see `CheckMaxMemoryReached` in `service.fs`) and `System.GC.GetTotalMemory(false)` reports a figure greater than this, then -the strong sizes of all FCS caches are reduced to either 0 or 1. This happens for the remainder of the lifetime of the FSharpChecker object. -In practice this will still make tools like the Visual Studio F# Power Tools usable, but some operations like renaming across multiple +the strong sizes of all FCS caches are reduced to either 0 or 1. This happens for the remainder of the lifetime of the FSharpChecker object. +In practice this will still make tools like the Visual Studio F# Power Tools usable, but some operations like renaming across multiple projects may take substantially longer. -By default the maximum memory trigger is disabled, see `maxMBDefault` in `service.fs`. +By default the maximum memory trigger is disabled, see `maxMBDefault` in `service.fs`. -Reducing the FCS strong cache sizes does not guarantee there will be enough memory to continue operations - even holding one project +Reducing the FCS strong cache sizes does not guarantee there will be enough memory to continue operations - even holding one project strongly may exceed a process memory budget. It just means FCS may hold less memory strongly. If you do not want the maximum memory limit to apply then set MaxMemory to System.Int32.MaxValue. @@ -73,9 +81,9 @@ Summary ------- In this design note, you learned that the FSharpChecker component keeps a set of caches in order to support common -incremental analysis scenarios reasonably efficiently. They correspond roughly to the original caches and sizes +incremental analysis scenarios reasonably efficiently. They correspond roughly to the original caches and sizes used by the Visual F# Tools, from which the FSharpChecker component derives. -In long running, highly interactive, multi-project scenarios you should carefully +In long running, highly interactive, multi-project scenarios you should carefully consider the cache sizes you are using and the tradeoffs involved between incremental multi-project checking and memory usage. *) diff --git a/fcs/docsrc/content/compiler.fsx b/fcs/docsrc/content/compiler.fsx index dc8d06cbcb..1d0b1527a9 100644 --- a/fcs/docsrc/content/compiler.fsx +++ b/fcs/docsrc/content/compiler.fsx @@ -1,3 +1,11 @@ +(** +--- +category: tutorial +title: Hosted Compiler +menu_order: 8 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** @@ -10,8 +18,8 @@ This tutorial demonstrates how to host the F# compiler. *) (** -> **NOTE:** There are several options for hosting the F# compiler. The easiest one is to use the -`fsc.exe` process and pass arguments. +> **NOTE:** There are several options for hosting the F# compiler. The easiest one is to use the +`fsc.exe` process and pass arguments. *) (** @@ -31,7 +39,7 @@ First, we need to reference the libraries that contain F# interactive service: open System.IO open FSharp.Compiler.SourceCodeServices -// Create an interactive checker instance +// Create an interactive checker instance let checker = FSharpChecker.Create() (** @@ -45,7 +53,7 @@ let fn3 = Path.ChangeExtension(fn, ".dll") File.WriteAllText(fn2, """ module M -type C() = +type C() = member x.P = 1 let x = 3 + 4 @@ -55,11 +63,11 @@ let x = 3 + 4 Now invoke the compiler: *) -let errors1, exitCode1 = - checker.Compile([| "fsc.exe"; "-o"; fn3; "-a"; fn2 |]) +let errors1, exitCode1 = + checker.Compile([| "fsc.exe"; "-o"; fn3; "-a"; fn2 |]) |> Async.RunSynchronously -(** +(** If errors occur you can see this in the 'exitCode' and the returned array of errors: @@ -70,7 +78,7 @@ module M let x = 1.0 + "" // a type error """) -let errors1b, exitCode1b = +let errors1b, exitCode1b = checker.Compile([| "fsc.exe"; "-o"; fn3; "-a"; fn2 |]) |> Async.RunSynchronously @@ -85,16 +93,16 @@ is not really an option. You still have to pass the "-o" option to name the output file, but the output file is not actually written to disk. -The 'None' option indicates that the initialization code for the assembly is not executed. +The 'None' option indicates that the initialization code for the assembly is not executed. *) -let errors2, exitCode2, dynAssembly2 = +let errors2, exitCode2, dynAssembly2 = checker.CompileToDynamicAssembly([| "-o"; fn3; "-a"; fn2 |], execute=None) |> Async.RunSynchronously (* Passing 'Some' for the 'execute' parameter executes the initialization code for the assembly. *) -let errors3, exitCode3, dynAssembly3 = +let errors3, exitCode3, dynAssembly3 = checker.CompileToDynamicAssembly([| "-o"; fn3; "-a"; fn2 |], Some(stdout,stderr)) |> Async.RunSynchronously diff --git a/fcs/docsrc/content/corelib.fsx b/fcs/docsrc/content/corelib.fsx index 8a7f33b16f..3e7dc66c6e 100644 --- a/fcs/docsrc/content/corelib.fsx +++ b/fcs/docsrc/content/corelib.fsx @@ -1,3 +1,11 @@ +(** +--- +category: how-to +title: Notes on FSharp.Core.dll +menu_order: 3 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** diff --git a/fcs/docsrc/content/devnotes.md b/fcs/docsrc/content/devnotes.md index 98684f9f35..7cbd0b6d65 100644 --- a/fcs/docsrc/content/devnotes.md +++ b/fcs/docsrc/content/devnotes.md @@ -1,3 +1,9 @@ +--- +title: Developer Notes +category: explanation +menu_order: 2 +--- + Developer notes =============== @@ -6,9 +12,9 @@ and F# interactive as services. ## Components -There is one main component, `FSharp.Compiler.Service.dll`. -The main aim is to have a stable and documented fork of the main compiler that allows various -tools to share this common code. +There is one main component, `FSharp.Compiler.Service.dll`. +The main aim is to have a stable and documented fork of the main compiler that allows various +tools to share this common code. This component allows embedding F# Interactive as a service and contains a number of modifications to the source code of `fsi.exe` that adds `EvalExpression` and `EvalInteraction` functions. @@ -19,7 +25,7 @@ This repo should be _identical_ to 'fsharp' except: - Only build `FSharp.Compiler.Service.dll` - No bootstrap or proto compiler is used - an installed F# compiler is assumed - - Build script using FAKE that builds everything, produces NuGet package and + - Build script using FAKE that builds everything, produces NuGet package and generates documentation, files for publishing NuGet packages etc. (following [F# project scaffold](https://github.com/fsprojects/FSharp.ProjectScaffold)) diff --git a/fcs/docsrc/content/editor.fsx b/fcs/docsrc/content/editor.fsx index 26bb465dde..9c0f3fca26 100644 --- a/fcs/docsrc/content/editor.fsx +++ b/fcs/docsrc/content/editor.fsx @@ -1,3 +1,11 @@ +(** +--- +category: tutorial +title: Editor services +menu_order: 3 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** @@ -6,10 +14,10 @@ Compiler Services: Editor services This tutorial demonstrates how to use the editor services provided by the F# compiler. This API is used to provide auto-complete, tool-tips, parameter info help, matching of -brackets and other functions in F# editors including Visual Studio, Xamarin Studio and Emacs +brackets and other functions in F# editors including Visual Studio, Xamarin Studio and Emacs (see [fsharpbindings](https://github.com/fsharp/fsharpbinding) project for more information). -Similarly to [the tutorial on using untyped AST](untypedtree.html), we start by -getting the `InteractiveChecker` object. +Similarly to [the tutorial on using untyped AST](untypedtree.html), we start by +getting the `InteractiveChecker` object. > **NOTE:** The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published @@ -29,56 +37,56 @@ open System open FSharp.Compiler.SourceCodeServices open FSharp.Compiler.Text -// Create an interactive checker instance +// Create an interactive checker instance let checker = FSharpChecker.Create() (** -As [previously](untypedtree.html), we use `GetProjectOptionsFromScriptRoot` to get a context +As [previously](untypedtree.html), we use `GetProjectOptionsFromScriptRoot` to get a context where the specified input is the only file passed to the compiler (and it is treated as a -script file or stand-alone F# source code). +script file or stand-alone F# source code). *) // Sample input as a multi-line string -let input = +let input = """ open System - let foo() = + let foo() = let msg = String.Concat("Hello"," ","world") - if true then + if true then printfn "%s" msg. """ // Split the input & define file name let inputLines = input.Split('\n') let file = "/home/user/Test.fsx" -let projOptions, errors = +let projOptions, errors = checker.GetProjectOptionsFromScript(file, SourceText.ofString input) |> Async.RunSynchronously let parsingOptions, _errors = checker.GetParsingOptionsFromProjectOptions(projOptions) (** -To perform type checking, we first need to parse the input using +To perform type checking, we first need to parse the input using `ParseFile`, which gives us access to the [untyped AST](untypedtree.html). However, then we need to call `CheckFileInProject` to perform the full type checking. This function -also requires the result of `ParseFileInProject`, so the two functions are often called -together. +also requires the result of `ParseFileInProject`, so the two functions are often called +together. *) -// Perform parsing +// Perform parsing -let parseFileResults = +let parseFileResults = checker.ParseFile(file, SourceText.ofString input, parsingOptions) |> Async.RunSynchronously (** -Before we look at the interesting operations provided by `TypeCheckResults`, we +Before we look at the interesting operations provided by `TypeCheckResults`, we need to run the type checker on a sample input. On F# code with errors, you would get some type checking result (but it may contain incorrectly "guessed" results). -*) +*) // Perform type checking -let checkFileAnswer = +let checkFileAnswer = checker.CheckFileInProject(parseFileResults, file, 0, SourceText.ofString input, projOptions) |> Async.RunSynchronously @@ -86,7 +94,7 @@ let checkFileAnswer = Alternatively you can use `ParseAndCheckFileInProject` to check both in one step: *) -let parseResults2, checkFileAnswer2 = +let parseResults2, checkFileAnswer2 = checker.ParseAndCheckFileInProject(file, 0, SourceText.ofString input, projOptions) |> Async.RunSynchronously @@ -97,7 +105,7 @@ tutorial), but also a `CheckFileAnswer` value, which gives us access to all the interesting functionality... *) -let checkFileResults = +let checkFileResults = match checkFileAnswer with | FSharpCheckFileAnswer.Succeeded(res) -> res | res -> failwithf "Parsing did not finish... (%A)" res @@ -145,7 +153,7 @@ deprecated because it accepted zero-based line numbers. At some point it will b Aside from the location and token kind, the function also requires the current contents of the line (useful when the source code changes) and a `Names` value, which is a list of strings representing the current long name. For example to get tooltip for the `Random` identifier in a long name -`System.Random`, you would use location somewhere in the string `Random` and you would pass +`System.Random`, you would use location somewhere in the string `Random` and you would pass `["System"; "Random"]` as the `Names` value. The returned value is of type `ToolTipText` which contains a discriminated union `ToolTipElement`. @@ -155,16 +163,16 @@ The union represents different kinds of tool tips that you can get from the comp The next method exposed by `TypeCheckResults` lets us perform auto-complete on a given location. This can be called on any identifier or in any scope (in which case you get a list of names visible -in the scope) or immediately after `.` to get a list of members of some object. Here, we get a +in the scope) or immediately after `.` to get a list of members of some object. Here, we get a list of members of the string value `msg`. -To do this, we call `GetDeclarationListInfo` with the location of the `.` symbol on the last line +To do this, we call `GetDeclarationListInfo` with the location of the `.` symbol on the last line (ending with `printfn "%s" msg.`). The offsets are one-based, so the location is `7, 23`. We also need to specify a function that says that the text has not changed and the current identifier where we need to perform the completion. *) // Get declarations (autocomplete) for a location -let decls = +let decls = checkFileResults.GetDeclarationListInfo (Some parseFileResults, 7, inputLines.[6], PartialLongName.Empty 23, (fun () -> []), fun _ -> false) |> Async.RunSynchronously @@ -180,15 +188,15 @@ deprecated because it accepted zero-based line numbers. At some point it will b *) (** -When you run the code, you should get a list containing the usual string methods such as -`Substring`, `ToUpper`, `ToLower` etc. The fourth argument of `GetDeclarations`, here `([], "msg")`, +When you run the code, you should get a list containing the usual string methods such as +`Substring`, `ToUpper`, `ToLower` etc. The fourth argument of `GetDeclarations`, here `([], "msg")`, specifies the context for the auto-completion. Here, we want a completion on a complete name `msg`, but you could for example use `(["System"; "Collections"], "Generic")` to get a completion list for a fully qualified namespace. ### Getting parameter information -The next common feature of editors is to provide information about overloads of a method. In our +The next common feature of editors is to provide information about overloads of a method. In our sample code, we use `String.Concat` which has a number of overloads. We can get the list using `GetMethods` operation. As previously, this takes zero-indexed offset of the location that we are interested in (here, right at the end of the `String.Concat` identifier) and we also need to provide @@ -197,14 +205,14 @@ changes): *) // Get overloads of the String.Concat method -let methods = +let methods = checkFileResults.GetMethods(5, 27, inputLines.[4], Some ["String"; "Concat"]) |> Async.RunSynchronously // Print concatenated parameter lists for mi in methods.Methods do [ for p in mi.Parameters -> p.Display ] - |> String.concat ", " + |> String.concat ", " |> printfn "%s(%s)" methods.MethodName (** The code uses the `Display` property to get the annotation for each parameter. This returns information @@ -212,7 +220,7 @@ such as `arg0: obj` or `params args: obj[]` or `str0: string, str1: string`. We and print a type annotation with the method name. *) -(** +(** ## Asynchronous and immediate operations @@ -229,7 +237,7 @@ is raised. > The [fsharpbinding](https://github.com/fsharp/fsharpbinding) project has more advanced example of handling the background work where all requests are sent through an F# agent. -This may be a more appropriate for implementing editor support. +This may be a more appropriate for implementing editor support. *) diff --git a/fcs/docsrc/content/filesystem.fsx b/fcs/docsrc/content/filesystem.fsx index b7d4426fbd..f8842e4f2f 100644 --- a/fcs/docsrc/content/filesystem.fsx +++ b/fcs/docsrc/content/filesystem.fsx @@ -1,3 +1,11 @@ +(** +--- +category: tutorial +title: Virtualized File System +menu_order: 9 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** @@ -7,11 +15,11 @@ Compiler Services: Virtualized File System The `FSharp.Compiler.Service` component has a global variable representing the file system. By setting this variable you can host the compiler in situations where a file system is not available. - + > **NOTE:** The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published. -Setting the FileSystem +Setting the FileSystem ---------------------- In the example below, we set the file system to an implementation which reads from disk @@ -28,7 +36,7 @@ let defaultFileSystem = Shim.FileSystem let fileName1 = @"c:\mycode\test1.fs" // note, the path doesn't exist let fileName2 = @"c:\mycode\test2.fs" // note, the path doesn't exist -type MyFileSystem() = +type MyFileSystem() = let file1 = """ module File1 @@ -40,62 +48,62 @@ let B = File1.A + File1.A""" interface IFileSystem with // Implement the service to open files for reading and writing - member __.FileStreamReadShim(fileName) = + member __.FileStreamReadShim(fileName) = match files.TryGetValue fileName with | true, text -> new MemoryStream(Encoding.UTF8.GetBytes(text)) :> Stream | _ -> defaultFileSystem.FileStreamReadShim(fileName) - member __.FileStreamCreateShim(fileName) = + member __.FileStreamCreateShim(fileName) = defaultFileSystem.FileStreamCreateShim(fileName) - member __.FileStreamWriteExistingShim(fileName) = + member __.FileStreamWriteExistingShim(fileName) = defaultFileSystem.FileStreamWriteExistingShim(fileName) - member __.ReadAllBytesShim(fileName) = + member __.ReadAllBytesShim(fileName) = match files.TryGetValue fileName with | true, text -> Encoding.UTF8.GetBytes(text) | _ -> defaultFileSystem.ReadAllBytesShim(fileName) // Implement the service related to temporary paths and file time stamps - member __.GetTempPathShim() = + member __.GetTempPathShim() = defaultFileSystem.GetTempPathShim() - member __.GetLastWriteTimeShim(fileName) = + member __.GetLastWriteTimeShim(fileName) = defaultFileSystem.GetLastWriteTimeShim(fileName) - member __.GetFullPathShim(fileName) = + member __.GetFullPathShim(fileName) = defaultFileSystem.GetFullPathShim(fileName) - member __.IsInvalidPathShim(fileName) = + member __.IsInvalidPathShim(fileName) = defaultFileSystem.IsInvalidPathShim(fileName) - member __.IsPathRootedShim(fileName) = + member __.IsPathRootedShim(fileName) = defaultFileSystem.IsPathRootedShim(fileName) - member __.IsStableFileHeuristic(fileName) = + member __.IsStableFileHeuristic(fileName) = defaultFileSystem.IsStableFileHeuristic(fileName) // Implement the service related to file existence and deletion - member __.SafeExists(fileName) = + member __.SafeExists(fileName) = files.ContainsKey(fileName) || defaultFileSystem.SafeExists(fileName) - member __.FileDelete(fileName) = + member __.FileDelete(fileName) = defaultFileSystem.FileDelete(fileName) // Implement the service related to assembly loading, used to load type providers // and for F# interactive. - member __.AssemblyLoadFrom(fileName) = + member __.AssemblyLoadFrom(fileName) = defaultFileSystem.AssemblyLoadFrom fileName - member __.AssemblyLoad(assemblyName) = - defaultFileSystem.AssemblyLoad assemblyName + member __.AssemblyLoad(assemblyName) = + defaultFileSystem.AssemblyLoad assemblyName let myFileSystem = MyFileSystem() -Shim.FileSystem <- MyFileSystem() +Shim.FileSystem <- MyFileSystem() (** -Doing a compilation with the FileSystem +Doing a compilation with the FileSystem --------------------------------------- *) @@ -103,52 +111,52 @@ open FSharp.Compiler.SourceCodeServices let checker = FSharpChecker.Create() -let projectOptions = - let sysLib nm = - if System.Environment.OSVersion.Platform = System.PlatformID.Win32NT then // file references only valid on Windows +let projectOptions = + let sysLib nm = + if System.Environment.OSVersion.Platform = System.PlatformID.Win32NT then // file references only valid on Windows System.Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFilesX86) + @"\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\" + nm + ".dll" else let sysDir = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() let (++) a b = System.IO.Path.Combine(a,b) - sysDir ++ nm + ".dll" + sysDir ++ nm + ".dll" - let fsCore4300() = - if System.Environment.OSVersion.Platform = System.PlatformID.Win32NT then // file references only valid on Windows + let fsCore4300() = + if System.Environment.OSVersion.Platform = System.PlatformID.Win32NT then // file references only valid on Windows System.Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFilesX86) + - @"\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll" - else + @"\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll" + else sysLib "FSharp.Core" - let allFlags = - [| yield "--simpleresolution"; - yield "--noframework"; - yield "--debug:full"; - yield "--define:DEBUG"; - yield "--optimize-"; - yield "--doc:test.xml"; - yield "--warn:3"; - yield "--fullpaths"; - yield "--flaterrors"; - yield "--target:library"; + let allFlags = + [| yield "--simpleresolution"; + yield "--noframework"; + yield "--debug:full"; + yield "--define:DEBUG"; + yield "--optimize-"; + yield "--doc:test.xml"; + yield "--warn:3"; + yield "--fullpaths"; + yield "--flaterrors"; + yield "--target:library"; let references = - [ sysLib "mscorlib" + [ sysLib "mscorlib" sysLib "System" sysLib "System.Core" fsCore4300() ] - for r in references do + for r in references do yield "-r:" + r |] - + { ProjectFileName = @"c:\mycode\compilation.fsproj" // Make a name that is unique in this directory. ProjectId = None SourceFiles = [| fileName1; fileName2 |] OriginalLoadReferences = [] ExtraProjectInfo=None Stamp = None - OtherOptions = allFlags + OtherOptions = allFlags ReferencedProjects = [| |] IsIncompleteTypeCheckEnvironment = false - UseScriptResolutionRules = true + UseScriptResolutionRules = true LoadTime = System.DateTime.Now // Note using 'Now' forces reloading UnresolvedReferences = None } @@ -179,12 +187,12 @@ Future iterations on the compiler service implementation may add these to the AP **NOTE:** Several operations in the `SourceCodeServices` API accept the contents of a file to parse or check as a parameter, in addition to a file name. In these cases, the file name is only used for error reporting. - -**NOTE:** Type provider components do not use the virtualized file system. + +**NOTE:** Type provider components do not use the virtualized file system. **NOTE:** The compiler service may use MSBuild for assembly resolutions unless `--simpleresolution` is provided. When using the `FileSystem` API you will normally want to specify `--simpleresolution` as one of your compiler flags. Also specify `--noframework`. You will need to supply explicit resolutions of all referenced .NET assemblies. - + *) \ No newline at end of file diff --git a/fcs/docsrc/content/index.md b/fcs/docsrc/content/index.md index 13cb0926ab..79e5af2bfd 100644 --- a/fcs/docsrc/content/index.md +++ b/fcs/docsrc/content/index.md @@ -1,3 +1,9 @@ +--- +title: F# Compiler Services +category: explanation +menu_order: 1 +--- + F# Compiler Services ==================== diff --git a/fcs/docsrc/content/interactive.fsx b/fcs/docsrc/content/interactive.fsx index abd1c5761e..97910b2c6c 100644 --- a/fcs/docsrc/content/interactive.fsx +++ b/fcs/docsrc/content/interactive.fsx @@ -1,3 +1,11 @@ +(** +--- +category: tutorial +title: Embedding F# Interactive +menu_order: 7 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** diff --git a/fcs/docsrc/content/ja/compiler.fsx b/fcs/docsrc/content/ja/compiler.fsx index c1fdf2ef62..5b2885fac7 100644 --- a/fcs/docsrc/content/ja/compiler.fsx +++ b/fcs/docsrc/content/ja/compiler.fsx @@ -1,3 +1,12 @@ +(** +--- +category: tutorial +title: コンパイラの組み込み +menu_order: 8 +language: ja + +--- +*) (*** hide ***) #I "../../../../artifacts/bin/fcs/Release/net461" (** @@ -34,7 +43,7 @@ let fn3 = Path.ChangeExtension(fn, ".dll") File.WriteAllText(fn2, """ module M -type C() = +type C() = member x.P = 1 let x = 3 + 4 @@ -46,7 +55,7 @@ let x = 3 + 4 let errors1, exitCode1 = scs.Compile([| "fsc.exe"; "-o"; fn3; "-a"; fn2 |]) |> Async.RunSynchronously -(** +(** エラーが発生した場合は「終了コード」とエラーの配列から原因を特定できます: @@ -78,12 +87,12 @@ if exitCode1b <> 0 then 'execute' 引数に 'None' を指定するとアセンブリ用の初期化コードが実行されません。 *) -let errors2, exitCode2, dynAssembly2 = +let errors2, exitCode2, dynAssembly2 = scs.CompileToDynamicAssembly([| "-o"; fn3; "-a"; fn2 |], execute=None) |> Async.RunSynchronously (** 'Some' を指定するとアセンブリ用の初期化コードが実行されます。 *) -let errors3, exitCode3, dynAssembly3 = +let errors3, exitCode3, dynAssembly3 = scs.CompileToDynamicAssembly([| "-o"; fn3; "-a"; fn2 |], Some(stdout,stderr)) |> Async.RunSynchronously diff --git a/fcs/docsrc/content/ja/corelib.fsx b/fcs/docsrc/content/ja/corelib.fsx index ea9ee87f8f..31b9ab2a42 100644 --- a/fcs/docsrc/content/ja/corelib.fsx +++ b/fcs/docsrc/content/ja/corelib.fsx @@ -1,3 +1,12 @@ +(** +--- +category: how-to +title: FSharp.Core.dll についてのメモ +menu_order: 3 +language: ja + +--- +*) (*** hide ***) #I "../../../../artifacts/bin/fcs/net461" (** diff --git a/fcs/docsrc/content/ja/devnotes.md b/fcs/docsrc/content/ja/devnotes.md index 3baa28f4b6..d7398538e5 100644 --- a/fcs/docsrc/content/ja/devnotes.md +++ b/fcs/docsrc/content/ja/devnotes.md @@ -1,3 +1,11 @@ +--- +title: 開発者用メモ +category: explanation +menu_order: 2 +language: ja +--- + + 開発者用メモ ============ diff --git a/fcs/docsrc/content/ja/editor.fsx b/fcs/docsrc/content/ja/editor.fsx index 7075c15989..70da7c6c5f 100644 --- a/fcs/docsrc/content/ja/editor.fsx +++ b/fcs/docsrc/content/ja/editor.fsx @@ -1,3 +1,13 @@ +(** +--- +category: tutorial +title: エディタサービス +menu_order: 3 +language: ja + +--- +*) + (*** hide ***) #I "../../../../artifacts/bin/fcs/Release/net461" (** @@ -43,13 +53,13 @@ let checker = FSharpChecker.Create() *) // サンプルの入力となる複数行文字列 -let input = +let input = """ open System -let foo() = +let foo() = let msg = String.Concat("Hello"," ","world") -if true then +if true then printfn "%s" msg. """ // 入力値の分割とファイル名の定義 @@ -80,11 +90,11 @@ let parseFileResults = サンプル入力に対して型チェッカーを実行する必要があります。 F#コードにエラーがあった場合も何らかの型チェックの結果が返されます (ただし間違って「推測された」結果が含まれることがあります)。 -*) +*) // 型チェックを実行 -let checkFileAnswer = - checker.CheckFileInProject(parseFileResults, file, 0, input, projOptions) +let checkFileAnswer = + checker.CheckFileInProject(parseFileResults, file, 0, input, projOptions) |> Async.RunSynchronously (** @@ -99,7 +109,7 @@ let parseResults2, checkFileAnswer2 = この返り値は `CheckFileAnswer` 型で、この型に機能的に興味深いものが揃えられています... *) -let checkFileResults = +let checkFileResults = match checkFileAnswer with | FSharpCheckFileAnswer.Succeeded(res) -> res | res -> failwithf "パースが完了していません... (%A)" res @@ -176,7 +186,7 @@ printfn "%A" tip 現時点において補完する必要がある識別子を指定する必要もあります。 *) // 特定の位置における宣言(自動補完)を取得する -let decls = +let decls = checkFileResults.GetDeclarationListInfo (Some parseFileResults, 7, inputLines.[6], PartialLongName.Empty 23, (fun _ -> []), fun _ -> false) |> Async.RunSynchronously @@ -212,13 +222,13 @@ for item in decls.Items do *) //String.Concatメソッドのオーバーロードを取得する -let methods = +let methods = checkFileResults.GetMethods(5, 27, inputLines.[4], Some ["String"; "Concat"]) |> Async.RunSynchronously // 連結された引数リストを表示 for mi in methods.Methods do [ for p in mi.Parameters -> p.Display ] - |> String.concat ", " + |> String.concat ", " |> printfn "%s(%s)" methods.MethodName (** ここでは `Display` プロパティを使用することで各引数に対する @@ -228,7 +238,7 @@ for mi in methods.Methods do これらの引数を連結した後、メソッド名とメソッドの型情報とともに表示させています。 *) -(** +(** ## 非同期操作と即時操作 diff --git a/fcs/docsrc/content/ja/filesystem.fsx b/fcs/docsrc/content/ja/filesystem.fsx index eaa1634919..9157ffd1d0 100644 --- a/fcs/docsrc/content/ja/filesystem.fsx +++ b/fcs/docsrc/content/ja/filesystem.fsx @@ -1,3 +1,12 @@ +(** +--- +category: tutorial +title: ファイルシステム仮想化 +menu_order: 9 +language: ja + +--- +*) (*** hide ***) #I "../../../../artifacts/bin/fcs/Release/net461" (** @@ -7,7 +16,7 @@ `FSharp.Compiler.Service` にはファイルシステムを表すグローバル変数があります。 この変数を設定するこにより、ファイルシステムが利用できない状況でも コンパイラをホストすることができるようになります。 - + > **注意:** 以下で使用しているAPIは実験的なもので、 新しいnugetパッケージの公開に伴って変更される可能性があります。 @@ -28,7 +37,7 @@ let defaultFileSystem = Shim.FileSystem let fileName1 = @"c:\mycode\test1.fs" // 注意: 実際には存在しないファイルのパス let fileName2 = @"c:\mycode\test2.fs" // 注意: 実際には存在しないファイルのパス -type MyFileSystem() = +type MyFileSystem() = let file1 = """ module File1 @@ -40,58 +49,58 @@ let B = File1.A + File1.A""" interface IFileSystem with // 読み取りおよび書き込み用にファイルをオープンする機能を実装 - member __.FileStreamReadShim(fileName) = + member __.FileStreamReadShim(fileName) = match files.TryGetValue fileName with | true, text -> new MemoryStream(Encoding.UTF8.GetBytes(text)) :> Stream | _ -> defaultFileSystem.FileStreamReadShim(fileName) - member __.FileStreamCreateShim(fileName) = + member __.FileStreamCreateShim(fileName) = defaultFileSystem.FileStreamCreateShim(fileName) - member __.IsStableFileHeuristic(fileName) = + member __.IsStableFileHeuristic(fileName) = defaultFileSystem.IsStableFileHeuristic(fileName) - member __.FileStreamWriteExistingShim(fileName) = + member __.FileStreamWriteExistingShim(fileName) = defaultFileSystem.FileStreamWriteExistingShim(fileName) - member __.ReadAllBytesShim(fileName) = + member __.ReadAllBytesShim(fileName) = match files.TryGetValue fileName with | true, text -> Encoding.UTF8.GetBytes(text) | _ -> defaultFileSystem.ReadAllBytesShim(fileName) // 一時パスおよびファイルのタイムスタンプに関連する機能を実装 - member __.GetTempPathShim() = + member __.GetTempPathShim() = defaultFileSystem.GetTempPathShim() - member __.GetLastWriteTimeShim(fileName) = + member __.GetLastWriteTimeShim(fileName) = defaultFileSystem.GetLastWriteTimeShim(fileName) - member __.GetFullPathShim(fileName) = + member __.GetFullPathShim(fileName) = defaultFileSystem.GetFullPathShim(fileName) - member __.IsInvalidPathShim(fileName) = + member __.IsInvalidPathShim(fileName) = defaultFileSystem.IsInvalidPathShim(fileName) - member __.IsPathRootedShim(fileName) = + member __.IsPathRootedShim(fileName) = defaultFileSystem.IsPathRootedShim(fileName) // ファイルの存在確認および削除に関連する機能を実装 - member __.SafeExists(fileName) = + member __.SafeExists(fileName) = files.ContainsKey(fileName) || defaultFileSystem.SafeExists(fileName) - member __.FileDelete(fileName) = + member __.FileDelete(fileName) = defaultFileSystem.FileDelete(fileName) // アセンブリのロードに関連する機能を実装。 // 型プロバイダやF# Interactiveで使用される。 - member __.AssemblyLoadFrom(fileName) = + member __.AssemblyLoadFrom(fileName) = defaultFileSystem.AssemblyLoadFrom fileName - member __.AssemblyLoad(assemblyName) = - defaultFileSystem.AssemblyLoad assemblyName + member __.AssemblyLoad(assemblyName) = + defaultFileSystem.AssemblyLoad assemblyName let myFileSystem = MyFileSystem() -Shim.FileSystem <- MyFileSystem() +Shim.FileSystem <- MyFileSystem() (** @@ -102,36 +111,36 @@ FileSystemによるコンパイルの実行 open FSharp.Compiler.SourceCodeServices let checker = FSharpChecker.Create() -let projectOptions = - let allFlags = - [| yield "--simpleresolution"; - yield "--noframework"; - yield "--debug:full"; - yield "--define:DEBUG"; - yield "--optimize-"; - yield "--doc:test.xml"; - yield "--warn:3"; - yield "--fullpaths"; - yield "--flaterrors"; - yield "--target:library"; +let projectOptions = + let allFlags = + [| yield "--simpleresolution"; + yield "--noframework"; + yield "--debug:full"; + yield "--define:DEBUG"; + yield "--optimize-"; + yield "--doc:test.xml"; + yield "--warn:3"; + yield "--fullpaths"; + yield "--flaterrors"; + yield "--target:library"; let references = - [ @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll"; - @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll"; - @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll"; + [ @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll"; + @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll"; + @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll"; @"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll"] - for r in references do + for r in references do yield "-r:" + r |] - + { ProjectFileName = @"c:\mycode\compilation.fsproj" // 現在のディレクトリで一意な名前を指定 ProjectId = None SourceFiles = [| fileName1; fileName2 |] OriginalLoadReferences = [] ExtraProjectInfo=None Stamp = None - OtherOptions = allFlags + OtherOptions = allFlags ReferencedProjects=[| |] IsIncompleteTypeCheckEnvironment = false - UseScriptResolutionRules = true + UseScriptResolutionRules = true LoadTime = System.DateTime.Now // 'Now' を指定して強制的に再読込させている点に注意 UnresolvedReferences = None } @@ -163,7 +172,7 @@ results.AssemblySignature.Entities.[0].MembersFunctionsAndValues.[0].DisplayName **注意:** `SourceCodeServices` API内の一部の操作では、 引数にファイルの内容だけでなくファイル名を指定する必要があります。 これらのAPIにおいて、ファイル名はエラーの報告のためだけに使用されます。 - + **注意:** 型プロバイダーコンポーネントは仮想化されたファイルシステムを使用しません。 **注意:** コンパイラサービスは `--simpleresolution` が指定されていない場合、 diff --git a/fcs/docsrc/content/ja/index.md b/fcs/docsrc/content/ja/index.md index 5b480ce887..17622c8d7c 100644 --- a/fcs/docsrc/content/ja/index.md +++ b/fcs/docsrc/content/ja/index.md @@ -1,3 +1,10 @@ +--- +title: F# コンパイラサービス +category: explanation +menu_order: 1 +language: ja +--- + F# コンパイラサービス ===================== @@ -39,11 +46,11 @@ F# インタラクティブサービスも含まれています。 この機能を使うと、F#サポート機能をエディタに追加したり、F#コードから 何らかの型情報を取得したりすることができるようになります。 - * [** シグネチャや型、解決済みのシンボルの処理 **](symbols.html) - + * [** シグネチャや型、解決済みのシンボルの処理 **](symbols.html) - 解決済みのシンボルや推測された型の表現、アセンブリ全体のシグネチャなどを 型のチェック時に返すような多数のサービスがあります。 - * [** 複数プロジェクトやプロジェクト全体の処理 **](project.html) - + * [** 複数プロジェクトやプロジェクト全体の処理 **](project.html) - すべてのプロジェクトに対するチェックを実行することにより、 プロジェクト全体の解析結果を使って\[すべての参照の検索\] のような 機能を実現できます。 diff --git a/fcs/docsrc/content/ja/interactive.fsx b/fcs/docsrc/content/ja/interactive.fsx index 1824eda9ec..34e86dc27e 100644 --- a/fcs/docsrc/content/ja/interactive.fsx +++ b/fcs/docsrc/content/ja/interactive.fsx @@ -1,3 +1,12 @@ +(** +--- +category: tutorial +title: F# Interactiveの組み込み +menu_order: 7 +language: ja + +--- +*) (*** hide ***) #I "../../../../artifacts/bin/fcs/Release/net461" (** @@ -66,7 +75,7 @@ let argv = [| "C:\\fsi.exe" |] let allArgs = Array.append argv [|"--noninteractive"|] let fsiConfig = FsiEvaluationSession.GetDefaultConfiguration() -let fsiSession = FsiEvaluationSession.Create(fsiConfig, allArgs, inStream, outStream, errStream) +let fsiSession = FsiEvaluationSession.Create(fsiConfig, allArgs, inStream, outStream, errStream) (** コードの評価および実行 @@ -143,7 +152,7 @@ File.WriteAllText("sample.fsx", "let twenty = 'a' + 10.0") let result, warnings = fsiSession.EvalScriptNonThrowing "sample.fsx" // 結果を表示する -match result with +match result with | Choice1Of2 () -> printfn "チェックと実行はOKでした" | Choice2Of2 exn -> printfn "実行例外: %s" exn.Message @@ -155,7 +164,7 @@ match result with *) // エラーと警告を表示する -for w in warnings do +for w in warnings do printfn "警告 %s 場所 %d,%d" w.Message w.StartLineAlternate w.StartColumn (** @@ -170,9 +179,9 @@ for w in warnings do let evalExpressionTyped2<'T> text = let res, warnings = fsiSession.EvalExpressionNonThrowing(text) - for w in warnings do - printfn "警告 %s 場所 %d,%d" w.Message w.StartLineAlternate w.StartColumn - match res with + for w in warnings do + printfn "警告 %s 場所 %d,%d" w.Message w.StartLineAlternate w.StartColumn + match res with | Choice1Of2 (Some value) -> value.ReflectionValue |> unbox<'T> | Choice1Of2 None -> failwith "null または結果がありません" | Choice2Of2 (exn:exn) -> failwith (sprintf "例外 %s" exn.Message) @@ -190,16 +199,16 @@ evalExpressionTyped2 "42+1" // '43' になる open System.Threading.Tasks -let sampleLongRunningExpr = +let sampleLongRunningExpr = """ -async { +async { // 実行したいコード do System.Threading.Thread.Sleep 5000 - return 10 + return 10 } |> Async.StartAsTask""" -let task1 = evalExpressionTyped>(sampleLongRunningExpr) +let task1 = evalExpressionTyped>(sampleLongRunningExpr) let task2 = evalExpressionTyped>(sampleLongRunningExpr) (** @@ -226,17 +235,17 @@ fsiSession.EvalInteraction "let xxx = 1 + 1" 次に部分的に完全な `xxx + xx` というコードの型チェックを実行したいとします: *) -let parseResults, checkResults, checkProjectResults = +let parseResults, checkResults, checkProjectResults = fsiSession.ParseAndCheckInteraction("xxx + xx") |> Async.RunSynchronously -(** +(** `parseResults` と `checkResults` はそれぞれ [エディタ](editor.html) のページで説明している `ParseFileResults` と `CheckFileResults` 型です。 たとえば以下のようなコードでエラーを確認出来ます: *) checkResults.Errors.Length // 1 -(** +(** コードはF# Interactiveセッション内において、その時点までに実行された 有効な宣言からなる論理的な型コンテキストと結びつく形でチェックされます。 @@ -247,10 +256,10 @@ checkResults.Errors.Length // 1 open FSharp.Compiler // ツールチップを取得する -checkResults.GetToolTipText(1, 2, "xxx + xx", ["xxx"], FSharpTokenTag.IDENT) +checkResults.GetToolTipText(1, 2, "xxx + xx", ["xxx"], FSharpTokenTag.IDENT) checkResults.GetSymbolUseAtLocation(1, 2, "xxx + xx", ["xxx"]) // シンボル xxx - + (** 'fsi'オブジェクト ----------------- @@ -281,7 +290,7 @@ FsiEvaluationSessionを使用してコードを評価すると、 評価が進んでも線形には増加しないでしょう。 *) -let collectionTest() = +let collectionTest() = for i in 1 .. 200 do let defaultArgs = [|"fsi.exe";"--noninteractive";"--nologo";"--gui-"|] @@ -291,7 +300,7 @@ let collectionTest() = let fsiConfig = FsiEvaluationSession.GetDefaultConfiguration() use session = FsiEvaluationSession.Create(fsiConfig, defaultArgs, inStream, outStream, errStream, collectible=true) - + session.EvalInteraction (sprintf "type D = { v : int }") let v = session.EvalExpression (sprintf "{ v = 42 * %d }" i) printfn "その %d, 結果 = %A" i v.Value.ReflectionValue diff --git a/fcs/docsrc/content/ja/project.fsx b/fcs/docsrc/content/ja/project.fsx index 47355d9326..2cfc847f48 100644 --- a/fcs/docsrc/content/ja/project.fsx +++ b/fcs/docsrc/content/ja/project.fsx @@ -1,3 +1,12 @@ +(** +--- +category: tutorial +title: プロジェクトの分析 +menu_order: 6 +language: ja + +--- +*) (*** hide ***) #I "../../../../artifacts/bin/fcs/Release/net461" (** @@ -33,7 +42,7 @@ let checker = FSharpChecker.Create() 今回のサンプル入力は以下の通りです: *) -module Inputs = +module Inputs = open System.IO let base1 = Path.GetTempFileName() @@ -45,7 +54,7 @@ module Inputs = let fileSource1 = """ module M -type C() = +type C() = member x.P = 1 let xxx = 3 + 4 @@ -58,10 +67,10 @@ module N open M -type D1() = +type D1() = member x.SomeProperty = M.xxx -type D2() = +type D2() = member x.SomeProperty = M.fff() // 警告を発生させる @@ -75,27 +84,27 @@ let y2 = match 1 with 1 -> M.xxx 2つのファイルを1つのプロジェクトとして扱えるようにします: *) -let projectOptions = +let projectOptions = checker.GetProjectOptionsFromCommandLineArgs (Inputs.projFileName, - [| yield "--simpleresolution" - yield "--noframework" - yield "--debug:full" - yield "--define:DEBUG" - yield "--optimize-" + [| yield "--simpleresolution" + yield "--noframework" + yield "--debug:full" + yield "--define:DEBUG" + yield "--optimize-" yield "--out:" + Inputs.dllName - yield "--doc:test.xml" - yield "--warn:3" - yield "--fullpaths" - yield "--flaterrors" - yield "--target:library" + yield "--doc:test.xml" + yield "--warn:3" + yield "--fullpaths" + yield "--flaterrors" + yield "--target:library" yield Inputs.fileName1 yield Inputs.fileName2 - let references = - [ @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" - @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" - @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" - @"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll"] + let references = + [ @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" + @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" + @"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" + @"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll"] for r in references do yield "-r:" + r |]) @@ -128,9 +137,9 @@ wholeProjectResults.Errors.[0].EndColumn // 16 (** プロジェクト内の全シンボルを取得することもできます: *) -let rec allSymbolsInEntities (entities: IList) = - [ for e in entities do - yield (e :> FSharpSymbol) +let rec allSymbolsInEntities (entities: IList) = + [ for e in entities do + yield (e :> FSharpSymbol) for x in e.MembersFunctionsAndValues do yield (x :> FSharpSymbol) for x in e.UnionCases do @@ -146,8 +155,8 @@ let allSymbols = allSymbolsInEntities wholeProjectResults.AssemblySignature.Enti この処理は即座に完了し、改めてチェックが実行されることもありません。 *) -let backgroundParseResults1, backgroundTypedParse1 = - checker.GetBackgroundCheckResultsForFileInProject(Inputs.fileName1, projectOptions) +let backgroundParseResults1, backgroundTypedParse1 = + checker.GetBackgroundCheckResultsForFileInProject(Inputs.fileName1, projectOptions) |> Async.RunSynchronously @@ -155,7 +164,7 @@ let backgroundParseResults1, backgroundTypedParse1 = そしてそれぞれのファイル内にあるシンボルを解決できます: *) -let xSymbol = +let xSymbol = backgroundTypedParse1.GetSymbolUseAtLocation(9,9,"",["xxx"]) |> Async.RunSynchronously @@ -168,8 +177,8 @@ let usesOfXSymbol = wholeProjectResults.GetUsesOfSymbol(xSymbol.Value.Symbol) 推測されたシグネチャ内にあるすべての定義済みシンボルに対して、 それらがどこで使用されているのかを探し出すこともできます: *) -let allUsesOfAllSignatureSymbols = - [ for s in allSymbols do +let allUsesOfAllSignatureSymbols = + [ for s in allSymbols do yield s.ToString(), wholeProjectResults.GetUsesOfSymbol(s) ] (** @@ -186,30 +195,30 @@ let allUsesOfAllSymbols = wholeProjectResults.GetAllUsesOfAllSymbols() 読み取り中であることに注意してください): *) -let parseResults1, checkAnswer1 = - checker.ParseAndCheckFileInProject(Inputs.fileName1, 0, Inputs.fileSource1, projectOptions) +let parseResults1, checkAnswer1 = + checker.ParseAndCheckFileInProject(Inputs.fileName1, 0, Inputs.fileSource1, projectOptions) |> Async.RunSynchronously -let checkResults1 = - match checkAnswer1 with - | FSharpCheckFileAnswer.Succeeded x -> x +let checkResults1 = + match checkAnswer1 with + | FSharpCheckFileAnswer.Succeeded x -> x | _ -> failwith "想定外の終了状態です" -let parseResults2, checkAnswer2 = +let parseResults2, checkAnswer2 = checker.ParseAndCheckFileInProject(Inputs.fileName2, 0, Inputs.fileSource2, projectOptions) |> Async.RunSynchronously -let checkResults2 = - match checkAnswer2 with - | FSharpCheckFileAnswer.Succeeded x -> x +let checkResults2 = + match checkAnswer2 with + | FSharpCheckFileAnswer.Succeeded x -> x | _ -> failwith "想定外の終了状態です" (** そして再びシンボルを解決したり、参照を検索したりすることができます: *) -let xSymbol2 = - checkResults1.GetSymbolUseAtLocation(9,9,"",["xxx"]) +let xSymbol2 = + checkResults1.GetSymbolUseAtLocation(9,9,"",["xxx"]) |> Async.RunSynchronously let usesOfXSymbol2 = wholeProjectResults.GetUsesOfSymbol(xSymbol2.Value.Symbol) diff --git a/fcs/docsrc/content/ja/symbols.fsx b/fcs/docsrc/content/ja/symbols.fsx index 052a9b978c..84bac9e137 100644 --- a/fcs/docsrc/content/ja/symbols.fsx +++ b/fcs/docsrc/content/ja/symbols.fsx @@ -1,3 +1,12 @@ +(** +--- +category: tutorial +title: シンボルの処理 +menu_order: 4 +language: ja + +--- +*) (*** hide ***) #I "../../../../artifacts/bin/fcs/Release/net461" (** @@ -32,14 +41,14 @@ let checker = FSharpChecker.Create() *) -let parseAndTypeCheckSingleFile (file, input) = +let parseAndTypeCheckSingleFile (file, input) = // スタンドアロンの(スクリプト)ファイルを表すコンテキストを取得 - let projOptions, _errors = + let projOptions, _errors = checker.GetProjectOptionsFromScript(file, input) |> Async.RunSynchronously - let parseFileResults, checkFileResults = - checker.ParseAndCheckFileInProject(file, 0, input, projOptions) + let parseFileResults, checkFileResults = + checker.ParseAndCheckFileInProject(file, 0, input, projOptions) |> Async.RunSynchronously // 型チェックが成功(あるいは100%に到達)するまで待機 @@ -64,19 +73,19 @@ let file = "/home/user/Test.fsx" *) -let input2 = +let input2 = """ [] -let foo(x, y) = +let foo(x, y) = let msg = String.Concat("Hello"," ","world") - if true then - printfn "x = %d, y = %d" x y + if true then + printfn "x = %d, y = %d" x y printfn "%s" msg -type C() = +type C() = member x.P = 1 """ -let parseFileResults, checkFileResults = +let parseFileResults, checkFileResults = parseAndTypeCheckSingleFile(file, input2) (** @@ -137,7 +146,7 @@ fnVal.IsTypeFunction // false *) fnVal.FullType // int * int -> unit fnVal.FullType.IsFunctionType // true -fnVal.FullType.GenericArguments.[0] // int * int +fnVal.FullType.GenericArguments.[0] // int * int fnVal.FullType.GenericArguments.[0].IsTupleType // true let argTy1 = fnVal.FullType.GenericArguments.[0].GenericArguments.[0] @@ -158,15 +167,15 @@ argTy1.TypeDefinition.IsFSharpAbbreviation // true *) let argTy1b = argTy1.TypeDefinition.AbbreviatedType -argTy1b.TypeDefinition.Namespace // Some "Microsoft.FSharp.Core" -argTy1b.TypeDefinition.CompiledName // "int32" +argTy1b.TypeDefinition.Namespace // Some "Microsoft.FSharp.Core" +argTy1b.TypeDefinition.CompiledName // "int32" (** そして再び型省略形 `type int32 = System.Int32` から型に関する完全な情報が取得できます: *) let argTy1c = argTy1b.TypeDefinition.AbbreviatedType -argTy1c.TypeDefinition.Namespace // Some "System" -argTy1c.TypeDefinition.CompiledName // "Int32" +argTy1c.TypeDefinition.Namespace // Some "System" +argTy1c.TypeDefinition.CompiledName // "Int32" (** ファイルに対する型チェックの結果には、 @@ -176,7 +185,7 @@ argTy1c.TypeDefinition.CompiledName // "Int32" let projectContext = checkFileResults.ProjectContext for assembly in projectContext.GetReferencedAssemblies() do - match assembly.FileName with + match assembly.FileName with | None -> printfn "コンパイル時にファイルの存在しないアセンブリを参照しました" | Some s -> printfn "コンパイル時にアセンブリ '%s' を参照しました" s @@ -202,13 +211,13 @@ for assembly in projectContext.GetReferencedAssemblies() do 異なる "projOptions" を指定すると、巨大なプロジェクトに対する設定を 構成することもできます。 *) -let parseAndCheckScript (file, input) = - let projOptions, errors = +let parseAndCheckScript (file, input) = + let projOptions, errors = checker.GetProjectOptionsFromScript(file, input) |> Async.RunSynchronously - let projResults = - checker.ParseAndCheckProject(projOptions) + let projResults = + checker.ParseAndCheckProject(projOptions) |> Async.RunSynchronously projResults @@ -232,5 +241,5 @@ let assemblySig = projectResults.AssemblySignature assemblySig.Entities.Count = 1 // エンティティは1つ assemblySig.Entities.[0].Namespace // null assemblySig.Entities.[0].DisplayName // "Tmp28D0" -assemblySig.Entities.[0].MembersFunctionsAndValues.Count // 1 -assemblySig.Entities.[0].MembersFunctionsAndValues.[0].DisplayName // "foo" +assemblySig.Entities.[0].MembersFunctionsAndValues.Count // 1 +assemblySig.Entities.[0].MembersFunctionsAndValues.[0].DisplayName // "foo" diff --git a/fcs/docsrc/content/ja/tokenizer.fsx b/fcs/docsrc/content/ja/tokenizer.fsx index 729964bad0..6731501088 100644 --- a/fcs/docsrc/content/ja/tokenizer.fsx +++ b/fcs/docsrc/content/ja/tokenizer.fsx @@ -1,3 +1,12 @@ +(** +--- +category: tutorial +title: F#トークナイザを使用する +menu_order: 1 +language: ja + +--- +*) (*** hide ***) #I "../../../../artifacts/bin/fcs/Release/net461" (** @@ -106,7 +115,7 @@ let lines = """ 直前の行における **最後** の状態を使って `tokenizeLine` を呼び出します: *) /// 複数行のコードに対してトークンの名前を表示します -let rec tokenizeLines state count lines = +let rec tokenizeLines state count lines = match lines with | line::lines -> // トークナイザを作成して1行をトークン化 @@ -131,11 +140,11 @@ lines [lang=text] Line 1 - LINE_COMMENT LINE_COMMENT (...) LINE_COMMENT + LINE_COMMENT LINE_COMMENT (...) LINE_COMMENT Line 2 - LET WHITESPACE IDENT LPAREN RPAREN WHITESPACE EQUALS + LET WHITESPACE IDENT LPAREN RPAREN WHITESPACE EQUALS Line 3 - IDENT WHITESPACE STRING_TEXT (...) STRING_TEXT STRING + IDENT WHITESPACE STRING_TEXT (...) STRING_TEXT STRING 注目すべきは、単一行コメントや文字列に対して、 トークナイザが複数回(大まかにいって単語単位で) `LINE_COMMENT` や diff --git a/fcs/docsrc/content/ja/untypedtree.fsx b/fcs/docsrc/content/ja/untypedtree.fsx index b6974d1306..a558bf132a 100644 --- a/fcs/docsrc/content/ja/untypedtree.fsx +++ b/fcs/docsrc/content/ja/untypedtree.fsx @@ -1,3 +1,12 @@ +(** +--- +category: tutorial +title: 型無し構文木の処理 +menu_order: 2 +language: ja + +--- +*) (*** hide ***) #I "../../../../artifacts/bin/fcs/Release/net461" (** @@ -66,18 +75,18 @@ ASTを取得するために、ファイル名とソースコードを受け取 *) /// 特定の入力に対する型無し構文木を取得する -let getUntypedTree (file, input) = +let getUntypedTree (file, input) = // 1つのスクリプトファイルから推測される「プロジェクト」用の // コンパイラオプションを取得する let projOptions, errors = - checker.GetProjectOptionsFromScript(file, input) + checker.GetProjectOptionsFromScript(file, input) |> Async.RunSynchronously let parsingOptions, _errors = checker.GetParsingOptionsFromProjectOptions(projectOptions) // コンパイラの第1フェーズを実行する - let untypedRes = - checker.ParseFile(file, input, parsingOptions) + let untypedRes = + checker.ParseFile(file, input, parsingOptions) |> Async.RunSynchronously match untypedRes.ParseTree with @@ -125,7 +134,7 @@ ASTを処理する場合、異なる文法的要素に対するパターンマ /// パターンの走査 /// これは let = あるいは 'match' 式に対する例です let rec visitPattern = function - | SynPat.Wild(_) -> + | SynPat.Wild(_) -> printfn " .. アンダースコアパターン" | SynPat.Named(pat, name, _, _, _) -> visitPattern pat @@ -156,16 +165,16 @@ let rec visitExpression = function printfn "条件部:" visitExpression cond visitExpression trueBranch - falseBranchOpt |> Option.iter visitExpression + falseBranchOpt |> Option.iter visitExpression | SynExpr.LetOrUse(_, _, bindings, body, _) -> // バインディングを走査 // ('let .. = .. and .. = .. in ...' に対しては複数回走査されることがある) printfn "以下のバインディングを含むLetOrUse:" for binding in bindings do - let (Binding(access, kind, inlin, mutabl, attrs, xmlDoc, + let (Binding(access, kind, inlin, mutabl, attrs, xmlDoc, data, pat, retInfo, init, m, sp)) = binding - visitPattern pat + visitPattern pat visitExpression init // 本体の式を走査 printfn "本体は以下:" @@ -190,7 +199,7 @@ let rec visitExpression = function /// モジュール内の宣言リストを走査する。 /// モジュール内のトップレベルに記述できるすべての要素 /// (letバインディングやネストされたモジュール、型の宣言など)が対象になる。 -let visitDeclarations decls = +let visitDeclarations decls = for declaration in decls do match declaration with | SynModuleDecl.Let(isRec, bindings, range) -> @@ -198,10 +207,10 @@ let visitDeclarations decls = // (visitExpressionで処理したような)式としてのletバインディングと // 似ているが、本体を持たない for binding in bindings do - let (Binding(access, kind, inlin, mutabl, attrs, xmlDoc, + let (Binding(access, kind, inlin, mutabl, attrs, xmlDoc, data, pat, retInfo, body, m, sp)) = binding - visitPattern pat - visitExpression body + visitPattern pat + visitExpression body | _ -> printfn " - サポート対象外の宣言: %A" declaration (** `visitDeclarations` 関数はモジュールや名前空間の宣言のシーケンスを走査する @@ -234,15 +243,15 @@ UnixとWindowsどちらの形式でも指定できます: *) // コンパイラサービスへのサンプル入力 let input = """ - let foo() = + let foo() = let msg = "Hello world" - if true then + if true then printfn "%s" msg """ // Unix形式のファイル名 let file = "/home/user/Test.fsx" // サンプルF#コードに対するASTを取得 -let tree = getUntypedTree(file, input) +let tree = getUntypedTree(file, input) (** このコードをF# Interactiveで実行した場合、コンソールに `tree;;` と入力すると、 データ構造に対する文字列表現が表示されることが確認できます。 diff --git a/fcs/docsrc/content/project.fsx b/fcs/docsrc/content/project.fsx index e85bad35e0..ee0750561d 100644 --- a/fcs/docsrc/content/project.fsx +++ b/fcs/docsrc/content/project.fsx @@ -1,3 +1,11 @@ +(** +--- +category: tutorial +title: Project Analysis +menu_order: 6 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** @@ -29,14 +37,14 @@ open System.Collections.Generic open FSharp.Compiler.SourceCodeServices open FSharp.Compiler.Text -// Create an interactive checker instance +// Create an interactive checker instance let checker = FSharpChecker.Create() (** Here are our sample inputs: *) -module Inputs = +module Inputs = open System.IO let base1 = Path.GetTempFileName() @@ -48,7 +56,7 @@ module Inputs = let fileSource1 = """ module M -type C() = +type C() = member x.P = 1 let xxx = 3 + 4 @@ -61,10 +69,10 @@ module N open M -type D1() = +type D1() = member x.SomeProperty = M.xxx -type D2() = +type D2() = member x.SomeProperty = M.fff() + D1().P // Generate a warning @@ -77,8 +85,8 @@ let y2 = match 1 with 1 -> M.xxx We use `GetProjectOptionsFromCommandLineArgs` to treat two files as a project: *) -let projectOptions = - let sysLib nm = +let projectOptions = + let sysLib nm = if System.Environment.OSVersion.Platform = System.PlatformID.Win32NT then // file references only valid on Windows System.Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFilesX86) + @@ -86,37 +94,37 @@ let projectOptions = else let sysDir = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() let (++) a b = System.IO.Path.Combine(a,b) - sysDir ++ nm + ".dll" + sysDir ++ nm + ".dll" - let fsCore4300() = + let fsCore4300() = if System.Environment.OSVersion.Platform = System.PlatformID.Win32NT then // file references only valid on Windows System.Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFilesX86) + - @"\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll" - else + @"\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll" + else sysLib "FSharp.Core" checker.GetProjectOptionsFromCommandLineArgs (Inputs.projFileName, - [| yield "--simpleresolution" - yield "--noframework" - yield "--debug:full" - yield "--define:DEBUG" - yield "--optimize-" + [| yield "--simpleresolution" + yield "--noframework" + yield "--debug:full" + yield "--define:DEBUG" + yield "--optimize-" yield "--out:" + Inputs.dllName - yield "--doc:test.xml" - yield "--warn:3" - yield "--fullpaths" - yield "--flaterrors" - yield "--target:library" + yield "--doc:test.xml" + yield "--warn:3" + yield "--fullpaths" + yield "--flaterrors" + yield "--target:library" yield Inputs.fileName1 yield Inputs.fileName2 let references = - [ sysLib "mscorlib" + [ sysLib "mscorlib" sysLib "System" sysLib "System.Core" fsCore4300() ] - for r in references do + for r in references do yield "-r:" + r |]) (** @@ -147,9 +155,9 @@ Now look at the inferred signature for the project: (** You can also get all symbols in the project: *) -let rec allSymbolsInEntities (entities: IList) = - [ for e in entities do - yield (e :> FSharpSymbol) +let rec allSymbolsInEntities (entities: IList) = + [ for e in entities do + yield (e :> FSharpSymbol) for x in e.MembersFunctionsAndValues do yield (x :> FSharpSymbol) for x in e.UnionCases do @@ -164,8 +172,8 @@ After checking the whole project, you can access the background results for indi in the project. This will be fast and will not involve any additional checking. *) -let backgroundParseResults1, backgroundTypedParse1 = - checker.GetBackgroundCheckResultsForFileInProject(Inputs.fileName1, projectOptions) +let backgroundParseResults1, backgroundTypedParse1 = + checker.GetBackgroundCheckResultsForFileInProject(Inputs.fileName1, projectOptions) |> Async.RunSynchronously @@ -173,7 +181,7 @@ let backgroundParseResults1, backgroundTypedParse1 = You can now resolve symbols in each file: *) -let xSymbolUseOpt = +let xSymbolUseOpt = backgroundTypedParse1.GetSymbolUseAtLocation(9,9,"",["xxx"]) |> Async.RunSynchronously @@ -185,63 +193,63 @@ let xSymbol = xSymbolUse.Symbol You can find out more about a symbol by doing type checks on various symbol kinds: *) -let xSymbolAsValue = - match xSymbol with +let xSymbolAsValue = + match xSymbol with | :? FSharpMemberOrFunctionOrValue as xSymbolAsVal -> xSymbolAsVal | _ -> failwith "we expected this to be a member, function or value" - + (** For each symbol, you can look up the references to that symbol: *) -let usesOfXSymbol = - wholeProjectResults.GetUsesOfSymbol(xSymbol) +let usesOfXSymbol = + wholeProjectResults.GetUsesOfSymbol(xSymbol) |> Async.RunSynchronously (** You can iterate all the defined symbols in the inferred signature and find where they are used: *) -let allUsesOfAllSignatureSymbols = - [ for s in allSymbols do - let uses = wholeProjectResults.GetUsesOfSymbol(s) |> Async.RunSynchronously +let allUsesOfAllSignatureSymbols = + [ for s in allSymbols do + let uses = wholeProjectResults.GetUsesOfSymbol(s) |> Async.RunSynchronously yield s.ToString(), uses ] (** You can also look at all the symbols uses in the whole project (including uses of symbols with local scope) *) -let allUsesOfAllSymbols = +let allUsesOfAllSymbols = wholeProjectResults.GetAllUsesOfAllSymbols() |> Async.RunSynchronously (** -You can also request checks of updated versions of files within the project (note that the other files +You can also request checks of updated versions of files within the project (note that the other files in the project are still read from disk, unless you are using the [FileSystem API](filesystem.html)): *) -let parseResults1, checkAnswer1 = +let parseResults1, checkAnswer1 = checker.ParseAndCheckFileInProject(Inputs.fileName1, 0, SourceText.ofString Inputs.fileSource1, projectOptions) |> Async.RunSynchronously -let checkResults1 = - match checkAnswer1 with - | FSharpCheckFileAnswer.Succeeded x -> x +let checkResults1 = + match checkAnswer1 with + | FSharpCheckFileAnswer.Succeeded x -> x | _ -> failwith "unexpected aborted" -let parseResults2, checkAnswer2 = +let parseResults2, checkAnswer2 = checker.ParseAndCheckFileInProject(Inputs.fileName2, 0, SourceText.ofString Inputs.fileSource2, projectOptions) |> Async.RunSynchronously -let checkResults2 = - match checkAnswer2 with - | FSharpCheckFileAnswer.Succeeded x -> x +let checkResults2 = + match checkAnswer2 with + | FSharpCheckFileAnswer.Succeeded x -> x | _ -> failwith "unexpected aborted" (** Again, you can resolve symbols and ask for references: *) -let xSymbolUse2Opt = +let xSymbolUse2Opt = checkResults1.GetSymbolUseAtLocation(9,9,"",["xxx"]) |> Async.RunSynchronously @@ -249,26 +257,26 @@ let xSymbolUse2 = xSymbolUse2Opt.Value let xSymbol2 = xSymbolUse2.Symbol -let usesOfXSymbol2 = - wholeProjectResults.GetUsesOfSymbol(xSymbol2) +let usesOfXSymbol2 = + wholeProjectResults.GetUsesOfSymbol(xSymbol2) |> Async.RunSynchronously (** Or ask for all the symbols uses in the file (including uses of symbols with local scope) *) -let allUsesOfAllSymbolsInFile1 = +let allUsesOfAllSymbolsInFile1 = checkResults1.GetAllUsesOfAllSymbolsInFile() |> Async.RunSynchronously (** Or ask for all the uses of one symbol in one file: *) -let allUsesOfXSymbolInFile1 = +let allUsesOfXSymbolInFile1 = checkResults1.GetUsesOfSymbolInFile(xSymbol2) |> Async.RunSynchronously -let allUsesOfXSymbolInFile2 = +let allUsesOfXSymbolInFile2 = checkResults2.GetUsesOfSymbolInFile(xSymbol2) |> Async.RunSynchronously @@ -277,8 +285,8 @@ let allUsesOfXSymbolInFile2 = Analyzing multiple projects ----------------------------- -If you have multiple F# projects to analyze which include references from some projects to others, -then the simplest way to do this is to build the projects and specify the cross-project references using +If you have multiple F# projects to analyze which include references from some projects to others, +then the simplest way to do this is to build the projects and specify the cross-project references using a `-r:path-to-output-of-project.dll` argument in the ProjectOptions. However, this requires the build of each project to succeed, producing the DLL file on disk which can be referred to. @@ -293,14 +301,14 @@ When a project reference is used, the analysis will make use of the results of i analysis of the referenced F# project from source files, without requiring the compilation of these files to DLLs. To efficiently analyze a set of F# projects which include cross-references, you should populate the ProjectReferences -correctly and then analyze each project in turn. +correctly and then analyze each project in turn. *) (** -> **NOTE:** Project references are disabled if the assembly being referred to contains type provider components - - specifying the project reference will have no effect beyond forcing the analysis of the project, and the DLL will +> **NOTE:** Project references are disabled if the assembly being referred to contains type provider components - + specifying the project reference will have no effect beyond forcing the analysis of the project, and the DLL will still be required on disk. *) @@ -309,7 +317,7 @@ correctly and then analyze each project in turn. Summary ------- -As you have seen, the `ParseAndCheckProject` lets you access results of project-wide analysis +As you have seen, the `ParseAndCheckProject` lets you access results of project-wide analysis such as symbol references. To learn more about working with symbols, see [Symbols](symbols.html). Using the FSharpChecker component in multi-project, incremental and interactive editing situations may involve diff --git a/fcs/docsrc/content/queue.fsx b/fcs/docsrc/content/queue.fsx index 8de84c19e2..1a30a89e88 100644 --- a/fcs/docsrc/content/queue.fsx +++ b/fcs/docsrc/content/queue.fsx @@ -1,3 +1,11 @@ +(** +--- +category: how-to +title: Notes on the FSharpChecker operations queue +menu_order: 1 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** @@ -6,55 +14,55 @@ Compiler Services: Notes on the FSharpChecker operations queue This is a design note on the FSharpChecker component and its operations queue. See also the notes on the [FSharpChecker caches](caches.html) -FSharpChecker maintains an operations queue. Items from the FSharpChecker operations queue are processed -sequentially and in order. +FSharpChecker maintains an operations queue. Items from the FSharpChecker operations queue are processed +sequentially and in order. The thread processing these requests can also run a low-priority, interleaved background operation when the -queue is empty. This can be used to implicitly bring the background check of a project "up-to-date". +queue is empty. This can be used to implicitly bring the background check of a project "up-to-date". When the operations queue has been empty for 1 second, -this background work is run in small incremental fragments. This work is cooperatively time-sliced to be approximately <50ms, (see `maxTimeShareMilliseconds` in -IncrementalBuild.fs). The project to be checked in the background is set implicitly +this background work is run in small incremental fragments. This work is cooperatively time-sliced to be approximately <50ms, (see `maxTimeShareMilliseconds` in +IncrementalBuild.fs). The project to be checked in the background is set implicitly by calls to ``CheckFileInProject`` and ``ParseAndCheckFileInProject``. To disable implicit background checking completely, set ``checker.ImplicitlyStartBackgroundWork`` to false. To change the time before background work starts, set ``checker.PauseBeforeBackgroundWork`` to the required number of milliseconds. -Most calls to the FSharpChecker API enqueue an operation in the FSharpChecker compiler queue. These correspond to the +Most calls to the FSharpChecker API enqueue an operation in the FSharpChecker compiler queue. These correspond to the calls to EnqueueAndAwaitOpAsync in [service.fs](https://github.com/fsharp/FSharp.Compiler.Service/blob/master/src/fsharp/service/service.fs). -* For example, calling `ParseAndCheckProject` enqueues a `ParseAndCheckProjectImpl` operation. The time taken for the +* For example, calling `ParseAndCheckProject` enqueues a `ParseAndCheckProjectImpl` operation. The time taken for the operation will depend on how much work is required to bring the project analysis up-to-date. -* Likewise, calling any of `GetUsesOfSymbol`, `GetAllUsesOfAllSymbols`, `ParseFileInProject`, - `GetBackgroundParseResultsForFileInProject`, `MatchBraces`, `CheckFileInProjectIfReady`, `ParseAndCheckFileInProject`, `GetBackgroundCheckResultsForFileInProject`, - `ParseAndCheckProject`, `GetProjectOptionsFromScript`, `InvalidateConfiguration`, `InvaidateAll` and operations - on FSharpCheckResults will cause an operation to be enqueued. The length of the operation will +* Likewise, calling any of `GetUsesOfSymbol`, `GetAllUsesOfAllSymbols`, `ParseFileInProject`, + `GetBackgroundParseResultsForFileInProject`, `MatchBraces`, `CheckFileInProjectIfReady`, `ParseAndCheckFileInProject`, `GetBackgroundCheckResultsForFileInProject`, + `ParseAndCheckProject`, `GetProjectOptionsFromScript`, `InvalidateConfiguration`, `InvaidateAll` and operations + on FSharpCheckResults will cause an operation to be enqueued. The length of the operation will vary - many will be very fast - but they won't be processed until other operations already in the queue are complete. Some operations do not enqueue anything on the FSharpChecker operations queue - notably any accesses to the Symbol APIs. These use cross-threaded access to the TAST data produced by other FSharpChecker operations. -Some tools throw a lot of interactive work at the FSharpChecker operations queue. +Some tools throw a lot of interactive work at the FSharpChecker operations queue. If you are writing such a component, consider running your project against a debug build of FSharp.Compiler.Service.dll to see the Trace.WriteInformation messages indicating the length of the operations queue and the time to process requests. -For those writing interactive editors which use FCS, you +For those writing interactive editors which use FCS, you should be cautious about operations that request a check of the entire project. For example, be careful about requesting the check of an entire project -on operations like "Highlight Symbol" or "Find Unused Declarations" +on operations like "Highlight Symbol" or "Find Unused Declarations" (which run automatically when the user opens a file or moves the cursor). -as opposed to operations like "Find All References" (which a user explicitly triggers). -Project checking can cause long and contention on the FSharpChecker operations queue. +as opposed to operations like "Find All References" (which a user explicitly triggers). +Project checking can cause long and contention on the FSharpChecker operations queue. -Requests to FCS can be cancelled by cancelling the async operation. (Some requests also -include additional callbacks which can be used to indicate a cancellation condition). -This cancellation will be effective if the cancellation is performed before the operation +Requests to FCS can be cancelled by cancelling the async operation. (Some requests also +include additional callbacks which can be used to indicate a cancellation condition). +This cancellation will be effective if the cancellation is performed before the operation is executed in the operations queue. Summary ------- In this design note, you learned that the FSharpChecker component keeps an operations queue. When using FSharpChecker -in highly interactive situations, you should carefully consider the characteristics of the operations you are +in highly interactive situations, you should carefully consider the characteristics of the operations you are enqueueing. *) diff --git a/fcs/docsrc/content/react.fsx b/fcs/docsrc/content/react.fsx index f00f83c7d6..3bb8cbb73b 100644 --- a/fcs/docsrc/content/react.fsx +++ b/fcs/docsrc/content/react.fsx @@ -1,16 +1,24 @@ +(** +--- +category: tutorial +title: Reacting to Changes +menu_order: 10 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** Compiler Services: Reacting to Changes ============================================ -This tutorial discusses some technical aspects of how to make sure the F# compiler service is +This tutorial discusses some technical aspects of how to make sure the F# compiler service is providing up-to-date results especially when hosted in an IDE. See also [project wide analysis](project.html) for information on project analysis. > **NOTE:** The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published. -The logical results of all "Check" routines (``ParseAndCheckFileInProject``, ``GetBackgroundCheckResultsForFileInProject``, +The logical results of all "Check" routines (``ParseAndCheckFileInProject``, ``GetBackgroundCheckResultsForFileInProject``, ``TryGetRecentTypeCheckResultsForFile``, ``ParseAndCheckProject``) depend on results reported by the file system, especially the ``IFileSystem`` implementation described in the tutorial on [project wide analysis](project.html). Logically speaking, these results would be different if file system changes occur. For example, @@ -24,27 +32,27 @@ FCS doesn't listen for changes directly - for example, it creates no ``FileWatch and partly because some hosts forbid the creation of FileWatcher objects. In most cases the repeated timestamp requests are sufficient. If you don't actively -listen for changes, then ``FSharpChecker`` will still do _approximately_ +listen for changes, then ``FSharpChecker`` will still do _approximately_ the right thing, because it is asking for time stamps repeatedly. However, some updates on the file system -(such as a DLL appearing after a build, or the user randomly pasting a file into a folder) +(such as a DLL appearing after a build, or the user randomly pasting a file into a folder) may not actively be noticed by ``FSharpChecker`` until some operation happens to ask for a timestamp. By issuing fresh requests, you can ensure that FCS actively reassesses the state of play when stays up-to-date when changes are observed. If you want to more actively listen for changes, then you should add watchers for the files specified in the ``DependencyFiles`` property of ``FSharpCheckFileResults`` and ``FSharpCheckProjectResults``. -Here�s what you need to do: +Here�s what you need to do: * When your client notices an CHANGE event on a DependencyFile, it should schedule a refresh call to perform the ParseAndCheckFileInProject (or other operation) again. This will result in fresh FileSystem calls to compute time stamps. -* When your client notices an ADD event on a DependencyFile, it should call ``checker.InvalidateConfiguration`` - for all active projects in which the file occurs. This will result in fresh FileSystem calls to compute time +* When your client notices an ADD event on a DependencyFile, it should call ``checker.InvalidateConfiguration`` + for all active projects in which the file occurs. This will result in fresh FileSystem calls to compute time stamps, and fresh calls to compute whether files exist. -* Generally clients don�t listen for DELETE events on files. Although it would be logically more consistent - to do so, in practice it�s very irritating for a "project clean" to invalidate all intellisense and - cause lots of red squiggles. Some source control tools also make a change by removing and adding files, which +* Generally clients don�t listen for DELETE events on files. Although it would be logically more consistent + to do so, in practice it�s very irritating for a "project clean" to invalidate all intellisense and + cause lots of red squiggles. Some source control tools also make a change by removing and adding files, which is best noticed as a single change event. @@ -57,8 +65,8 @@ If your host happens to be Visual Studio, then this is one technique you can use let vsFileWatch = fls.GetService(typeof) :?> IVsFileChangeEx // Watch the Add and Change events - let fileChangeFlags = - uint32 (_VSFILECHANGEFLAGS.VSFILECHG_Add ||| + let fileChangeFlags = + uint32 (_VSFILECHANGEFLAGS.VSFILECHG_Add ||| // _VSFILECHANGEFLAGS.VSFILECHG_Del ||| // don't listen for deletes - if a file (such as a 'Clean'ed project reference) is deleted, just keep using stale info _VSFILECHANGEFLAGS.VSFILECHG_Time) @@ -66,7 +74,7 @@ If your host happens to be Visual Studio, then this is one technique you can use let cookie = Com.ThrowOnFailure1(vsFileWatch.AdviseFileChange(file, fileChangeFlags, changeEvents)) ... - + // Unadvised file changes... Com.ThrowOnFailure0(vsFileWatch.UnadviseFileChange(cookie)) diff --git a/fcs/docsrc/content/symbols.fsx b/fcs/docsrc/content/symbols.fsx index 50ca938387..426cdf34b5 100644 --- a/fcs/docsrc/content/symbols.fsx +++ b/fcs/docsrc/content/symbols.fsx @@ -1,3 +1,11 @@ +(** +--- +category: tutorial +title: Working with symbols +menu_order: 4 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** @@ -21,7 +29,7 @@ open System.IO open FSharp.Compiler.SourceCodeServices open FSharp.Compiler.Text -// Create an interactive checker instance +// Create an interactive checker instance let checker = FSharpChecker.Create() (** @@ -30,14 +38,14 @@ We now perform type checking on the specified input: *) -let parseAndTypeCheckSingleFile (file, input) = +let parseAndTypeCheckSingleFile (file, input) = // Get context representing a stand-alone (script) file - let projOptions, errors = + let projOptions, errors = checker.GetProjectOptionsFromScript(file, input) |> Async.RunSynchronously - let parseFileResults, checkFileResults = - checker.ParseAndCheckFileInProject(file, 0, input, projOptions) + let parseFileResults, checkFileResults = + checker.ParseAndCheckFileInProject(file, 0, input, projOptions) |> Async.RunSynchronously // Wait until type checking succeeds (or 100 attempts) @@ -53,35 +61,35 @@ let file = "/home/user/Test.fsx" After type checking a file, you can access the inferred signature of a project up to and including the checking of the given file through the `PartialAssemblySignature` property of the `TypeCheckResults`. -The full signature information is available for modules, types, attributes, members, values, functions, +The full signature information is available for modules, types, attributes, members, values, functions, union cases, record types, units of measure and other F# language constructs. The typed expression trees are also available, see [typed tree tutorial](typedtree.html). *) -let input2 = +let input2 = """ [] -let foo(x, y) = +let foo(x, y) = let msg = String.Concat("Hello"," ","world") - if true then - printfn "x = %d, y = %d" x y + if true then + printfn "x = %d, y = %d" x y printfn "%s" msg -type C() = +type C() = member x.P = 1 """ -let parseFileResults, checkFileResults = +let parseFileResults, checkFileResults = parseAndTypeCheckSingleFile(file, SourceText.ofString input2) (** Now get the partial assembly signature for the code: *) let partialAssemblySignature = checkFileResults.PartialAssemblySignature - + partialAssemblySignature.Entities.Count = 1 // one entity - + (** Now get the entity that corresponds to the module containing the code: @@ -133,8 +141,8 @@ more information like the names of the arguments.) *) fnVal.FullType // int * int -> unit fnVal.FullType.IsFunctionType // int * int -> unit -fnVal.FullType.GenericArguments.[0] // int * int -fnVal.FullType.GenericArguments.[0].IsTupleType // int * int +fnVal.FullType.GenericArguments.[0] // int * int +fnVal.FullType.GenericArguments.[0].IsTupleType // int * int let argTy1 = fnVal.FullType.GenericArguments.[0].GenericArguments.[0] argTy1.TypeDefinition.DisplayName // int @@ -152,28 +160,28 @@ We can now look at the right-hand-side of the type abbreviation, which is the ty *) let argTy1b = argTy1.TypeDefinition.AbbreviatedType -argTy1b.TypeDefinition.Namespace // Some "Microsoft.FSharp.Core" -argTy1b.TypeDefinition.CompiledName // "int32" +argTy1b.TypeDefinition.Namespace // Some "Microsoft.FSharp.Core" +argTy1b.TypeDefinition.CompiledName // "int32" (** -Again we can now look through the type abbreviation `type int32 = System.Int32` to get the +Again we can now look through the type abbreviation `type int32 = System.Int32` to get the full information about the type: *) let argTy1c = argTy1b.TypeDefinition.AbbreviatedType -argTy1c.TypeDefinition.Namespace // Some "SystemCore" -argTy1c.TypeDefinition.CompiledName // "Int32" +argTy1c.TypeDefinition.Namespace // Some "SystemCore" +argTy1c.TypeDefinition.CompiledName // "Int32" (** The type checking results for a file also contain information extracted from the project (or script) options used in the compilation, called the `ProjectContext`: *) let projectContext = checkFileResults.ProjectContext - + for assembly in projectContext.GetReferencedAssemblies() do - match assembly.FileName with - | None -> printfn "compilation referenced an assembly without a file" + match assembly.FileName with + | None -> printfn "compilation referenced an assembly without a file" | Some s -> printfn "compilation references assembly '%s'" s - + (** **Notes:** @@ -189,12 +197,12 @@ for assembly in projectContext.GetReferencedAssemblies() do ## Getting symbolic information about whole projects -To check whole projects, create a checker, then call `parseAndCheckScript`. In this case, we just check -the project for a single script. By specifying a different "projOptions" you can create +To check whole projects, create a checker, then call `parseAndCheckScript`. In this case, we just check +the project for a single script. By specifying a different "projOptions" you can create a specification of a larger project. *) -let parseAndCheckScript (file, input) = - let projOptions, errors = +let parseAndCheckScript (file, input) = + let projOptions, errors = checker.GetProjectOptionsFromScript(file, input) |> Async.RunSynchronously @@ -215,10 +223,10 @@ Now look at the results: *) let assemblySig = projectResults.AssemblySignature - + assemblySig.Entities.Count = 1 // one entity assemblySig.Entities.[0].Namespace // one entity assemblySig.Entities.[0].DisplayName // "Tmp28D0" -assemblySig.Entities.[0].MembersFunctionsAndValues.Count // 1 -assemblySig.Entities.[0].MembersFunctionsAndValues.[0].DisplayName // "foo" - +assemblySig.Entities.[0].MembersFunctionsAndValues.Count // 1 +assemblySig.Entities.[0].MembersFunctionsAndValues.[0].DisplayName // "foo" + diff --git a/fcs/docsrc/content/tokenizer.fsx b/fcs/docsrc/content/tokenizer.fsx index 2af11ad440..b3dfae8cb2 100644 --- a/fcs/docsrc/content/tokenizer.fsx +++ b/fcs/docsrc/content/tokenizer.fsx @@ -1,13 +1,21 @@ +(** +--- +category: tutorial +title: F# Language Tokenizer +menu_order: 1 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** Compiler Services: Using the F# tokenizer ========================================= -This tutorial demonstrates how to call the F# language tokenizer. Given F# +This tutorial demonstrates how to call the F# language tokenizer. Given F# source code, the tokenizer generates a list of source code lines that contain information about tokens on each line. For each token, you can get the type -of the token, exact location as well as color kind of the token (keyword, +of the token, exact location as well as color kind of the token (keyword, identifier, number, operator, etc.). > **NOTE:** The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published @@ -22,7 +30,7 @@ To use the tokenizer, reference `FSharp.Compiler.Service.dll` and open the #r "FSharp.Compiler.Service.dll" open FSharp.Compiler.SourceCodeServices (** -Now you can create an instance of `FSharpSourceTokenizer`. The class takes two +Now you can create an instance of `FSharpSourceTokenizer`. The class takes two arguments - the first is the list of defined symbols and the second is the file name of the source code. The defined symbols are required because the tokenizer handles `#if` directives. The file name is required only to specify @@ -30,7 +38,7 @@ locations of the source code (and it does not have to exist): *) let sourceTok = FSharpSourceTokenizer([], Some "C:\\test.fsx") (** -Using the `sourceTok` object, we can now (repeatedly) tokenize lines of +Using the `sourceTok` object, we can now (repeatedly) tokenize lines of F# source code. Tokenizing F# code @@ -49,7 +57,7 @@ on the `FSharpSourceTokenizer` object that we created earlier: let tokenizer = sourceTok.CreateLineTokenizer("let answer=42") (** Now, we can write a simple recursive function that calls `ScanToken` on the `tokenizer` -until it returns `None` (indicating the end of line). When the function succeeds, it +until it returns `None` (indicating the end of line). When the function succeeds, it returns `FSharpTokenInfo` object with all the interesting details: *) /// Tokenize a single line of F# code @@ -73,7 +81,7 @@ There is a number of interesting properties on `FSharpTokenInfo` including: - `CharClass` and `ColorClass` return information about the token category that can be used for colorizing F# code. - `LeftColumn` and `RightColumn` return the location of the token inside the line. - - `TokenName` is the name of the token (as defined in the F# lexer) + - `TokenName` is the name of the token (as defined in the F# lexer) Note that the tokenizer is stateful - if you want to tokenize single line multiple times, you need to call `CreateLineTokenizer` again. @@ -94,7 +102,7 @@ and the current state). We create a new tokenizer for each line and call `tokeni using the state from the *end* of the previous line: *) /// Print token names for multiple lines of code -let rec tokenizeLines state count lines = +let rec tokenizeLines state count lines = match lines with | line::lines -> // Create tokenizer & tokenize single line @@ -118,14 +126,14 @@ the first line which is just whitespace), the code generates the following outpu [lang=text] Line 1 - LINE_COMMENT LINE_COMMENT (...) LINE_COMMENT + LINE_COMMENT LINE_COMMENT (...) LINE_COMMENT Line 2 - LET WHITESPACE IDENT LPAREN RPAREN WHITESPACE EQUALS + LET WHITESPACE IDENT LPAREN RPAREN WHITESPACE EQUALS Line 3 - IDENT WHITESPACE STRING_TEXT (...) STRING_TEXT STRING + IDENT WHITESPACE STRING_TEXT (...) STRING_TEXT STRING It is worth noting that the tokenizer yields multiple `LINE_COMMENT` tokens and multiple `STRING_TEXT` tokens for each single comment or string (roughly, one for each word), so -if you want to get the entire text of a comment/string, you need to concatenate the +if you want to get the entire text of a comment/string, you need to concatenate the tokens. *) \ No newline at end of file diff --git a/fcs/docsrc/content/typedtree.fsx b/fcs/docsrc/content/typedtree.fsx index 3a10340a42..81d67baaf0 100644 --- a/fcs/docsrc/content/typedtree.fsx +++ b/fcs/docsrc/content/typedtree.fsx @@ -1,3 +1,11 @@ +(** +--- +category: tutorial +title: Processing typed expression tree +menu_order: 5 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** @@ -5,11 +13,11 @@ Compiler Services: Processing typed expression tree ================================================= This tutorial demonstrates how to get the checked, typed expressions tree (TAST) -for F# code and how to walk over the tree. +for F# code and how to walk over the tree. This can be used for creating tools such as source code analyzers and refactoring tools. You can also combine the information with the API available -from [symbols](symbols.html). +from [symbols](symbols.html). > **NOTE:** The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published @@ -35,14 +43,14 @@ We first parse and check some code as in the [symbols](symbols.html) tutorial. One difference is that we set keepAssemblyContents to true. *) -// Create an interactive checker instance +// Create an interactive checker instance let checker = FSharpChecker.Create(keepAssemblyContents=true) -let parseAndCheckSingleFile (input) = - let file = Path.ChangeExtension(System.IO.Path.GetTempFileName(), "fsx") +let parseAndCheckSingleFile (input) = + let file = Path.ChangeExtension(System.IO.Path.GetTempFileName(), "fsx") File.WriteAllText(file, input) // Get context representing a stand-alone (script) file - let projOptions, _errors = + let projOptions, _errors = checker.GetProjectOptionsFromScript(file, SourceText.ofString input) |> Async.RunSynchronously @@ -58,23 +66,23 @@ After type checking a file, you can access the declarations and contents of the *) -let input2 = +let input2 = """ -module MyLibrary +module MyLibrary open System -let foo(x, y) = +let foo(x, y) = let msg = String.Concat("Hello", " ", "world") - if msg.Length > 10 then - 10 - else + if msg.Length > 10 then + 10 + else 20 -type MyClass() = +type MyClass() = member x.MyMethod() = 1 """ -let checkProjectResults = +let checkProjectResults = parseAndCheckSingleFile(input2) checkProjectResults.Errors // should be empty @@ -98,19 +106,19 @@ In this case there is only one implementation file in the project: *) -let rec printDecl prefix d = - match d with - | FSharpImplementationFileDeclaration.Entity (e, subDecls) -> +let rec printDecl prefix d = + match d with + | FSharpImplementationFileDeclaration.Entity (e, subDecls) -> printfn "%sEntity %s was declared and contains %d sub-declarations" prefix e.CompiledName subDecls.Length - for subDecl in subDecls do + for subDecl in subDecls do printDecl (prefix+" ") subDecl - | FSharpImplementationFileDeclaration.MemberOrFunctionOrValue(v, vs, e) -> + | FSharpImplementationFileDeclaration.MemberOrFunctionOrValue(v, vs, e) -> printfn "%sMember or value %s was declared" prefix v.CompiledName - | FSharpImplementationFileDeclaration.InitAction(e) -> - printfn "%sA top-level expression was declared" prefix + | FSharpImplementationFileDeclaration.InitAction(e) -> + printfn "%sA top-level expression was declared" prefix -for d in checkedFile.Declarations do +for d in checkedFile.Declarations do printDecl "" d // Entity MyLibrary was declared and contains 4 sub-declarations @@ -121,8 +129,8 @@ for d in checkedFile.Declarations do (** -As can be seen, the only declaration in the implementation file is that of the module MyLibrary, which -contains fours sub-declarations. +As can be seen, the only declaration in the implementation file is that of the module MyLibrary, which +contains fours sub-declarations. > As an aside, one peculiarity here is that the member declarations (e.g. the "MyMethod" member) are returned as part of the containing module entity, not as part of their class. @@ -130,8 +138,8 @@ contains fours sub-declarations. *) -let myLibraryEntity, myLibraryDecls = - match checkedFile.Declarations.[0] with +let myLibraryEntity, myLibraryDecls = + match checkedFile.Declarations.[0] with | FSharpImplementationFileDeclaration.Entity (e, subDecls) -> (e, subDecls) | _ -> failwith "unexpected" @@ -141,17 +149,17 @@ let myLibraryEntity, myLibraryDecls = What about the expressions, for example the body of function "foo"? Let's find it: *) -let (fooSymbol, fooArgs, fooExpression) = - match myLibraryDecls.[0] with +let (fooSymbol, fooArgs, fooExpression) = + match myLibraryDecls.[0] with | FSharpImplementationFileDeclaration.MemberOrFunctionOrValue(v, vs, e) -> (v, vs, e) | _ -> failwith "unexpected" -(** Here 'fooSymbol' is a symbol associated with the declaration of 'foo', -'fooArgs' represents the formal arguments to the 'foo' function, and 'fooExpression' +(** Here 'fooSymbol' is a symbol associated with the declaration of 'foo', +'fooArgs' represents the formal arguments to the 'foo' function, and 'fooExpression' is an expression for the implementation of the 'foo' function. -Once you have an expression, you can work with it much like an F# quotation. For example, +Once you have an expression, you can work with it much like an F# quotation. For example, you can find its declaration range and its type: *) @@ -169,90 +177,90 @@ Here is a generic expression visitor: *) -let rec visitExpr f (e:FSharpExpr) = +let rec visitExpr f (e:FSharpExpr) = f e - match e with - | BasicPatterns.AddressOf(lvalueExpr) -> + match e with + | BasicPatterns.AddressOf(lvalueExpr) -> visitExpr f lvalueExpr - | BasicPatterns.AddressSet(lvalueExpr, rvalueExpr) -> + | BasicPatterns.AddressSet(lvalueExpr, rvalueExpr) -> visitExpr f lvalueExpr; visitExpr f rvalueExpr - | BasicPatterns.Application(funcExpr, typeArgs, argExprs) -> + | BasicPatterns.Application(funcExpr, typeArgs, argExprs) -> visitExpr f funcExpr; visitExprs f argExprs - | BasicPatterns.Call(objExprOpt, memberOrFunc, typeArgs1, typeArgs2, argExprs) -> + | BasicPatterns.Call(objExprOpt, memberOrFunc, typeArgs1, typeArgs2, argExprs) -> visitObjArg f objExprOpt; visitExprs f argExprs - | BasicPatterns.Coerce(targetType, inpExpr) -> + | BasicPatterns.Coerce(targetType, inpExpr) -> visitExpr f inpExpr - | BasicPatterns.FastIntegerForLoop(startExpr, limitExpr, consumeExpr, isUp) -> + | BasicPatterns.FastIntegerForLoop(startExpr, limitExpr, consumeExpr, isUp) -> visitExpr f startExpr; visitExpr f limitExpr; visitExpr f consumeExpr - | BasicPatterns.ILAsm(asmCode, typeArgs, argExprs) -> + | BasicPatterns.ILAsm(asmCode, typeArgs, argExprs) -> visitExprs f argExprs - | BasicPatterns.ILFieldGet (objExprOpt, fieldType, fieldName) -> + | BasicPatterns.ILFieldGet (objExprOpt, fieldType, fieldName) -> visitObjArg f objExprOpt - | BasicPatterns.ILFieldSet (objExprOpt, fieldType, fieldName, valueExpr) -> + | BasicPatterns.ILFieldSet (objExprOpt, fieldType, fieldName, valueExpr) -> visitObjArg f objExprOpt - | BasicPatterns.IfThenElse (guardExpr, thenExpr, elseExpr) -> + | BasicPatterns.IfThenElse (guardExpr, thenExpr, elseExpr) -> visitExpr f guardExpr; visitExpr f thenExpr; visitExpr f elseExpr - | BasicPatterns.Lambda(lambdaVar, bodyExpr) -> + | BasicPatterns.Lambda(lambdaVar, bodyExpr) -> visitExpr f bodyExpr - | BasicPatterns.Let((bindingVar, bindingExpr), bodyExpr) -> + | BasicPatterns.Let((bindingVar, bindingExpr), bodyExpr) -> visitExpr f bindingExpr; visitExpr f bodyExpr - | BasicPatterns.LetRec(recursiveBindings, bodyExpr) -> + | BasicPatterns.LetRec(recursiveBindings, bodyExpr) -> List.iter (snd >> visitExpr f) recursiveBindings; visitExpr f bodyExpr - | BasicPatterns.NewArray(arrayType, argExprs) -> + | BasicPatterns.NewArray(arrayType, argExprs) -> visitExprs f argExprs - | BasicPatterns.NewDelegate(delegateType, delegateBodyExpr) -> + | BasicPatterns.NewDelegate(delegateType, delegateBodyExpr) -> visitExpr f delegateBodyExpr - | BasicPatterns.NewObject(objType, typeArgs, argExprs) -> + | BasicPatterns.NewObject(objType, typeArgs, argExprs) -> visitExprs f argExprs - | BasicPatterns.NewRecord(recordType, argExprs) -> + | BasicPatterns.NewRecord(recordType, argExprs) -> visitExprs f argExprs - | BasicPatterns.NewAnonRecord(recordType, argExprs) -> + | BasicPatterns.NewAnonRecord(recordType, argExprs) -> visitExprs f argExprs - | BasicPatterns.NewTuple(tupleType, argExprs) -> + | BasicPatterns.NewTuple(tupleType, argExprs) -> visitExprs f argExprs - | BasicPatterns.NewUnionCase(unionType, unionCase, argExprs) -> + | BasicPatterns.NewUnionCase(unionType, unionCase, argExprs) -> visitExprs f argExprs - | BasicPatterns.Quote(quotedExpr) -> + | BasicPatterns.Quote(quotedExpr) -> visitExpr f quotedExpr - | BasicPatterns.FSharpFieldGet(objExprOpt, recordOrClassType, fieldInfo) -> + | BasicPatterns.FSharpFieldGet(objExprOpt, recordOrClassType, fieldInfo) -> visitObjArg f objExprOpt - | BasicPatterns.AnonRecordGet(objExpr, recordOrClassType, fieldInfo) -> + | BasicPatterns.AnonRecordGet(objExpr, recordOrClassType, fieldInfo) -> visitExpr f objExpr - | BasicPatterns.FSharpFieldSet(objExprOpt, recordOrClassType, fieldInfo, argExpr) -> + | BasicPatterns.FSharpFieldSet(objExprOpt, recordOrClassType, fieldInfo, argExpr) -> visitObjArg f objExprOpt; visitExpr f argExpr - | BasicPatterns.Sequential(firstExpr, secondExpr) -> + | BasicPatterns.Sequential(firstExpr, secondExpr) -> visitExpr f firstExpr; visitExpr f secondExpr - | BasicPatterns.TryFinally(bodyExpr, finalizeExpr) -> + | BasicPatterns.TryFinally(bodyExpr, finalizeExpr) -> visitExpr f bodyExpr; visitExpr f finalizeExpr - | BasicPatterns.TryWith(bodyExpr, _, _, catchVar, catchExpr) -> + | BasicPatterns.TryWith(bodyExpr, _, _, catchVar, catchExpr) -> visitExpr f bodyExpr; visitExpr f catchExpr - | BasicPatterns.TupleGet(tupleType, tupleElemIndex, tupleExpr) -> + | BasicPatterns.TupleGet(tupleType, tupleElemIndex, tupleExpr) -> visitExpr f tupleExpr - | BasicPatterns.DecisionTree(decisionExpr, decisionTargets) -> + | BasicPatterns.DecisionTree(decisionExpr, decisionTargets) -> visitExpr f decisionExpr; List.iter (snd >> visitExpr f) decisionTargets - | BasicPatterns.DecisionTreeSuccess (decisionTargetIdx, decisionTargetExprs) -> + | BasicPatterns.DecisionTreeSuccess (decisionTargetIdx, decisionTargetExprs) -> visitExprs f decisionTargetExprs - | BasicPatterns.TypeLambda(genericParam, bodyExpr) -> + | BasicPatterns.TypeLambda(genericParam, bodyExpr) -> visitExpr f bodyExpr - | BasicPatterns.TypeTest(ty, inpExpr) -> + | BasicPatterns.TypeTest(ty, inpExpr) -> visitExpr f inpExpr - | BasicPatterns.UnionCaseSet(unionExpr, unionType, unionCase, unionCaseField, valueExpr) -> + | BasicPatterns.UnionCaseSet(unionExpr, unionType, unionCase, unionCaseField, valueExpr) -> visitExpr f unionExpr; visitExpr f valueExpr - | BasicPatterns.UnionCaseGet(unionExpr, unionType, unionCase, unionCaseField) -> + | BasicPatterns.UnionCaseGet(unionExpr, unionType, unionCase, unionCaseField) -> visitExpr f unionExpr - | BasicPatterns.UnionCaseTest(unionExpr, unionType, unionCase) -> + | BasicPatterns.UnionCaseTest(unionExpr, unionType, unionCase) -> visitExpr f unionExpr - | BasicPatterns.UnionCaseTag(unionExpr, unionType) -> + | BasicPatterns.UnionCaseTag(unionExpr, unionType) -> visitExpr f unionExpr - | BasicPatterns.ObjectExpr(objType, baseCallExpr, overrides, interfaceImplementations) -> + | BasicPatterns.ObjectExpr(objType, baseCallExpr, overrides, interfaceImplementations) -> visitExpr f baseCallExpr List.iter (visitObjMember f) overrides List.iter (snd >> List.iter (visitObjMember f)) interfaceImplementations - | BasicPatterns.TraitCall(sourceTypes, traitName, typeArgs, typeInstantiation, argTypes, argExprs) -> + | BasicPatterns.TraitCall(sourceTypes, traitName, typeArgs, typeInstantiation, argTypes, argExprs) -> visitExprs f argExprs - | BasicPatterns.ValueSet(valToSet, valueExpr) -> + | BasicPatterns.ValueSet(valToSet, valueExpr) -> visitExpr f valueExpr - | BasicPatterns.WhileLoop(guardExpr, bodyExpr) -> + | BasicPatterns.WhileLoop(guardExpr, bodyExpr) -> visitExpr f guardExpr; visitExpr f bodyExpr | BasicPatterns.BaseValue baseType -> () | BasicPatterns.DefaultValue defaultType -> () @@ -261,13 +269,13 @@ let rec visitExpr f (e:FSharpExpr) = | BasicPatterns.Value(valueToGet) -> () | _ -> failwith (sprintf "unrecognized %+A" e) -and visitExprs f exprs = +and visitExprs f exprs = List.iter (visitExpr f) exprs -and visitObjArg f objOpt = +and visitObjArg f objOpt = Option.iter (visitExpr f) objOpt -and visitObjMember f memb = +and visitObjMember f memb = visitExpr f memb.Body (** @@ -292,17 +300,17 @@ fooExpression |> visitExpr (fun e -> printfn "Visiting %A" e) // Visiting Const ... (** -Note that +Note that * The visitExpr function is recursive (for nested expressions). -* Pattern matching is removed from the tree, into a form called 'decision trees'. +* Pattern matching is removed from the tree, into a form called 'decision trees'. Summary ------- -In this tutorial, we looked at basic of working with checked declarations and expressions. +In this tutorial, we looked at basic of working with checked declarations and expressions. In practice, it is also useful to combine the information here -with some information you can obtain from the [symbols](symbols.html) +with some information you can obtain from the [symbols](symbols.html) tutorial. *) diff --git a/fcs/docsrc/content/untypedtree.fsx b/fcs/docsrc/content/untypedtree.fsx index a2a823ec3e..3ae02331bf 100644 --- a/fcs/docsrc/content/untypedtree.fsx +++ b/fcs/docsrc/content/untypedtree.fsx @@ -1,3 +1,11 @@ +(** +--- +category: tutorial +title: Processing untyped AST +menu_order: 2 + +--- +*) (*** hide ***) #I "../../../artifacts/bin/fcs/Release/netcoreapp3.0" (** @@ -10,7 +18,7 @@ such as code formatter, basic refactoring or code navigation tools. The untyped syntax tree contains information about the code structure, but does not contain types and there are some ambiguities that are resolved only later by the type checker. You can also combine the untyped AST information with the API available -from [editor services](editor.html). +from [editor services](editor.html). > **NOTE:** The FSharp.Compiler.Service API is subject to change when later versions of the nuget package are published @@ -36,13 +44,13 @@ open FSharp.Compiler.Text ### Performing untyped parse -The untyped parse operation is very fast (compared to type checking, which can +The untyped parse operation is very fast (compared to type checking, which can take notable amount of time) and so we can perform it synchronously. First, we need to create `FSharpChecker` - the constructor takes an argument that can be used to notify the checker about file changes (which we ignore). *) -// Create an interactive checker instance +// Create an interactive checker instance let checker = FSharpChecker.Create() (** @@ -55,17 +63,17 @@ return the `ParseTree` property: *) /// Get untyped tree for a specified input -let getUntypedTree (file, input) = +let getUntypedTree (file, input) = // Get compiler options for the 'project' implied by a single script file - let projOptions, errors = + let projOptions, errors = checker.GetProjectOptionsFromScript(file, input) |> Async.RunSynchronously let parsingOptions, _errors = checker.GetParsingOptionsFromProjectOptions(projOptions) // Run the first phase (untyped parsing) of the compiler - let parseFileResults = - checker.ParseFile(file, input, parsingOptions) + let parseFileResults = + checker.ParseFile(file, input, parsingOptions) |> Async.RunSynchronously match parseFileResults.ParseTree with @@ -79,17 +87,17 @@ Walking over the AST The abstract syntax tree is defined as a number of discriminated unions that represent different syntactical elements (such as expressions, patterns, declarations etc.). The best -way to understand the AST is to look at the definitions in [`ast.fs` in the source +way to understand the AST is to look at the definitions in [`ast.fs` in the source code](https://github.com/fsharp/fsharp/blob/master/src/fsharp/ast.fs#L464). The relevant parts are in the following namespace: *) -open FSharp.Compiler.Ast +open FSharp.Compiler.SyntaxTree (** When processing the AST, you will typically write a number of mutually recursive functions that pattern match on the different syntactical elements. There is a number of elements -that need to be supported - the top-level element is module or namespace declaration, +that need to be supported - the top-level element is module or namespace declaration, containing declarations inside a module (let bindings, types etc.). A let declaration inside a module then contains expression, which can contain patterns. @@ -102,10 +110,10 @@ we print information about the visited elements. For patterns, the input is of t is occasionally more complex than what is in the source code (in particular, `Named` is used more often): *) -/// Walk over a pattern - this is for example used in +/// Walk over a pattern - this is for example used in /// let = or in the 'match' expression let rec visitPattern = function - | SynPat.Wild(_) -> + | SynPat.Wild(_) -> printfn " .. underscore pattern" | SynPat.Named(pat, name, _, _, _) -> visitPattern pat @@ -116,14 +124,14 @@ let rec visitPattern = function | pat -> printfn " .. other pattern: %A" pat (** The function is recursive (for nested patterns such as `(foo, _) as bar`), but it does not -call any of the functions defined later (because patterns cannot contain other syntactical +call any of the functions defined later (because patterns cannot contain other syntactical elements). The next function iterates over expressions - this is where most of the work would be and -there are around 20 cases to cover (type `SynExpr.` and you'll get completion with other +there are around 20 cases to cover (type `SynExpr.` and you'll get completion with other options). In the following, we only show how to handle `if .. then ..` and `let .. = ...`: *) -/// Walk over an expression - if expression contains two or three +/// Walk over an expression - if expression contains two or three /// sub-expressions (two if the 'else' branch is missing), let expression /// contains pattern and two sub-expressions let rec visitExpression = function @@ -132,16 +140,16 @@ let rec visitExpression = function printfn "Conditional:" visitExpression cond visitExpression trueBranch - falseBranchOpt |> Option.iter visitExpression + falseBranchOpt |> Option.iter visitExpression | SynExpr.LetOrUse(_, _, bindings, body, _) -> - // Visit bindings (there may be multiple + // Visit bindings (there may be multiple // for 'let .. = .. and .. = .. in ...' printfn "LetOrUse with the following bindings:" for binding in bindings do - let (Binding(access, kind, inlin, mutabl, attrs, xmlDoc, + let (Binding(access, kind, inlin, mutabl, attrs, xmlDoc, data, pat, retInfo, init, m, sp)) = binding - visitPattern pat + visitPattern pat visitExpression init // Visit the body expression printfn "And the following body:" @@ -157,30 +165,30 @@ be another source of calls to `visitExpression`. As mentioned earlier, the AST of a file contains a number of module or namespace declarations (top-level node) that contain declarations inside a module (let bindings or types) or inside a namespace (just types). The following functions walks over declarations - we ignore types, -nested modules and all other elements and look only at top-level `let` bindings (values and +nested modules and all other elements and look only at top-level `let` bindings (values and functions): *) /// Walk over a list of declarations in a module. This is anything /// that you can write as a top-level inside module (let bindings, /// nested modules, type declarations etc.) -let visitDeclarations decls = +let visitDeclarations decls = for declaration in decls do match declaration with | SynModuleDecl.Let(isRec, bindings, range) -> // Let binding as a declaration is similar to let binding // as an expression (in visitExpression), but has no body for binding in bindings do - let (Binding(access, kind, inlin, mutabl, attrs, xmlDoc, + let (Binding(access, kind, inlin, mutabl, attrs, xmlDoc, data, pat, retInfo, body, m, sp)) = binding - visitPattern pat - visitExpression body + visitPattern pat + visitExpression body | _ -> printfn " - not supported declaration: %A" declaration (** -The `visitDeclarations` function will be called from a function that walks over a -sequence of module or namespace declarations. This corresponds, for example, to a file +The `visitDeclarations` function will be called from a function that walks over a +sequence of module or namespace declarations. This corresponds, for example, to a file with multiple `namespace Foo` declarations: *) -/// Walk over all module or namespace declarations +/// Walk over all module or namespace declarations /// (basically 'module Foo =' or 'namespace Foo.Bar') /// Note that there is one implicitly, even if the file /// does not explicitly define it.. @@ -198,15 +206,15 @@ Putting things together As already discussed, the `getUntypedTree` function uses `FSharpChecker` to run the first phase (parsing) on the AST and get back the tree. The function requires F# source code together -with location of the file. The location does not have to exist (it is used only for location +with location of the file. The location does not have to exist (it is used only for location information) and it can be in both Unix and Windows formats: *) // Sample input for the compiler service let input = """ - let foo() = + let foo() = let msg = "Hello world" - if true then + if true then printfn "%s" msg """ @@ -221,7 +229,7 @@ see pretty printed representation of the data structure - the tree contains a lo so this is not particularly readable, but it gives you good idea about how the tree looks. The returned `tree` value is again a discriminated union that can be two different cases - one case -is `ParsedInput.SigFile` which represents F# signature file (`*.fsi`) and the other one is +is `ParsedInput.SigFile` which represents F# signature file (`*.fsi`) and the other one is `ParsedInput.ImplFile` representing regular source code (`*.fsx` or `*.fs`). The implementation file contains a sequence of modules or namespaces that we can pass to the function implemented in the previous step: @@ -236,10 +244,10 @@ match tree with (** Summary ------- -In this tutorial, we looked at basic of working with the untyped abstract syntax tree. This is a -comprehensive topic, so it is not possible to explain everything in a single article. The +In this tutorial, we looked at basic of working with the untyped abstract syntax tree. This is a +comprehensive topic, so it is not possible to explain everything in a single article. The [Fantomas project](https://github.com/dungpa/fantomas) is a good example of tool based on the untyped AST that can help you understand more. In practice, it is also useful to combine the information here -with some information you can obtain from the [editor services](editor.html) discussed in the next +with some information you can obtain from the [editor services](editor.html) discussed in the next tutorial. *) diff --git a/fcs/docsrc/files/content/fcs.css b/fcs/docsrc/files/content/fcs.css deleted file mode 100644 index 3efde86fc5..0000000000 --- a/fcs/docsrc/files/content/fcs.css +++ /dev/null @@ -1,34 +0,0 @@ -/* Animated gifs on the homepage */ -#anim-holder { - overflow:hidden; - position:relative; - border-radius:5px; -} - -#wbtn, #jbtn, #cbtn { - cursor:pointer; - border-style:none; - color:#f0f8ff; - border-radius:5px; - background:#415d60; - opacity:0.7; - width:90px; - height:23px; - font-size:80%; - text-align:center; - padding-top:2px; - position:absolute; - top:10px; -} - -#anim-holder a img { - min-width:800px; -} - -.nav-list > li > a.nflag { - float:right; - padding:0px; -} -.nav-list > li > a.nflag2 { - margin-right:18px; -} \ No newline at end of file diff --git a/fcs/docsrc/files/content/style.ja.css b/fcs/docsrc/files/content/style.ja.css deleted file mode 100644 index e00bcfe02d..0000000000 --- a/fcs/docsrc/files/content/style.ja.css +++ /dev/null @@ -1,190 +0,0 @@ -@import url(http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono|Gudea); - -* { font-family: 'MS Meiryo', Gudea; } - -/*-------------------------------------------------------------------------- - Formatting for F# code snippets -/*--------------------------------------------------------------------------*/ - -/* identifier */ -span.i { color:#d1d1d1; } -/* string */ -span.s { color:#d4b43c; } -/* keywords */ -span.k { color:#4e98dc; } -/* comment */ -span.c { color:#96C71D; } -/* operators */ -span.o { color:#af75c1; } -/* numbers */ -span.n { color:#96C71D; } -/* line number */ -span.l { color:#80b0b0; } - -/* inactive code */ -span.inactive { color:#808080; } -/* preprocessor */ -span.prep { color:#af75c1; } -/* fsi output */ -span.fsi { color:#808080; } - -/* omitted */ -span.omitted { - background:#3c4e52; - border-radius:5px; - color:#808080; - padding:0px 0px 1px 0px; -} -/* tool tip */ -div.tip { - background:#475b5f; - border-radius:4px; - font:11pt 'Droid Sans', arial, sans-serif, 'MS Meiryo'; - padding:6px 8px 6px 8px; - display:none; - color:#d1d1d1; -} -table.pre pre { - padding:0px; - margin:0px; - border:none; -} -table.pre, pre.fssnip, pre { - line-height:13pt; - border:1px solid #d8d8d8; - border-collapse:separate; - white-space:pre; - font: 9pt 'Droid Sans Mono',consolas,monospace,'MS Meiryo'; - width:90%; - margin:10px 20px 20px 20px; - background-color:#212d30; - padding:10px; - border-radius:5px; - color:#d1d1d1; -} -table.pre pre { - padding:0px; - margin:0px; - border-radius:0px; - width: 100%; -} -table.pre td { - padding:0px; - white-space:normal; - margin:0px; -} -table.pre td.lines { - width:30px; -} - -/*-------------------------------------------------------------------------- - Formatting for page & standard document content -/*--------------------------------------------------------------------------*/ - -body { - font-family: Gudea, serif, 'MS Meiryo'; - padding-top: 0px; - padding-bottom: 40px; -} - -pre { - word-wrap: inherit; -} - -/* Format the heading - nicer spacing etc. */ -.masthead { - overflow: hidden; -} -.masthead ul, .masthead li { - margin-bottom:0px; -} -.masthead .nav li { - margin-top: 15px; - font-size:110%; -} -.masthead h3 { - margin-bottom:5px; - font-size:170%; -} -hr { - margin:0px 0px 20px 0px; -} - -/* Make table headings and td.title bold */ -td.title, thead { - font-weight:bold; -} - -/* Format the right-side menu */ -#menu { - margin-top:50px; - font-size:11pt; - padding-left:20px; -} - -#menu .nav-header { - font-size:12pt; - color:#606060; - margin-top:20px; -} - -#menu li { - line-height:25px; -} - -/* Change font sizes for headings etc. */ -#main h1 { font-size: 26pt; margin:10px 0px 15px 0px; } -#main h2 { font-size: 20pt; margin:20px 0px 0px 0px; } -#main h3 { font-size: 14pt; margin:15px 0px 0px 0px; } -#main p { font-size: 12pt; margin:5px 0px 15px 0px; } -#main ul { font-size: 12pt; margin-top:10px; } -#main li { font-size: 12pt; margin: 5px 0px 5px 0px; } - -/*-------------------------------------------------------------------------- - Formatting for API reference -/*--------------------------------------------------------------------------*/ - -.type-list .type-name, .module-list .module-name { - width:25%; - font-weight:bold; -} -.member-list .member-name { - width:35%; -} -#main .xmldoc h2 { - font-size:14pt; - margin:10px 0px 0px 0px; -} -#main .xmldoc h3 { - font-size:12pt; - margin:10px 0px 0px 0px; -} -/*-------------------------------------------------------------------------- - Additional formatting for the homepage -/*--------------------------------------------------------------------------*/ - -#nuget { - margin-top:20px; - font-size: 11pt; - padding:20px; -} - -#nuget pre { - font-size:11pt; - -moz-border-radius: 0px; - -webkit-border-radius: 0px; - border-radius: 0px; - background: #404040; - border-style:none; - color: #e0e0e0; - margin-top:15px; -} - -/* Hide snippets on the home page snippet & nicely format table */ -#hp-snippet td.lines { - display: none; -} -#hp-snippet .table { - width:80%; - margin-left:30px; -} diff --git a/fcs/docsrc/files/images/en.png b/fcs/docsrc/files/images/en.png deleted file mode 100644 index a6568bf968..0000000000 Binary files a/fcs/docsrc/files/images/en.png and /dev/null differ diff --git a/fcs/docsrc/files/images/ja.png b/fcs/docsrc/files/images/ja.png deleted file mode 100644 index 14639e2db0..0000000000 Binary files a/fcs/docsrc/files/images/ja.png and /dev/null differ diff --git a/fcs/docsrc/files/images/logo.png b/fcs/docsrc/files/images/logo.png deleted file mode 100644 index 9d7b823ec9..0000000000 Binary files a/fcs/docsrc/files/images/logo.png and /dev/null differ diff --git a/fcs/docsrc/generators/apiref.fsx b/fcs/docsrc/generators/apiref.fsx new file mode 100644 index 0000000000..e0500a8bcb --- /dev/null +++ b/fcs/docsrc/generators/apiref.fsx @@ -0,0 +1,303 @@ +#r "../_lib/Fornax.Core.dll" +#r "../../packages/docs/Newtonsoft.Json/lib/netstandard2.0/Newtonsoft.Json.dll" +#r "../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.CodeFormat.dll" +#r "../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.Markdown.dll" +#r "../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.Literate.dll" +#r "../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.MetadataFormat.dll" + +#if !FORNAX +#load "../loaders/apirefloader.fsx" +#endif + +#load "partials/layout.fsx" + +open System +open FSharp.MetadataFormat +open Html +open Apirefloader +open FSharp.Literate +open FSharp.CodeFormat + +let tokenToCss (x: TokenKind) = + match x with + | TokenKind.Keyword -> "hljs-keyword" + | TokenKind.String -> "hljs-string" + | TokenKind.Comment -> "hljs-comment" + | TokenKind.Identifier -> "hljs-function" + | TokenKind.Inactive -> "" + | TokenKind.Number -> "hljs-number" + | TokenKind.Operator -> "hljs-keyword" + | TokenKind.Punctuation -> "hljs-keyword" + | TokenKind.Preprocessor -> "hljs-comment" + | TokenKind.Module -> "hljs-type" + | TokenKind.ReferenceType -> "hljs-type" + | TokenKind.ValueType -> "hljs-type" + | TokenKind.Interface -> "hljs-type" + | TokenKind.TypeArgument -> "hljs-type" + | TokenKind.Property -> "hljs-function" + | TokenKind.Enumeration -> "hljs-type" + | TokenKind.UnionCase -> "hljs-type" + | TokenKind.Function -> "hljs-function" + | TokenKind.Pattern -> "hljs-function" + | TokenKind.MutableVar -> "hljs-symbol" + | TokenKind.Disposable -> "hljs-symbol" + | TokenKind.Printf -> "hljs-regexp" + | TokenKind.Escaped -> "hljs-regexp" + | TokenKind.Default -> "" + + +let getComment (c: Comment) : string = + let t = + c.RawData + |> List.map (fun n -> n.Value) + |> String.concat "\n\n" + let doc = Literate.ParseMarkdownString t + Literate.WriteHtml(doc, lineNumbers = false, tokenKindToCss = tokenToCss) + .Replace("lang=\"fsharp", "class=\"language-fsharp") + + +let formatMember (m: Member) = + let attributes = + m.Attributes + |> List.filter (fun a -> a.FullName <> "Microsoft.FSharp.Core.CustomOperationAttribute") + + let hasCustomOp = + m.Attributes + |> List.exists (fun a -> a.FullName = "Microsoft.FSharp.Core.CustomOperationAttribute") + + let customOp = + if hasCustomOp then + m.Attributes + |> List.tryFind (fun a -> a.FullName = "Microsoft.FSharp.Core.CustomOperationAttribute") + |> Option.bind (fun a -> + a.ConstructorArguments + |> Seq.tryFind (fun x -> x :? string) + |> Option.map (fun x -> x.ToString()) + ) + |> Option.defaultValue "" + else + "" + + tr [] [ + td [] [ + code [] [!! m.Name] + br [] + + if hasCustomOp then + b [] [!! "CE Custom Operation: "] + code [] [!!customOp] + br [] + br [] + b [] [!! "Signature: "] + !!m.Details.Signature + br [] + if not (attributes.IsEmpty) then + b [] [!! "Attributes:"] + for a in attributes do + code [] [!! (a.Name)] + ] + td [] [!! (getComment m.Comment)] + ] + +let generateType ctx (page: ApiPageInfo) = + let t = page.Info + let body = + div [Class "api-page"] [ + h2 [] [!! t.Name] + b [] [!! "Namespace: "] + a [Href (sprintf "%s.html" page.NamespaceUrlName) ] [!! page.NamespaceName] + br [] + b [] [!! "Parent: "] + a [Href (sprintf "%s.html" page.ParentUrlName)] [!! page.ParentName] + span [] [!! (getComment t.Comment)] + br [] + if not (String.IsNullOrWhiteSpace t.Category) then + b [] [!! "Category:"] + !!t.Category + br [] + if not (t.Attributes.IsEmpty) then + b [] [!! "Attributes:"] + for a in t.Attributes do + br [] + code [] [!! (a.Name)] + br [] + + table [] [ + tr [] [ + th [ Width "35%" ] [!!"Name"] + th [ Width "65%"] [!!"Description"] + ] + if not t.Constructors.IsEmpty then tr [] [ td [ColSpan 3. ] [ b [] [!! "Constructors"]]] + yield! t.Constructors |> List.map formatMember + + if not t.InstanceMembers.IsEmpty then tr [] [ td [ColSpan 3. ] [ b [] [!! "Instance Members"]]] + yield! t.InstanceMembers |> List.map formatMember + + if not t.RecordFields.IsEmpty then tr [] [ td [ColSpan 3. ] [ b [] [!! "Record Fields"]]] + yield! t.RecordFields |> List.map formatMember + + if not t.StaticMembers.IsEmpty then tr [] [ td [ColSpan 3. ] [ b [] [!! "Static Members"]]] + yield! t.StaticMembers |> List.map formatMember + + if not t.StaticParameters.IsEmpty then tr [] [ td [ColSpan 3. ] [ b [] [!! "Static Parameters"]]] + yield! t.StaticParameters |> List.map formatMember + + if not t.UnionCases.IsEmpty then tr [] [ td [ColSpan 3. ] [ b [] [!! "Union Cases"]]] + yield! t.UnionCases |> List.map formatMember + ] + ] + t.UrlName, Layout.layout ctx [body] t.Name + +let generateModule ctx (page: ApiPageInfo) = + let m = page.Info + let body = + div [Class "api-page"] [ + h2 [] [!!m.Name] + b [] [!! "Namespace: "] + a [Href (sprintf "%s.html" page.NamespaceUrlName) ] [!! page.NamespaceName] + br [] + b [] [!! "Parent: "] + a [Href (sprintf "%s.html" page.ParentUrlName)] [!! page.ParentName] + span [] [!! (getComment m.Comment)] + br [] + if not (String.IsNullOrWhiteSpace m.Category) then + b [] [!! "Category:"] + !!m.Category + br [] + + if not m.NestedTypes.IsEmpty then + b [] [!! "Declared Types"] + table [] [ + tr [] [ + th [ Width "35%" ] [!!"Type"] + th [ Width "65%"] [!!"Description"] + ] + for t in m.NestedTypes do + tr [] [ + td [] [a [Href (sprintf "%s.html" t.UrlName )] [!! t.Name ]] + td [] [!! (getComment t.Comment)] + ] + ] + br [] + + if not m.NestedModules.IsEmpty then + b [] [!! "Declared Modules"] + table [] [ + tr [] [ + th [ Width "35%" ] [!!"Module"] + th [ Width "65%"] [!!"Description"] + ] + for t in m.NestedModules do + tr [] [ + td [] [a [Href (sprintf "%s.html" t.UrlName )] [!! t.Name ]] + td [] [!! (getComment t.Comment)] + ] + ] + br [] + + if not m.ValuesAndFuncs.IsEmpty then + b [] [!! "Values and Functions"] + table [] [ + tr [] [ + th [ Width "35%" ] [!!"Name"] + th [ Width "65%"] [!!"Description"] + ] + yield! m.ValuesAndFuncs |> List.map formatMember + ] + br [] + + if not m.TypeExtensions.IsEmpty then + b [] [!! "Type Extensions"] + table [] [ + tr [] [ + th [ Width "35%" ] [!!"Name"] + th [ Width "65%"] [!!"Description"] + ] + yield! m.TypeExtensions |> List.map formatMember + ] + ] + m.UrlName, Layout.layout ctx [body] m.Name + +let generateNamespace ctx (n: Namespace) = + let body = + div [Class "api-page"] [ + h2 [] [!!n.Name] + + if not n.Types.IsEmpty then + + b [] [!! "Declared Types"] + table [] [ + tr [] [ + th [ Width "35%" ] [!!"Type"] + th [ Width "65%"] [!!"Description"] + ] + for t in n.Types do + tr [] [ + td [] [a [Href (sprintf "%s.html" t.UrlName )] [!! t.Name ]] + td [] [!!(getComment t.Comment)] + ] + ] + br [] + + if not n.Modules.IsEmpty then + + b [] [!! "Declared Modules"] + table [] [ + tr [] [ + th [ Width "35%" ] [!!"Module"] + th [ Width "65%"] [!!"Description"] + ] + for t in n.Modules do + tr [] [ + td [] [a [Href (sprintf "%s.html" t.UrlName )] [!! t.Name ]] + td [] [!! (getComment t.Comment)] + ] + ] + ] + n.Name, Layout.layout ctx [body] (n.Name) + + +let generate' (ctx : SiteContents) = + let all = ctx.TryGetValues() + match all with + | None -> [] + | Some all -> + all + |> Seq.toList + |> List.collect (fun n -> + let name = n.GeneratorOutput.AssemblyGroup.Name + let namespaces = + n.GeneratorOutput.AssemblyGroup.Namespaces + |> List.map (generateNamespace ctx) + + let modules = + n.Modules + |> Seq.map (generateModule ctx) + + let types = + n.Types + |> Seq.map (generateType ctx) + + let ref = + Layout.layout ctx [ + h1 [] [!! name ] + b [] [!! "Declared namespaces"] + br [] + for (n, _) in namespaces do + a [Href (sprintf "%s.html" n)] [!!n] + br [] + ] n.Label + + [("index" , ref); yield! namespaces; yield! modules; yield! types] + |> List.map (fun (x, y) -> (sprintf "%s/%s" n.Label x), y) + ) + + +let generate (ctx : SiteContents) (projectRoot: string) (page: string) = + try + generate' ctx + |> List.map (fun (n,b) -> n, (Layout.render ctx b)) + with + | ex -> + printfn "ERROR IN API REF GENERATION:\n%A" ex + [] diff --git a/fcs/docsrc/generators/lunr.fsx b/fcs/docsrc/generators/lunr.fsx new file mode 100644 index 0000000000..eaceafd3fe --- /dev/null +++ b/fcs/docsrc/generators/lunr.fsx @@ -0,0 +1,83 @@ +#r "../_lib/Fornax.Core.dll" +#r "../../packages/docs/Newtonsoft.Json/lib/netstandard2.0/Newtonsoft.Json.dll" +#r "../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.MetadataFormat.dll" +#if !FORNAX +#load "../loaders/contentloader.fsx" +#load "../loaders/apirefloader.fsx" +#load "../loaders/globalloader.fsx" + +#endif + +open Apirefloader +open FSharp.MetadataFormat + + +type Entry = { + uri: string + title: string + content: string +} +let generate (ctx : SiteContents) (projectRoot: string) (page: string) = + let siteInfo = ctx.TryGetValue().Value + let rootUrl = siteInfo.root_url + + let pages = ctx.TryGetValues () |> Option.defaultValue Seq.empty + let entries = + pages + |> Seq.map (fun n -> + {uri = rootUrl + "/" + n.link.Replace("content/", ""); title = n.title; content = n.text} + ) + + let all = ctx.TryGetValues() + let refs = + match all with + | None -> [] + | Some all -> + all + |> Seq.toList + |> List.collect (fun n -> + let generatorOutput = n.GeneratorOutput + let allModules = n.Modules + let allTypes = n.Types + + let gen = + let ctn = + sprintf "%s \n %s" generatorOutput.AssemblyGroup.Name (generatorOutput.AssemblyGroup.Namespaces |> Seq.map (fun n -> n.Name) |> String.concat " ") + {uri = (rootUrl + sprintf "/reference/%s/index.html" n.Label ); title = sprintf "%s - API Reference" n.Label; content = ctn } + + let mdlsGen = + allModules + |> Seq.map (fun m -> + let m = m.Info + let cnt = + sprintf "%s \n %s \n %s \n %s \n %s \n %s" + m.Name + m.Comment.FullText + (m.NestedModules |> List.map (fun m -> m.Name + " " + m.Comment.FullText ) |> String.concat " ") + (m.NestedTypes |> List.map (fun m -> m.Name + " " + m.Comment.FullText ) |> String.concat " ") + (m.ValuesAndFuncs |> List.map (fun m -> m.Name + " " + m.Comment.FullText ) |> String.concat " ") + (m.TypeExtensions |> List.map (fun m -> m.Name + " " + m.Comment.FullText ) |> String.concat " ") + + + {uri = rootUrl + sprintf "/reference/%s/%s.html" n.Label m.UrlName ; title = m.Name; content = cnt } + ) + + let tsGen = + allTypes + |> Seq.map (fun m -> + let m = m.Info + let cnt = + sprintf "%s \n %s \n %s" + m.Name + m.Comment.FullText + (m.AllMembers |> List.map (fun m -> m.Name + " " + m.Comment.FullText ) |> String.concat " ") + + + {uri = rootUrl + sprintf "/reference/%s/%s.html" n.Label m.UrlName ; title = m.Name; content = cnt } + ) + [yield! entries; gen; yield! mdlsGen; yield! tsGen] + ) + + [|yield! entries; yield! refs|] + |> Newtonsoft.Json.JsonConvert.SerializeObject + diff --git a/fcs/docsrc/generators/page.fsx b/fcs/docsrc/generators/page.fsx new file mode 100644 index 0000000000..e07291238c --- /dev/null +++ b/fcs/docsrc/generators/page.fsx @@ -0,0 +1,16 @@ +#r "../_lib/Fornax.Core.dll" +#load "partials/layout.fsx" + +open Html + + +let generate' (ctx : SiteContents) (page: string) = + let posts = + ctx.TryGetValues () + |> Option.defaultValue Seq.empty + let post = posts |> Seq.find (fun n -> "content/" + n.file = page) + Layout.layout ctx [ !! post.content ] post.title + +let generate (ctx : SiteContents) (projectRoot: string) (page: string) = + generate' ctx page + |> Layout.render ctx diff --git a/fcs/docsrc/generators/partials/footer.fsx b/fcs/docsrc/generators/partials/footer.fsx new file mode 100644 index 0000000000..486018fb14 --- /dev/null +++ b/fcs/docsrc/generators/partials/footer.fsx @@ -0,0 +1,38 @@ +#r "../../_lib/Fornax.Core.dll" +#if !FORNAX +#load "../../loaders/contentloader.fsx" +#load "../../loaders/pageloader.fsx" +#load "../../loaders/globalloader.fsx" +#endif + +open Html + + + +let footer (ctx : SiteContents) = + let siteInfo = ctx.TryGetValue().Value + let rootUrl = siteInfo.root_url + + [ + div [Custom("style", "left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;")] [ + div [Custom("style", "border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;")] [] + ] + script [Src (rootUrl + "/static/js/clipboard.min.js")] [] + script [Src (rootUrl + "/static/js/perfect-scrollbar.min.js")] [] + script [Src (rootUrl + "/static/js/perfect-scrollbar.jquery.min.js")] [] + script [Src (rootUrl + "/static/js/jquery.sticky.js")] [] + script [Src (rootUrl + "/static/js/featherlight.min.js")] [] + + script [Src (rootUrl + "/static/js/modernizr.custom-3.6.0.js")] [] + script [Src (rootUrl + "/static/js/learn.js")] [] + script [Src (rootUrl + "/static/js/hugo-learn.js")] [] + link [Rel "stylesheet"; Href (rootUrl + "/static/mermaid/mermaid.css")] + script [Src (rootUrl + "/static/mermaid/mermaid.js")] [] + script [] [!! "mermaid.initialize({ startOnLoad: true });"] + script [Src "//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.0/highlight.min.js"] [] + script [Src "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.0/languages/fsharp.min.js"] [] + script [] [ + !! "hljs.initHighlightingOnLoad()" + ] + script [Src (rootUrl + "/static/js/tips.js")] [] + ] diff --git a/fcs/docsrc/generators/partials/header.fsx b/fcs/docsrc/generators/partials/header.fsx new file mode 100644 index 0000000000..5d5fd0ec4f --- /dev/null +++ b/fcs/docsrc/generators/partials/header.fsx @@ -0,0 +1,32 @@ +#r "../../_lib/Fornax.Core.dll" +#if !FORNAX +#load "../../loaders/contentloader.fsx" +#load "../../loaders/pageloader.fsx" +#load "../../loaders/globalloader.fsx" +#endif + +open Html + +let header (ctx : SiteContents) page = + let siteInfo = ctx.TryGetValue().Value + let rootUrl = siteInfo.root_url + + head [] [ + meta [CharSet "utf-8"] + meta [Name "viewport"; Content "width=device-width, initial-scale=1"] + title [] [!! (siteInfo.title + " | " + page)] + link [Rel "icon"; Type "image/png"; Sizes "32x32"; Href (rootUrl + "/static/images/favicon.png")] + link [Rel "stylesheet"; Href (rootUrl + "/static/css/nucleus.css")] + link [Rel "stylesheet"; Href (rootUrl + "/static/css/fontawesome-all.min.css")] + link [Rel "stylesheet"; Href (rootUrl + "/static/css/hybrid.css")] + link [Rel "stylesheet"; Href (rootUrl + "/static/css/featherlight.min.css")] + link [Rel "stylesheet"; Href (rootUrl + "/static/css/perfect-scrollbar.min.css")] + link [Rel "stylesheet"; Href (rootUrl + "/static/css/auto-complete.css")] + link [Rel "stylesheet"; Href (rootUrl + "/static/css/atom-one-dark-reasonable.css")] + link [Rel "stylesheet"; Href (rootUrl + "/static/css/theme.css")] + link [Rel "stylesheet"; Href (rootUrl + "/static/css/tips.css")] + link [Rel "stylesheet"; Href "//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.0/styles/atom-one-dark.min.css"] + if siteInfo.theme_variant.IsSome then + link [Rel "stylesheet"; Href (rootUrl + (sprintf "/static/css/theme-%s.css" siteInfo.theme_variant.Value))] + script [Src (rootUrl + "/static/js/jquery-3.3.1.min.js")] [] + ] diff --git a/fcs/docsrc/generators/partials/layout.fsx b/fcs/docsrc/generators/partials/layout.fsx new file mode 100644 index 0000000000..62262c067f --- /dev/null +++ b/fcs/docsrc/generators/partials/layout.fsx @@ -0,0 +1,65 @@ +#r "../../_lib/Fornax.Core.dll" +#if !FORNAX +#load "../../loaders/contentloader.fsx" +#load "../../loaders/pageloader.fsx" +#load "../../loaders/globalloader.fsx" +#endif +#load "menu.fsx" +#load "header.fsx" +#load "footer.fsx" + +open Html + +let injectWebsocketCode (webpage:string) = + let websocketScript = + """ + + """ + let head = "" + let index = webpage.IndexOf head + webpage.Insert ( (index + head.Length + 1),websocketScript) + + +let layout (ctx : SiteContents) bodyCnt (page: string) = + + html [Class "js csstransforms3d"] [ + Header.header ctx page + body [] [ + Menu.menu ctx page + section [Id "body"] [ + div [Id "overlay"] [] + div [ Class "padding highlightable"] [ + div [Id "body-inner"] [ + span [Id "sidebar-toggle-span"] [ + a [Href "#"; Id "sidebar-toggle"; Custom("data-sidebar-toggle", "") ] [ + i [Class "fas fa-bars"] [] + !! " navigation" + ] + ] + yield! bodyCnt + ] + ] + ] + yield! Footer.footer ctx + ] + ] + +let render (ctx : SiteContents) cnt = + let disableLiveRefresh = ctx.TryGetValue () |> Option.map (fun n -> n.disableLiveRefresh) |> Option.defaultValue false + cnt + |> HtmlElement.ToString + |> fun n -> if disableLiveRefresh then n else injectWebsocketCode n diff --git a/fcs/docsrc/generators/partials/menu.fsx b/fcs/docsrc/generators/partials/menu.fsx new file mode 100644 index 0000000000..3d2d431d69 --- /dev/null +++ b/fcs/docsrc/generators/partials/menu.fsx @@ -0,0 +1,169 @@ +#r "../../_lib/Fornax.Core.dll" +#if !FORNAX +#load "../../loaders/apirefloader.fsx" +#load "../../loaders/contentloader.fsx" +#load "../../loaders/pageloader.fsx" +#load "../../loaders/globalloader.fsx" +#endif + +open Html + + +let menu (ctx : SiteContents) (page: string) = + let shortcuts = ctx.GetValues () + let all = ctx.GetValues() + + let content = ctx.GetValues () + let siteInfo = ctx.TryGetValue().Value + let rootUrl = siteInfo.root_url + + let language = + content + |> Seq.tryFind (fun r -> r.title = page) + |> Option.bind (fun r -> r.language) + + let group = content |> Seq.tryFind (fun n -> n.title = page) |> Option.map (fun n -> n.category) + + let explenations = + content + |> Seq.filter (fun n -> n.category = Contentloader.Explanation && not n.hide_menu && n.language = language ) + |> Seq.sortBy (fun n -> n.menu_order) + + let tutorials = + content + |> Seq.filter (fun n -> n.category = Contentloader.Tutorial && not n.hide_menu && n.language = language ) + |> Seq.sortBy (fun n -> n.menu_order) + + let howtos = + content + |> Seq.filter (fun n -> n.category = Contentloader.HowTo && not n.hide_menu && n.language = language ) + |> Seq.sortBy (fun n -> n.menu_order) + + let hasTutorials = not (Seq.isEmpty tutorials) + let hasExplenations = not (Seq.isEmpty explenations) + let hasHowTos = not (Seq.isEmpty howtos) + + let menuHeader = + [ + if hasExplenations then + li [Id "menu-explanations"; if group = Some Contentloader.Explanation then Class "dd-item menu-group-link menu-group-link-active" else Class "dd-item menu-group-link"; ] [ + a [] [!! "Explanation"] + ] + if hasTutorials then + li [Id "menu-tutorials"; if group = Some Contentloader.Tutorial then Class "dd-item menu-group-link menu-group-link-active" else Class "dd-item menu-group-link"; ] [ + a [] [!! "Tutorials"] + ] + if hasHowTos then + li [Id "menu-howtos"; if group = Some Contentloader.HowTo then Class "dd-item menu-group-link menu-group-link-active" else Class "dd-item menu-group-link"; ] [ + a [] [!! "How-To Guides"] + ] + li [ Id "menu-refs"; if group = None then Class "dd-item menu-group-link menu-group-link-active" else Class "dd-item menu-group-link";] [ + a [] [!! "API References"] + ] + ] + + let renderExpls = + ul [Id "submenu-explanations"; if group = Some Contentloader.Explanation then Class "submenu submenu-active" else Class "submenu"; ] [ + for r in explenations -> + li [] [ + a [Href (rootUrl + "/" + r.link); if r.title = page then Class "active-link padding" else Class "padding"] [ + !! r.title + ] + ] + ] + + let renderTuts = + ul [Id "submenu-tutorials"; if group = Some Contentloader.Tutorial then Class "submenu submenu-active" else Class "submenu"; ] [ + for r in tutorials -> + li [] [ + a [ Href (rootUrl + "/" + r.link); if r.title = page then Class "active-link padding" else Class "padding" ] [ + !! r.title + ] + ] + ] + + let renderHowTos = + ul [Id "submenu-howtos"; if group = Some Contentloader.HowTo then Class "submenu submenu-active" else Class "submenu"; ] [ + for r in howtos -> + li [] [ + a [Href (rootUrl + "/" + r.link); if r.title = page then Class "active-link padding" else Class "padding" ] [ + !! r.title + ] + ] + ] + + let renderRefs = + ul [Id "submenu-refs"; if group = None then Class "submenu submenu-active" else Class "submenu"; ] [ + for r in all -> + li [] [ + a [Href (rootUrl + "/reference/" + r.Label + "/index.html"); if r.Label = page then Class "active-link padding" else Class "padding" ] [ + !! r.Label + ] + ] + ] + + let renderLanguages = + section [Id "languages"] [ + h3 [] [!! "Languages"] + ul [] [ + li [] [ + a [Href (rootUrl + "/index.html"); if language = None then Class "menu-group-link-active padding" else Class "padding" ] [ + !! "English" + ] + ] + li [] [ + a [Href (rootUrl + "/ja/index.html"); if language = Some "ja" then Class "menu-group-link-active padding" else Class "padding" ] [ + !! "Japanese" + ] + ] + ] + ] + + let renderShortucuts = + section [Id "shortcuts"] [ + h3 [] [!! "Shortucts"] + ul [] [ + for s in shortcuts do + yield + li [] [ + a [Class "padding"; Href s.link ] [ + i [Class s.icon] [] + !! s.title + ] + ] + ] + ] + + let renderFooter = + section [Id "footer"] [ + !! """

Built with Fornax""" + ] + + + nav [Id "sidebar"] [ + div [Id "header-wrapper"] [ + div [Id "header"] [ + h2 [Id "logo"] [!! siteInfo.title] + ] + div [Class "searchbox"] [ + label [Custom("for", "search-by")] [i [Class "fas fa-search"] []] + input [Custom ("data-search-input", ""); Id "search-by"; Type "search"; Placeholder "Search..."] + span [Custom ("data-search-clear", "")] [i [Class "fas fa-times"] []] + ] + script [Type "text/javascript"; Src (rootUrl + "/static/js/lunr.min.js")] [] + script [Type "text/javascript"; Src (rootUrl + "/static/js/auto-complete.js")] [] + script [Type "text/javascript";] [!! (sprintf "var baseurl ='%s'" rootUrl)] + script [Type "text/javascript"; Src (rootUrl + "/static/js/search.js")] [] + ] + div [Class "highlightable"] [ + ul [Class "topics"] menuHeader + if hasExplenations then renderExpls + if hasTutorials then renderTuts + if hasHowTos then renderHowTos + renderRefs + renderLanguages + renderShortucuts + renderFooter + ] + ] + diff --git a/fcs/docsrc/loaders/apirefloader.fsx b/fcs/docsrc/loaders/apirefloader.fsx new file mode 100644 index 0000000000..a41d04dd1d --- /dev/null +++ b/fcs/docsrc/loaders/apirefloader.fsx @@ -0,0 +1,72 @@ +#r "../_lib/Fornax.Core.dll" +#r "../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.MetadataFormat.dll" + +open System +open System.IO +open FSharp.MetadataFormat + +type ApiPageInfo<'a> = { + ParentName: string + ParentUrlName: string + NamespaceName: string + NamespaceUrlName: string + Info: 'a +} + +type AssemblyEntities = { + Label: string + Modules: ApiPageInfo list + Types: ApiPageInfo list + GeneratorOutput: GeneratorOutput +} + +let rec collectModules pn pu nn nu (m: Module) = + [ + yield { ParentName = pn; ParentUrlName = pu; NamespaceName = nn; NamespaceUrlName = nu; Info = m} + yield! m.NestedModules |> List.collect (collectModules m.Name m.UrlName nn nu ) + ] + + +let loader (projectRoot: string) (siteContet: SiteContents) = + try + let dlls = + [ + "FSharp.Compiler.Service", Path.Combine(projectRoot, "..", "..", "artifacts", "bin", "fcs", "Release", "netcoreapp3.0", "FSharp.Compiler.Service.dll") + ] + let libs = + [ + Path.Combine(projectRoot, "..", "..", "artifacts", "bin", "fcs", "Release", "netcoreapp3.0") + ] + for (label, dll) in dlls do + let output = MetadataFormat.Generate(dll, markDownComments = true, publicOnly = true, libDirs = libs) + + let allModules = + output.AssemblyGroup.Namespaces + |> List.collect (fun n -> + List.collect (collectModules n.Name n.Name n.Name n.Name) n.Modules + ) + + let allTypes = + [ + yield! + output.AssemblyGroup.Namespaces + |> List.collect (fun n -> + n.Types |> List.map (fun t -> {ParentName = n.Name; ParentUrlName = n.Name; NamespaceName = n.Name; NamespaceUrlName = n.Name; Info = t} ) + ) + yield! + allModules + |> List.collect (fun n -> + n.Info.NestedTypes |> List.map (fun t -> {ParentName = n.Info.Name; ParentUrlName = n.Info.UrlName; NamespaceName = n.NamespaceName; NamespaceUrlName = n.NamespaceUrlName; Info = t}) ) + ] + let entities = { + Label = label + Modules = allModules + Types = allTypes + GeneratorOutput = output + } + siteContet.Add entities + with + | ex -> + printfn "%A" ex + + siteContet \ No newline at end of file diff --git a/fcs/docsrc/loaders/contentloader.fsx b/fcs/docsrc/loaders/contentloader.fsx new file mode 100644 index 0000000000..2d280dbb5c --- /dev/null +++ b/fcs/docsrc/loaders/contentloader.fsx @@ -0,0 +1,178 @@ +open System +#r "../_lib/Fornax.Core.dll" +#r "../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.CodeFormat.dll" +#r "../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.Markdown.dll" +#r "../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.Literate.dll" + +open FSharp.Literate +open System.IO +open FSharp.CodeFormat + +type PostConfig = { + disableLiveRefresh: bool +} + +///This is following documentation structure described here https://documentation.divio.com/ +type PostCategory = + | Tutorial + | Explanation + | HowTo + | TopLevel + | ApiRef + +with + static member Parse x = + match x with + | "tutorial" -> Tutorial + | "explanation" -> Explanation + | "how-to" -> HowTo + | "top-level" -> TopLevel + | _ -> failwith "Unsupported category" + +type Post = { + file: string + link : string + title: string + content: string + text: string + menu_order: int + hide_menu: bool + category: PostCategory + language: string option +} + +let tokenToCss (x: TokenKind) = + match x with + | TokenKind.Keyword -> "hljs-keyword" + | TokenKind.String -> "hljs-string" + | TokenKind.Comment -> "hljs-comment" + | TokenKind.Identifier -> "hljs-function" + | TokenKind.Inactive -> "" + | TokenKind.Number -> "hljs-number" + | TokenKind.Operator -> "hljs-keyword" + | TokenKind.Punctuation -> "hljs-keyword" + | TokenKind.Preprocessor -> "hljs-comment" + | TokenKind.Module -> "hljs-type" + | TokenKind.ReferenceType -> "hljs-type" + | TokenKind.ValueType -> "hljs-type" + | TokenKind.Interface -> "hljs-type" + | TokenKind.TypeArgument -> "hljs-type" + | TokenKind.Property -> "hljs-function" + | TokenKind.Enumeration -> "hljs-type" + | TokenKind.UnionCase -> "hljs-type" + | TokenKind.Function -> "hljs-function" + | TokenKind.Pattern -> "hljs-function" + | TokenKind.MutableVar -> "hljs-symbol" + | TokenKind.Disposable -> "hljs-symbol" + | TokenKind.Printf -> "hljs-regexp" + | TokenKind.Escaped -> "hljs-regexp" + | TokenKind.Default -> "" + + + + +let isSeparator (input : string) = + input.StartsWith "---" + +///`fileContent` - content of page to parse. Usually whole content of `.md` file +///returns content of config that should be used for the page +let getConfig (fileContent : string) = + let fileContent = fileContent.Split '\n' + let fileContent = fileContent |> Array.skip 1 //First line must be --- + let indexOfSeperator = fileContent |> Array.findIndex isSeparator + fileContent + |> Array.splitAt indexOfSeperator + |> fst + |> String.concat "\n" + +///`fileContent` - content of page to parse. Usually whole content of `.md` file +///returns HTML version of content of the page +let getContent (fileContent : string) (fn: string) = + let fileContent = fileContent.Split '\n' + let fileContent = fileContent |> Array.skip 1 //First line must be --- + let indexOfSeperator = fileContent |> Array.findIndex isSeparator + let _, content = fileContent |> Array.splitAt indexOfSeperator + + let content = content |> Array.skip 1 |> String.concat "\n" + let doc = Literate.ParseMarkdownFile fn + let ps = + doc.Paragraphs + |> List.skip 3 //Skip opening ---, config content, and closing --- + let doc = doc.With(paragraphs = ps) + let html = Literate.WriteHtml(doc, lineNumbers = false, tokenKindToCss = tokenToCss) + .Replace("lang=\"fsharp", "class=\"language-fsharp") + content, html + +let trimString (str : string) = + str.Trim().TrimEnd('"').TrimStart('"') + +let relative toPath fromPath = + let toUri = Uri(toPath) + let fromUri = Uri(fromPath) + toUri.MakeRelativeUri(fromUri).OriginalString + +let loadFile projectRoot n = + let text = System.IO.File.ReadAllText n + + let config = (getConfig text).Split( '\n') |> List.ofArray + + let (text, content) = getContent text n + + let file = relative (Path.Combine(projectRoot, "content") + string Path.DirectorySeparatorChar) n + let link = Path.ChangeExtension(file, ".html") + + let title = config |> List.find (fun n -> n.ToLower().StartsWith "title" ) |> fun n -> n.Split(':').[1] |> trimString + + let menu_order = + try + let n = config |> List.find (fun n -> n.ToLower().StartsWith "menu_order" ) + n.Split(':').[1] |> trimString |> System.Int32.Parse + with + | _ -> 10 + + let hide = + try + let n = config |> List.find (fun n -> n.ToLower().StartsWith "hide_menu" ) + n.Split(':').[1] |> trimString |> System.Boolean.Parse + with + | _ -> false + + let category = + let n = config |> List.find (fun n -> n.ToLower().StartsWith "category" ) + n.Split(':').[1] |> trimString |> PostCategory.Parse + + let language = + try + let n = config |> List.find (fun n -> n.ToLower().StartsWith "language" ) + n.Split(':').[1] |> trimString |> Some + with + | _ -> None + + + { file = file + link = link + title = title + content = content + menu_order = menu_order + hide_menu = hide + text = text + category = category + language = language } + +let loader (projectRoot: string) (siteContet: SiteContents) = + try + let postsPath = System.IO.Path.Combine(projectRoot, "content") + let posts = + Directory.GetFiles(postsPath, "*", SearchOption.AllDirectories ) + |> Array.filter (fun n -> n.EndsWith ".md") + |> Array.map (loadFile projectRoot) + + posts + |> Array.iter (fun p -> siteContet.Add p) + + siteContet.Add({disableLiveRefresh = true}) + with + | ex -> printfn "EX: %A" ex + + siteContet + diff --git a/fcs/docsrc/loaders/copyloader.fsx b/fcs/docsrc/loaders/copyloader.fsx new file mode 100644 index 0000000000..e2b892f08c --- /dev/null +++ b/fcs/docsrc/loaders/copyloader.fsx @@ -0,0 +1,18 @@ +#r "../_lib/Fornax.Core.dll" + +open System.IO + + +let loader (projectRoot: string) (siteContet: SiteContents) = + let intputPath = Path.Combine(projectRoot, "static") + let outputPath = Path.Combine(projectRoot, "_public", "static") + if Directory.Exists outputPath then Directory.Delete(outputPath, true) + Directory.CreateDirectory outputPath |> ignore + + for dirPath in Directory.GetDirectories(intputPath, "*", SearchOption.AllDirectories) do + Directory.CreateDirectory(dirPath.Replace(intputPath, outputPath)) |> ignore + + for filePath in Directory.GetFiles(intputPath, "*.*", SearchOption.AllDirectories) do + File.Copy(filePath, filePath.Replace(intputPath, outputPath), true) + + siteContet \ No newline at end of file diff --git a/fcs/docsrc/loaders/globalloader.fsx b/fcs/docsrc/loaders/globalloader.fsx new file mode 100644 index 0000000000..96f7e7a1d5 --- /dev/null +++ b/fcs/docsrc/loaders/globalloader.fsx @@ -0,0 +1,25 @@ +#r "../_lib/Fornax.Core.dll" + +type SiteInfo = { + title: string + description: string + theme_variant: string option + root_url: string +} + +let config = { + title = "FSharp Compiler Service" + description = "F# compiler services for creating IDE tools, language extensions and for F# embedding" + theme_variant = Some "blue" + root_url = + #if WATCH + "http://localhost:8080/" + #else + "http://fsharp.github.io/FSharp.Compiler.Service/" + #endif +} + +let loader (projectRoot: string) (siteContet: SiteContents) = + siteContet.Add(config) + + siteContet diff --git a/fcs/docsrc/loaders/literalloader.fsx b/fcs/docsrc/loaders/literalloader.fsx new file mode 100644 index 0000000000..213a924fdc --- /dev/null +++ b/fcs/docsrc/loaders/literalloader.fsx @@ -0,0 +1,149 @@ +open System +#r "../_lib/Fornax.Core.dll" +#r "../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.CodeFormat.dll" +#r "../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.Markdown.dll" +#r "../../packages/docs/FSharp.Formatting/lib/netstandard2.0/FSharp.Literate.dll" +#if !FORNAX +#load "contentloader.fsx" +open Contentloader +#endif + +open System.IO +open FSharp.Literate +open FSharp.CodeFormat + +let tokenToCss (x: TokenKind) = + match x with + | TokenKind.Keyword -> "hljs-keyword" + | TokenKind.String -> "hljs-string" + | TokenKind.Comment -> "hljs-comment" + | TokenKind.Identifier -> "hljs-function" + | TokenKind.Inactive -> "" + | TokenKind.Number -> "hljs-number" + | TokenKind.Operator -> "hljs-keyword" + | TokenKind.Punctuation -> "hljs-keyword" + | TokenKind.Preprocessor -> "hljs-comment" + | TokenKind.Module -> "hljs-type" + | TokenKind.ReferenceType -> "hljs-type" + | TokenKind.ValueType -> "hljs-type" + | TokenKind.Interface -> "hljs-type" + | TokenKind.TypeArgument -> "hljs-type" + | TokenKind.Property -> "hljs-function" + | TokenKind.Enumeration -> "hljs-type" + | TokenKind.UnionCase -> "hljs-type" + | TokenKind.Function -> "hljs-function" + | TokenKind.Pattern -> "hljs-function" + | TokenKind.MutableVar -> "hljs-symbol" + | TokenKind.Disposable -> "hljs-symbol" + | TokenKind.Printf -> "hljs-regexp" + | TokenKind.Escaped -> "hljs-regexp" + | TokenKind.Default -> "" + + + +let isSeparator (input : string) = + input.StartsWith "---" + + +///`fileContent` - content of page to parse. Usually whole content of `.md` file +///returns content of config that should be used for the page +let getConfig' (fileContent : string) = + let fileContent = fileContent.Split '\n' + let fileContent = fileContent |> Array.skip 2 //First line must be (*, second line must be --- + let indexOfSeperator = (fileContent |> Array.findIndex isSeparator) + 1 + fileContent + |> Array.splitAt indexOfSeperator + |> fst + |> String.concat "\n" + +///`fileContent` - content of page to parse. Usually whole content of `.fsx` file +///returns HTML version of content of the page +let getContent' (fileContent : string) (fn: string) = + let fileContent = fileContent.Split '\n' + let fileContent = fileContent |> Array.skip 2 //First line must be (*, second line must be --- + let indexOfSeperator = (fileContent |> Array.findIndex isSeparator) + 1 + let _, content = fileContent |> Array.splitAt indexOfSeperator + + let content = content |> Array.skip 1 |> String.concat "\n" + let doc = Literate.ParseScriptFile fn + let ps = + doc.Paragraphs + |> List.skip 3 //Skip opening ---, config content, and closing --- + let doc = doc.With(paragraphs = ps) + let html = Literate.WriteHtml(doc, lineNumbers = false, tokenKindToCss = tokenToCss) + .Replace("lang=\"fsharp", "class=\"language-fsharp") + content, html + + +let trimString (str : string) = + str.Trim().TrimEnd('"').TrimStart('"') + +let relative toPath fromPath = + let toUri = Uri(toPath) + let fromUri = Uri(fromPath) + toUri.MakeRelativeUri(fromUri).OriginalString + +let loadFile projectRoot n = + let text = System.IO.File.ReadAllText n + + let config = (getConfig' text).Split( '\n') |> List.ofArray + + let (text, content) = getContent' text n + + let file = relative (Path.Combine(projectRoot, "content") + string Path.DirectorySeparatorChar) n + let link = Path.ChangeExtension(file, ".html") + + let title = config |> List.find (fun n -> n.ToLower().StartsWith "title" ) |> fun n -> n.Split(':').[1] |> trimString + + let menu_order = + try + let n = config |> List.find (fun n -> n.ToLower().StartsWith "menu_order" ) + n.Split(':').[1] |> trimString |> System.Int32.Parse + with + | _ -> 10 + + let hide = + try + let n = config |> List.find (fun n -> n.ToLower().StartsWith "hide_menu" ) + n.Split(':').[1] |> trimString |> System.Boolean.Parse + with + | _ -> false + + let category = + let n = config |> List.find (fun n -> n.ToLower().StartsWith "category" ) + n.Split(':').[1] |> trimString |> PostCategory.Parse + + let language = + try + let n = config |> List.find (fun n -> n.ToLower().StartsWith "language" ) + n.Split(':').[1] |> trimString |> Some + with + | _ -> None + + { file = file + link = link + title = title + content = content + menu_order = menu_order + hide_menu = hide + text = text + category = category + language = language } + +let loader (projectRoot: string) (siteContet: SiteContents) = + try + let postsPath = System.IO.Path.Combine(projectRoot, "content") + let posts = + Directory.GetFiles(postsPath, "*", SearchOption.AllDirectories ) + |> Array.filter (fun n -> n.EndsWith ".fsx") + |> Array.map (loadFile projectRoot) + + posts + |> Array.iter (fun p -> siteContet.Add p) + + siteContet.Add({disableLiveRefresh = true}) + with + | ex -> printfn "EX: %A" ex + + siteContet + diff --git a/fcs/docsrc/loaders/pageloader.fsx b/fcs/docsrc/loaders/pageloader.fsx new file mode 100644 index 0000000000..0f4c06dba6 --- /dev/null +++ b/fcs/docsrc/loaders/pageloader.fsx @@ -0,0 +1,16 @@ +#r "../_lib/Fornax.Core.dll" + + +type Shortcut = { + title: string + link: string + icon: string +} + +let loader (projectRoot: string) (siteContet: SiteContents) = + siteContet.Add({title = "Home"; link = "/"; icon = "fas fa-home"}) + siteContet.Add({title = "F# Software Foundation"; link = "https://fsharp.org"; icon = "fas fa-globe"}) + siteContet.Add({title = "GitHub repo"; link = "https://github.com/fsharp/FSharp.Compiler.Service"; icon = "fab fa-github"}) + siteContet.Add({title = "License"; link = "https://github.com/fsharp/FSharp.Compiler.Service/blob/master/LICENSE"; icon = "far fa-file"}) + siteContet.Add({title = "Release Notes"; link = "https://github.com/fsharp/FSharp.Compiler.Service/blob/master/RELEASE_NOTES.md"; icon = "far fa-file-alt"}) + siteContet \ No newline at end of file diff --git a/fcs/docsrc/static/css/atom-one-dark-reasonable.css b/fcs/docsrc/static/css/atom-one-dark-reasonable.css new file mode 100644 index 0000000000..fd41c996a3 --- /dev/null +++ b/fcs/docsrc/static/css/atom-one-dark-reasonable.css @@ -0,0 +1,77 @@ +/* + +Atom One Dark With support for ReasonML by Gidi Morris, based off work by Daniel Gamage + +Original One Dark Syntax theme from https://github.com/atom/one-dark-syntax + +*/ +.hljs { + display: block; + overflow-x: auto; + padding: 0.5em; + line-height: 1.3em; + color: #abb2bf; + background: #282c34; + border-radius: 5px; +} +.hljs-keyword, .hljs-operator { + color: #F92672; +} +.hljs-pattern-match { + color: #F92672; +} +.hljs-pattern-match .hljs-constructor { + color: #61aeee; +} +.hljs-function { + color: #61aeee; +} +.hljs-function .hljs-params { + color: #A6E22E; +} +.hljs-function .hljs-params .hljs-typing { + color: #FD971F; +} +.hljs-module-access .hljs-module { + color: #7e57c2; +} +.hljs-constructor { + color: #e2b93d; +} +.hljs-constructor .hljs-string { + color: #9CCC65; +} +.hljs-comment, .hljs-quote { + color: #b18eb1; + font-style: italic; +} +.hljs-doctag, .hljs-formula { + color: #c678dd; +} +.hljs-section, .hljs-name, .hljs-selector-tag, .hljs-deletion, .hljs-subst { + color: #e06c75; +} +.hljs-literal { + color: #56b6c2; +} +.hljs-string, .hljs-regexp, .hljs-addition, .hljs-attribute, .hljs-meta-string { + color: #98c379; +} +.hljs-built_in, .hljs-class .hljs-title { + color: #e6c07b; +} +.hljs-attr, .hljs-variable, .hljs-template-variable, .hljs-type, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-number { + color: #d19a66; +} +.hljs-symbol, .hljs-bullet, .hljs-link, .hljs-meta, .hljs-selector-id, .hljs-title { + color: #61aeee; +} +.hljs-emphasis { + font-style: italic; +} +.hljs-strong { + font-weight: bold; +} +.hljs-link { + text-decoration: underline; +} diff --git a/fcs/docsrc/static/css/auto-complete.css b/fcs/docsrc/static/css/auto-complete.css new file mode 100644 index 0000000000..ac6979ad36 --- /dev/null +++ b/fcs/docsrc/static/css/auto-complete.css @@ -0,0 +1,47 @@ +.autocomplete-suggestions { + text-align: left; + cursor: default; + border: 1px solid #ccc; + border-top: 0; + background: #fff; + box-shadow: -1px 1px 3px rgba(0,0,0,.1); + + /* core styles should not be changed */ + position: absolute; + display: none; + z-index: 9999; + max-height: 254px; + overflow: hidden; + overflow-y: auto; + box-sizing: border-box; + +} +.autocomplete-suggestion { + position: relative; + cursor: pointer; + padding: 7px; + line-height: 23px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + color: #333; +} + +.autocomplete-suggestion b { + font-weight: normal; + color: #1f8dd6; +} + +.autocomplete-suggestion.selected { + background: #333; + color: #fff; +} + +.autocomplete-suggestion:hover { + background: #444; + color: #fff; +} + +.autocomplete-suggestion > .context { + font-size: 12px; +} diff --git a/fcs/docsrc/static/css/custom.css b/fcs/docsrc/static/css/custom.css new file mode 100644 index 0000000000..a03e1237c8 --- /dev/null +++ b/fcs/docsrc/static/css/custom.css @@ -0,0 +1,3 @@ +:root #header + #content > #left > #rlblock_left{ + display:none !important; +} \ No newline at end of file diff --git a/fcs/docsrc/static/css/featherlight.min.css b/fcs/docsrc/static/css/featherlight.min.css new file mode 100644 index 0000000000..058487f916 --- /dev/null +++ b/fcs/docsrc/static/css/featherlight.min.css @@ -0,0 +1,8 @@ +/** + * Featherlight - ultra slim jQuery lightbox + * Version 1.7.13 - http://noelboss.github.io/featherlight/ + * + * Copyright 2018, Noël Raoul Bossart (http://www.noelboss.com) + * MIT Licensed. +**/ +html.with-featherlight{overflow:hidden}.featherlight{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483647;text-align:center;white-space:nowrap;cursor:pointer;background:#333;background:rgba(0,0,0,0)}.featherlight:last-of-type{background:rgba(0,0,0,.8)}.featherlight:before{content:'';display:inline-block;height:100%;vertical-align:middle}.featherlight .featherlight-content{position:relative;text-align:left;vertical-align:middle;display:inline-block;overflow:auto;padding:25px 25px 0;border-bottom:25px solid transparent;margin-left:5%;margin-right:5%;max-height:95%;background:#fff;cursor:auto;white-space:normal}.featherlight .featherlight-inner{display:block}.featherlight link.featherlight-inner,.featherlight script.featherlight-inner,.featherlight style.featherlight-inner{display:none}.featherlight .featherlight-close-icon{position:absolute;z-index:9999;top:0;right:0;line-height:25px;width:25px;cursor:pointer;text-align:center;font-family:Arial,sans-serif;background:#fff;background:rgba(255,255,255,.3);color:#000;border:0;padding:0}.featherlight .featherlight-close-icon::-moz-focus-inner{border:0;padding:0}.featherlight .featherlight-image{width:100%}.featherlight-iframe .featherlight-content{border-bottom:0;padding:0;-webkit-overflow-scrolling:touch}.featherlight iframe{border:0}.featherlight *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@media only screen and (max-width:1024px){.featherlight .featherlight-content{margin-left:0;margin-right:0;max-height:98%;padding:10px 10px 0;border-bottom:10px solid transparent}}@media print{html.with-featherlight>*>:not(.featherlight){display:none}} \ No newline at end of file diff --git a/fcs/docsrc/static/css/fontawesome-all.min.css b/fcs/docsrc/static/css/fontawesome-all.min.css new file mode 100644 index 0000000000..de56473722 --- /dev/null +++ b/fcs/docsrc/static/css/fontawesome-all.min.css @@ -0,0 +1 @@ +.fa,.fab,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adobe:before{content:"\f778"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-balance-scale:before{content:"\f24e"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edit:before{content:"\f044"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-git:before{content:"\f1d3"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guitar:before{content:"\f7a6"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-handshake:before{content:"\f2b5"}.fa-hanukiah:before{content:"\f6e6"}.fa-hashtag:before{content:"\f292"}.fa-hat-wizard:before{content:"\f6e8"}.fa-haykal:before{content:"\f666"}.fa-hdd:before{content:"\f0a0"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hot-tub:before{content:"\f593"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-icicles:before{content:"\f7ad"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-instagram:before{content:"\f16d"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse-pointer:before{content:"\f245"}.fa-mug-hot:before{content:"\f7b6"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-nintendo-switch:before{content:"\f418"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-carry:before{content:"\f4ce"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-volume:before{content:"\f2a0"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-sketch:before{content:"\f7c6"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-uikit:before{content:"\f403"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-water:before{content:"\f773"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff"),url(../webfonts/fa-solid-900.ttf) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900} \ No newline at end of file diff --git a/fcs/docsrc/static/css/hugo-theme.css b/fcs/docsrc/static/css/hugo-theme.css new file mode 100644 index 0000000000..741cab196a --- /dev/null +++ b/fcs/docsrc/static/css/hugo-theme.css @@ -0,0 +1,254 @@ +/* Insert here special css for hugo theme, on top of any other imported css */ + + +/* Table of contents */ + +.progress ul { + list-style: none; + margin: 0; + padding: 0 5px; +} + +#TableOfContents { + font-size: 13px !important; + max-height: 85vh; + overflow: auto; + padding: 15px !important; +} + + +#TableOfContents > ul > li > ul > li > ul li { + margin-right: 8px; +} + +#TableOfContents > ul > li > a { + font-weight: bold; padding: 0 18px; margin: 0 2px; +} + +#TableOfContents > ul > li > ul > li > a { + font-weight: bold; +} + +#TableOfContents > ul > li > ul > li > ul > li > ul > li > ul > li { + display: none; +} + +body { + font-size: 16px !important; + color: #323232 !important; +} + +#body a.highlight, #body a.highlight:hover, #body a.highlight:focus { + text-decoration: none; + outline: none; + outline: 0; +} +#body a.highlight { + line-height: 1.1; + display: inline-block; +} +#body a.highlight:after { + display: block; + content: ""; + height: 1px; + width: 0%; + background-color: #0082a7; /*#CE3B2F*/ + -webkit-transition: width 0.5s ease; + -moz-transition: width 0.5s ease; + -ms-transition: width 0.5s ease; + transition: width 0.5s ease; +} +#body a.highlight:hover:after, #body a.highlight:focus:after { + width: 100%; +} +.progress { + position:absolute; + background-color: rgba(246, 246, 246, 0.97); + width: auto; + border: thin solid #ECECEC; + display:none; + z-index:200; +} + +#toc-menu { + border-right: thin solid #DAD8D8 !important; + padding-right: 1rem !important; + margin-right: 0.5rem !important; +} + +#sidebar-toggle-span { + border-right: thin solid #DAD8D8 !important; + padding-right: 0.5rem !important; + margin-right: 1rem !important; +} + +.btn { + display: inline-block !important; + padding: 6px 12px !important; + margin-bottom: 0 !important; + font-size: 14px !important; + font-weight: normal !important; + line-height: 1.42857143 !important; + text-align: center !important; + white-space: nowrap !important; + vertical-align: middle !important; + -ms-touch-action: manipulation !important; + touch-action: manipulation !important; + cursor: pointer !important; + -webkit-user-select: none !important; + -moz-user-select: none !important; + -ms-user-select: none !important; + user-select: none !important; + background-image: none !important; + border: 1px solid transparent !important; + border-radius: 4px !important; + -webkit-transition: all 0.15s !important; + -moz-transition: all 0.15s !important; + transition: all 0.15s !important; +} +.btn:focus { + /*outline: thin dotted; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px;*/ + outline: none !important; +} +.btn:hover, +.btn:focus { + color: #2b2b2b !important; + text-decoration: none !important; +} + +.btn-default { + color: #333 !important; + background-color: #fff !important; + border-color: #ccc !important; +} +.btn-default:hover, +.btn-default:focus, +.btn-default:active { + color: #fff !important; + background-color: #9e9e9e !important; + border-color: #9e9e9e !important; +} +.btn-default:active { + background-image: none !important; +} + +/* anchors */ +.anchor { + color: #00bdf3; + font-size: 0.5em; + cursor:pointer; + visibility:hidden; + margin-left: 0.5em; + position: absolute; + margin-top:0.1em; +} + +h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, h5:hover .anchor, h6:hover .anchor { + visibility:visible; +} + +/* Redfines headers style */ + +h2, h3, h4, h5, h6 { + font-weight: 400; + line-height: 1.1; +} + +h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { + font-weight: inherit; +} + +h2 { + font-size: 2.5rem; + line-height: 110% !important; + margin: 2.5rem 0 1.5rem 0; +} + +h3 { + font-size: 2rem; + line-height: 110% !important; + margin: 2rem 0 1rem 0; +} + +h4 { + font-size: 1.5rem; + line-height: 110% !important; + margin: 1.5rem 0 0.75rem 0; +} + +h5 { + font-size: 1rem; + line-height: 110% !important; + margin: 1rem 0 0.2rem 0; +} + +h6 { + font-size: 0.5rem; + line-height: 110% !important; + margin: 0.5rem 0 0.2rem 0; +} + +p { + margin: 1rem 0; +} + +figcaption h4 { + font-weight: 300 !important; + opacity: .85; + font-size: 1em; + text-align: center; + margin-top: -1.5em; +} + +.select-style { + border: 0; + width: 150px; + border-radius: 0px; + overflow: hidden; + display: inline-flex; +} + +.select-style svg { + fill: #ccc; + width: 14px; + height: 14px; + pointer-events: none; + margin: auto; +} + +.select-style svg:hover { + fill: #e6e6e6; +} + +.select-style select { + padding: 0; + width: 130%; + border: none; + box-shadow: none; + background: transparent; + background-image: none; + -webkit-appearance: none; + margin: auto; + margin-left: 0px; + margin-right: -20px; +} + +.select-style select:focus { + outline: none; +} + +.select-style :hover { + cursor: pointer; +} + +@media only all and (max-width: 47.938em) { + #breadcrumbs .links, #top-github-link-text { + display: none; + } +} + +.is-sticky #top-bar { + box-shadow: -1px 2px 5px 1px rgba(0, 0, 0, 0.1); +} \ No newline at end of file diff --git a/fcs/docsrc/static/css/hybrid.css b/fcs/docsrc/static/css/hybrid.css new file mode 100644 index 0000000000..29735a1890 --- /dev/null +++ b/fcs/docsrc/static/css/hybrid.css @@ -0,0 +1,102 @@ +/* + +vim-hybrid theme by w0ng (https://github.com/w0ng/vim-hybrid) + +*/ + +/*background color*/ +.hljs { + display: block; + overflow-x: auto; + padding: 0.5em; + background: #1d1f21; +} + +/*selection color*/ +.hljs::selection, +.hljs span::selection { + background: #373b41; +} + +.hljs::-moz-selection, +.hljs span::-moz-selection { + background: #373b41; +} + +/*foreground color*/ +.hljs { + color: #c5c8c6; +} + +/*color: fg_yellow*/ +.hljs-title, +.hljs-name { + color: #f0c674; +} + +/*color: fg_comment*/ +.hljs-comment, +.hljs-meta, +.hljs-meta .hljs-keyword { + color: #707880; +} + +/*color: fg_red*/ +.hljs-number, +.hljs-symbol, +.hljs-literal, +.hljs-deletion, +.hljs-link { + color: #cc6666 +} + +/*color: fg_green*/ +.hljs-string, +.hljs-doctag, +.hljs-addition, +.hljs-regexp, +.hljs-selector-attr, +.hljs-selector-pseudo { + color: #b5bd68; +} + +/*color: fg_purple*/ +.hljs-attribute, +.hljs-code, +.hljs-selector-id { + color: #b294bb; +} + +/*color: fg_blue*/ +.hljs-keyword, +.hljs-selector-tag, +.hljs-bullet, +.hljs-tag { + color: #81a2be; +} + +/*color: fg_aqua*/ +.hljs-subst, +.hljs-variable, +.hljs-template-tag, +.hljs-template-variable { + color: #8abeb7; +} + +/*color: fg_orange*/ +.hljs-type, +.hljs-built_in, +.hljs-builtin-name, +.hljs-quote, +.hljs-section, +.hljs-selector-class { + color: #de935f; +} + +.hljs-emphasis { + font-style: italic; +} + +.hljs-strong { + font-weight: bold; +} diff --git a/fcs/docsrc/static/css/nucleus.css b/fcs/docsrc/static/css/nucleus.css new file mode 100644 index 0000000000..1897fc5d6d --- /dev/null +++ b/fcs/docsrc/static/css/nucleus.css @@ -0,0 +1,615 @@ +*, *::before, *::after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; } + +@-webkit-viewport { + width: device-width; } +@-moz-viewport { + width: device-width; } +@-ms-viewport { + width: device-width; } +@-o-viewport { + width: device-width; } +@viewport { + width: device-width; } +html { + font-size: 100%; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; } + +body { + margin: 0; } + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +nav, +section, +summary { + display: block; } + +audio, +canvas, +progress, +video { + display: inline-block; + vertical-align: baseline; } + +audio:not([controls]) { + display: none; + height: 0; } + +[hidden], +template { + display: none; } + +a { + background: transparent; + text-decoration: none; } + +a:active, +a:hover { + outline: 0; } + +abbr[title] { + border-bottom: 1px dotted; } + +b, +strong { + font-weight: bold; } + +dfn { + font-style: italic; } + +mark { + background: #FFFF27; + color: #333; } + +sub, +sup { + font-size: 0.8rem; + line-height: 0; + position: relative; + vertical-align: baseline; } + +sup { + top: -0.5em; } + +sub { + bottom: -0.25em; } + +img { + border: 0; + max-width: 100%; } + +svg:not(:root) { + overflow: hidden; } + +figure { + margin: 1em 40px; } + +hr { + height: 0; } + +pre { + overflow: auto; } + +button, +input, +optgroup, +select, +textarea { + color: inherit; + font: inherit; + margin: 0; } + +button { + overflow: visible; } + +button, +select { + text-transform: none; } + +button, +html input[type="button"], +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; + cursor: pointer; } + +button[disabled], +html input[disabled] { + cursor: default; } + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; } + +input { + line-height: normal; } + +input[type="checkbox"], +input[type="radio"] { + padding: 0; } + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button { + height: auto; } + +input[type="search"] { + -webkit-appearance: textfield; } + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; } + +legend { + border: 0; + padding: 0; } + +textarea { + overflow: auto; } + +optgroup { + font-weight: bold; } + +table { + border-collapse: collapse; + border-spacing: 0; + table-layout: fixed; + width: 100%; } + +tr, td, th { + vertical-align: middle; } + +th, td { + padding: 0.425rem 0; } + +th { + text-align: left; } + +.container { + width: 75em; + margin: 0 auto; + padding: 0; } + @media only all and (min-width: 60em) and (max-width: 74.938em) { + .container { + width: 60em; } } + @media only all and (min-width: 48em) and (max-width: 59.938em) { + .container { + width: 48em; } } + @media only all and (min-width: 30.063em) and (max-width: 47.938em) { + .container { + width: 30em; } } + @media only all and (max-width: 30em) { + .container { + width: 100%; } } + +.grid { + display: -webkit-box; + display: -moz-box; + display: box; + display: -webkit-flex; + display: -moz-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-flow: row; + -moz-flex-flow: row; + flex-flow: row; + list-style: none; + margin: 0; + padding: 0; } + @media only all and (max-width: 47.938em) { + .grid { + -webkit-flex-flow: row wrap; + -moz-flex-flow: row wrap; + flex-flow: row wrap; } } + +.block { + -webkit-box-flex: 1; + -moz-box-flex: 1; + box-flex: 1; + -webkit-flex: 1; + -moz-flex: 1; + -ms-flex: 1; + flex: 1; + min-width: 0; + min-height: 0; } + @media only all and (max-width: 47.938em) { + .block { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 100%; + -moz-flex: 0 100%; + -ms-flex: 0 100%; + flex: 0 100%; } } + +.content { + margin: 0.625rem; + padding: 0.938rem; } + +@media only all and (max-width: 47.938em) { + body [class*="size-"] { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 100%; + -moz-flex: 0 100%; + -ms-flex: 0 100%; + flex: 0 100%; } } + +.size-1-2 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 50%; + -moz-flex: 0 50%; + -ms-flex: 0 50%; + flex: 0 50%; } + +.size-1-3 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 33.33333%; + -moz-flex: 0 33.33333%; + -ms-flex: 0 33.33333%; + flex: 0 33.33333%; } + +.size-1-4 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 25%; + -moz-flex: 0 25%; + -ms-flex: 0 25%; + flex: 0 25%; } + +.size-1-5 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 20%; + -moz-flex: 0 20%; + -ms-flex: 0 20%; + flex: 0 20%; } + +.size-1-6 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 16.66667%; + -moz-flex: 0 16.66667%; + -ms-flex: 0 16.66667%; + flex: 0 16.66667%; } + +.size-1-7 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 14.28571%; + -moz-flex: 0 14.28571%; + -ms-flex: 0 14.28571%; + flex: 0 14.28571%; } + +.size-1-8 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 12.5%; + -moz-flex: 0 12.5%; + -ms-flex: 0 12.5%; + flex: 0 12.5%; } + +.size-1-9 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 11.11111%; + -moz-flex: 0 11.11111%; + -ms-flex: 0 11.11111%; + flex: 0 11.11111%; } + +.size-1-10 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 10%; + -moz-flex: 0 10%; + -ms-flex: 0 10%; + flex: 0 10%; } + +.size-1-11 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 9.09091%; + -moz-flex: 0 9.09091%; + -ms-flex: 0 9.09091%; + flex: 0 9.09091%; } + +.size-1-12 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 8.33333%; + -moz-flex: 0 8.33333%; + -ms-flex: 0 8.33333%; + flex: 0 8.33333%; } + +@media only all and (min-width: 48em) and (max-width: 59.938em) { + .size-tablet-1-2 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 50%; + -moz-flex: 0 50%; + -ms-flex: 0 50%; + flex: 0 50%; } + + .size-tablet-1-3 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 33.33333%; + -moz-flex: 0 33.33333%; + -ms-flex: 0 33.33333%; + flex: 0 33.33333%; } + + .size-tablet-1-4 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 25%; + -moz-flex: 0 25%; + -ms-flex: 0 25%; + flex: 0 25%; } + + .size-tablet-1-5 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 20%; + -moz-flex: 0 20%; + -ms-flex: 0 20%; + flex: 0 20%; } + + .size-tablet-1-6 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 16.66667%; + -moz-flex: 0 16.66667%; + -ms-flex: 0 16.66667%; + flex: 0 16.66667%; } + + .size-tablet-1-7 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 14.28571%; + -moz-flex: 0 14.28571%; + -ms-flex: 0 14.28571%; + flex: 0 14.28571%; } + + .size-tablet-1-8 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 12.5%; + -moz-flex: 0 12.5%; + -ms-flex: 0 12.5%; + flex: 0 12.5%; } + + .size-tablet-1-9 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 11.11111%; + -moz-flex: 0 11.11111%; + -ms-flex: 0 11.11111%; + flex: 0 11.11111%; } + + .size-tablet-1-10 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 10%; + -moz-flex: 0 10%; + -ms-flex: 0 10%; + flex: 0 10%; } + + .size-tablet-1-11 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 9.09091%; + -moz-flex: 0 9.09091%; + -ms-flex: 0 9.09091%; + flex: 0 9.09091%; } + + .size-tablet-1-12 { + -webkit-box-flex: 0; + -moz-box-flex: 0; + box-flex: 0; + -webkit-flex: 0 8.33333%; + -moz-flex: 0 8.33333%; + -ms-flex: 0 8.33333%; + flex: 0 8.33333%; } } +@media only all and (max-width: 47.938em) { + @supports not (flex-wrap: wrap) { + .grid { + display: block; + -webkit-box-lines: inherit; + -moz-box-lines: inherit; + box-lines: inherit; + -webkit-flex-wrap: inherit; + -moz-flex-wrap: inherit; + -ms-flex-wrap: inherit; + flex-wrap: inherit; } + + .block { + display: block; + -webkit-box-flex: inherit; + -moz-box-flex: inherit; + box-flex: inherit; + -webkit-flex: inherit; + -moz-flex: inherit; + -ms-flex: inherit; + flex: inherit; } } } +.first-block { + -webkit-box-ordinal-group: 0; + -webkit-order: -1; + -ms-flex-order: -1; + order: -1; } + +.last-block { + -webkit-box-ordinal-group: 2; + -webkit-order: 1; + -ms-flex-order: 1; + order: 1; } + +.fixed-blocks { + -webkit-flex-flow: row wrap; + -moz-flex-flow: row wrap; + flex-flow: row wrap; } + .fixed-blocks .block { + -webkit-box-flex: inherit; + -moz-box-flex: inherit; + box-flex: inherit; + -webkit-flex: inherit; + -moz-flex: inherit; + -ms-flex: inherit; + flex: inherit; + width: 25%; } + @media only all and (min-width: 60em) and (max-width: 74.938em) { + .fixed-blocks .block { + width: 33.33333%; } } + @media only all and (min-width: 48em) and (max-width: 59.938em) { + .fixed-blocks .block { + width: 50%; } } + @media only all and (max-width: 47.938em) { + .fixed-blocks .block { + width: 100%; } } + +body { + font-size: 1.05rem; + line-height: 1.7; } + +h1, h2, h3, h4, h5, h6 { + margin: 0.85rem 0 1.7rem 0; + text-rendering: optimizeLegibility; } + +h1 { + font-size: 3.25rem; } + +h2 { + font-size: 2.55rem; } + +h3 { + font-size: 2.15rem; } + +h4 { + font-size: 1.8rem; } + +h5 { + font-size: 1.4rem; } + +h6 { + font-size: 0.9rem; } + +p { + margin: 1.7rem 0; } + +ul, ol { + margin-top: 1.7rem; + margin-bottom: 1.7rem; } + ul ul, ul ol, ol ul, ol ol { + margin-top: 0; + margin-bottom: 0; } + +blockquote { + margin: 1.7rem 0; + padding-left: 0.85rem; } + +cite { + display: block; + font-size: 0.925rem; } + cite:before { + content: "\2014 \0020"; } + +pre { + margin: 1.7rem 0; + padding: 0.938rem; } + +code { + vertical-align: bottom; } + +small { + font-size: 0.925rem; } + +hr { + border-left: none; + border-right: none; + border-top: none; + margin: 1.7rem 0; } + +fieldset { + border: 0; + padding: 0.938rem; + margin: 0 0 1.7rem 0; } + +input, +label, +select { + display: block; } + +label { + margin-bottom: 0.425rem; } + label.required:after { + content: "*"; } + label abbr { + display: none; } + +textarea, input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="time"], input[type="week"], select[multiple=multiple] { + -webkit-transition: border-color; + -moz-transition: border-color; + transition: border-color; + border-radius: 0.1875rem; + margin-bottom: 0.85rem; + padding: 0.425rem 0.425rem; + width: 100%; } + textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus { + outline: none; } + +textarea { + resize: vertical; } + +input[type="checkbox"], input[type="radio"] { + display: inline; + margin-right: 0.425rem; } + +input[type="file"] { + width: 100%; } + +select { + width: auto; + max-width: 100%; + margin-bottom: 1.7rem; } + +button, +input[type="submit"] { + cursor: pointer; + user-select: none; + vertical-align: middle; + white-space: nowrap; + border: inherit; } diff --git a/fcs/docsrc/static/css/perfect-scrollbar.min.css b/fcs/docsrc/static/css/perfect-scrollbar.min.css new file mode 100644 index 0000000000..ebd2cb43bc --- /dev/null +++ b/fcs/docsrc/static/css/perfect-scrollbar.min.css @@ -0,0 +1,2 @@ +/* perfect-scrollbar v0.6.13 */ +.ps-container{-ms-touch-action:auto;touch-action:auto;overflow:hidden !important;-ms-overflow-style:none}@supports (-ms-overflow-style: none){.ps-container{overflow:auto !important}}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none){.ps-container{overflow:auto !important}}.ps-container.ps-active-x>.ps-scrollbar-x-rail,.ps-container.ps-active-y>.ps-scrollbar-y-rail{display:block;background-color:transparent}.ps-container.ps-in-scrolling.ps-x>.ps-scrollbar-x-rail{background-color:#eee;opacity:.9}.ps-container.ps-in-scrolling.ps-x>.ps-scrollbar-x-rail>.ps-scrollbar-x{background-color:#999;height:11px}.ps-container.ps-in-scrolling.ps-y>.ps-scrollbar-y-rail{background-color:#eee;opacity:.9}.ps-container.ps-in-scrolling.ps-y>.ps-scrollbar-y-rail>.ps-scrollbar-y{background-color:#999;width:11px}.ps-container>.ps-scrollbar-x-rail{display:none;position:absolute;opacity:0;-webkit-transition:background-color .2s linear, opacity .2s linear;-o-transition:background-color .2s linear, opacity .2s linear;-moz-transition:background-color .2s linear, opacity .2s linear;transition:background-color .2s linear, opacity .2s linear;bottom:0px;height:15px}.ps-container>.ps-scrollbar-x-rail>.ps-scrollbar-x{position:absolute;background-color:#aaa;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-transition:background-color .2s linear, height .2s linear, width .2s ease-in-out, -webkit-border-radius .2s ease-in-out;transition:background-color .2s linear, height .2s linear, width .2s ease-in-out, -webkit-border-radius .2s ease-in-out;-o-transition:background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out;-moz-transition:background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out, -moz-border-radius .2s ease-in-out;transition:background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out;transition:background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out, -webkit-border-radius .2s ease-in-out, -moz-border-radius .2s ease-in-out;bottom:2px;height:6px}.ps-container>.ps-scrollbar-x-rail:hover>.ps-scrollbar-x,.ps-container>.ps-scrollbar-x-rail:active>.ps-scrollbar-x{height:11px}.ps-container>.ps-scrollbar-y-rail{display:none;position:absolute;opacity:0;-webkit-transition:background-color .2s linear, opacity .2s linear;-o-transition:background-color .2s linear, opacity .2s linear;-moz-transition:background-color .2s linear, opacity .2s linear;transition:background-color .2s linear, opacity .2s linear;right:0;width:15px}.ps-container>.ps-scrollbar-y-rail>.ps-scrollbar-y{position:absolute;background-color:#aaa;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-transition:background-color .2s linear, height .2s linear, width .2s ease-in-out, -webkit-border-radius .2s ease-in-out;transition:background-color .2s linear, height .2s linear, width .2s ease-in-out, -webkit-border-radius .2s ease-in-out;-o-transition:background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out;-moz-transition:background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out, -moz-border-radius .2s ease-in-out;transition:background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out;transition:background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out, -webkit-border-radius .2s ease-in-out, -moz-border-radius .2s ease-in-out;right:2px;width:6px}.ps-container>.ps-scrollbar-y-rail:hover>.ps-scrollbar-y,.ps-container>.ps-scrollbar-y-rail:active>.ps-scrollbar-y{width:11px}.ps-container:hover.ps-in-scrolling.ps-x>.ps-scrollbar-x-rail{background-color:#eee;opacity:.9}.ps-container:hover.ps-in-scrolling.ps-x>.ps-scrollbar-x-rail>.ps-scrollbar-x{background-color:#999;height:11px}.ps-container:hover.ps-in-scrolling.ps-y>.ps-scrollbar-y-rail{background-color:#eee;opacity:.9}.ps-container:hover.ps-in-scrolling.ps-y>.ps-scrollbar-y-rail>.ps-scrollbar-y{background-color:#999;width:11px}.ps-container:hover>.ps-scrollbar-x-rail,.ps-container:hover>.ps-scrollbar-y-rail{opacity:.6}.ps-container:hover>.ps-scrollbar-x-rail:hover{background-color:#eee;opacity:.9}.ps-container:hover>.ps-scrollbar-x-rail:hover>.ps-scrollbar-x{background-color:#999}.ps-container:hover>.ps-scrollbar-y-rail:hover{background-color:#eee;opacity:.9}.ps-container:hover>.ps-scrollbar-y-rail:hover>.ps-scrollbar-y{background-color:#999} diff --git a/fcs/docsrc/static/css/tags.css b/fcs/docsrc/static/css/tags.css new file mode 100644 index 0000000000..495d2f9f71 --- /dev/null +++ b/fcs/docsrc/static/css/tags.css @@ -0,0 +1,49 @@ +/* Tags */ + +#head-tags{ + margin-left:1em; + margin-top:1em; +} + +#body .tags a.tag-link { + display: inline-block; + line-height: 2em; + font-size: 0.8em; + position: relative; + margin: 0 16px 8px 0; + padding: 0 10px 0 12px; + background: #8451a1; + + -webkit-border-bottom-right-radius: 3px; + border-bottom-right-radius: 3px; + -webkit-border-top-right-radius: 3px; + border-top-right-radius: 3px; + + -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2); + box-shadow: 0 1px 2px rgba(0,0,0,0.2); + color: #fff; +} + +#body .tags a.tag-link:before { + content: ""; + position: absolute; + top:0; + left: -1em; + width: 0; + height: 0; + border-color: transparent #8451a1 transparent transparent; + border-style: solid; + border-width: 1em 1em 1em 0; +} + +#body .tags a.tag-link:after { + content: ""; + position: absolute; + top: 10px; + left: 1px; + width: 5px; + height: 5px; + -webkit-border-radius: 50%; + border-radius: 100%; + background: #fff; +} diff --git a/fcs/docsrc/static/css/theme-blue.css b/fcs/docsrc/static/css/theme-blue.css new file mode 100644 index 0000000000..9771ae5e3a --- /dev/null +++ b/fcs/docsrc/static/css/theme-blue.css @@ -0,0 +1,111 @@ + +:root{ + + --MAIN-TEXT-color:#323232; /* Color of text by default */ + --MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5 */ + --MAIN-LINK-color:#1C90F3; /* Color of links */ + --MAIN-LINK-HOVER-color:#167ad0; /* Color of hovered links */ + --MAIN-ANCHOR-color: #1C90F3; /* color of anchors on titles */ + + --MENU-HEADER-BG-color:#1C90F3; /* Background color of menu header */ + --MENU-HEADER-BORDER-color:#33a1ff; /*Color of menu header border */ + + --MENU-SEARCH-BG-color:#167ad0; /* Search field background color (by default borders + icons) */ + --MENU-SEARCH-BOX-color: #33a1ff; /* Override search field border color */ + --MENU-SEARCH-BOX-ICONS-color: #a1d2fd; /* Override search field icons color */ + + --MENU-SECTIONS-ACTIVE-BG-color:#20272b; /* Background color of the active section and its childs */ + --MENU-SECTIONS-BG-color:#252c31; /* Background color of other sections */ + --MENU-SECTIONS-LINK-color: #ccc; /* Color of links in menu */ + --MENU-SECTIONS-LINK-HOVER-color: #e6e6e6; /* Color of links in menu, when hovered */ + --MENU-SECTION-ACTIVE-CATEGORY-color: #777; /* Color of active category text */ + --MENU-SECTION-ACTIVE-CATEGORY-BG-color: #fff; /* Color of background for the active category (only) */ + + --MENU-VISITED-color: #33a1ff; /* Color of 'page visited' icons in menu */ + --MENU-SECTION-HR-color: #20272b; /* Color of


separator in menu */ + +} + +body { + color: var(--MAIN-TEXT-color) !important; +} + +textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus { + border-color: none; + box-shadow: none; +} + +h2, h3, h4, h5 { + color: var(--MAIN-TITLES-TEXT-color) !important; +} + +a { + color: var(--MAIN-LINK-color); +} + +.anchor { + color: var(--MAIN-ANCHOR-color); +} + +a:hover { + color: var(--MAIN-LINK-HOVER-color); +} + +#sidebar ul li.visited > a .read-icon { + color: var(--MENU-VISITED-color); +} + +#body a.highlight:after { + display: block; + content: ""; + height: 1px; + width: 0%; + -webkit-transition: width 0.5s ease; + -moz-transition: width 0.5s ease; + -ms-transition: width 0.5s ease; + transition: width 0.5s ease; + background-color: var(--MAIN-LINK-HOVER-color); +} +#sidebar { + background-color: var(--MENU-SECTIONS-BG-color); +} +#sidebar #header-wrapper { + background: var(--MENU-HEADER-BG-color); + color: var(--MENU-SEARCH-BOX-color); + border-color: var(--MENU-HEADER-BORDER-color); +} +#sidebar .searchbox { + border-color: var(--MENU-SEARCH-BOX-color); + background: var(--MENU-SEARCH-BG-color); +} +#sidebar ul.topics > li.parent, #sidebar ul.topics > li.active { + background: var(--MENU-SECTIONS-ACTIVE-BG-color); +} +#sidebar .searchbox * { + color: var(--MENU-SEARCH-BOX-ICONS-color); +} + +#sidebar a { + color: var(--MENU-SECTIONS-LINK-color); +} + +#sidebar a:hover { + color: var(--MENU-SECTIONS-LINK-HOVER-color); +} + +#sidebar ul li.active > a { + background: var(--MENU-SECTION-ACTIVE-CATEGORY-BG-color); + color: var(--MENU-SECTION-ACTIVE-CATEGORY-color) !important; +} + +#sidebar hr { + border-color: var(--MENU-SECTION-HR-color); +} + +#body .tags a.tag-link { + background-color: var(--MENU-HEADER-BG-color); +} + +#body .tags a.tag-link:before { + border-right-color: var(--MENU-HEADER-BG-color); +} \ No newline at end of file diff --git a/fcs/docsrc/static/css/theme-green.css b/fcs/docsrc/static/css/theme-green.css new file mode 100644 index 0000000000..3b0b1f7215 --- /dev/null +++ b/fcs/docsrc/static/css/theme-green.css @@ -0,0 +1,111 @@ + +:root{ + + --MAIN-TEXT-color:#323232; /* Color of text by default */ + --MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5 */ + --MAIN-LINK-color:#599a3e; /* Color of links */ + --MAIN-LINK-HOVER-color:#3f6d2c; /* Color of hovered links */ + --MAIN-ANCHOR-color: #599a3e; /* color of anchors on titles */ + + --MENU-HEADER-BG-color:#74b559; /* Background color of menu header */ + --MENU-HEADER-BORDER-color:#9cd484; /*Color of menu header border */ + + --MENU-SEARCH-BG-color:#599a3e; /* Search field background color (by default borders + icons) */ + --MENU-SEARCH-BOX-color: #84c767; /* Override search field border color */ + --MENU-SEARCH-BOX-ICONS-color: #c7f7c4; /* Override search field icons color */ + + --MENU-SECTIONS-ACTIVE-BG-color:#1b211c; /* Background color of the active section and its childs */ + --MENU-SECTIONS-BG-color:#222723; /* Background color of other sections */ + --MENU-SECTIONS-LINK-color: #ccc; /* Color of links in menu */ + --MENU-SECTIONS-LINK-HOVER-color: #e6e6e6; /* Color of links in menu, when hovered */ + --MENU-SECTION-ACTIVE-CATEGORY-color: #777; /* Color of active category text */ + --MENU-SECTION-ACTIVE-CATEGORY-BG-color: #fff; /* Color of background for the active category (only) */ + + --MENU-VISITED-color: #599a3e; /* Color of 'page visited' icons in menu */ + --MENU-SECTION-HR-color: #18211c; /* Color of
separator in menu */ + +} + +body { + color: var(--MAIN-TEXT-color) !important; +} + +textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus { + border-color: none; + box-shadow: none; +} + +h2, h3, h4, h5 { + color: var(--MAIN-TITLES-TEXT-color) !important; +} + +a { + color: var(--MAIN-LINK-color); +} + +.anchor { + color: var(--MAIN-ANCHOR-color); +} + +a:hover { + color: var(--MAIN-LINK-HOVER-color); +} + +#sidebar ul li.visited > a .read-icon { + color: var(--MENU-VISITED-color); +} + +#body a.highlight:after { + display: block; + content: ""; + height: 1px; + width: 0%; + -webkit-transition: width 0.5s ease; + -moz-transition: width 0.5s ease; + -ms-transition: width 0.5s ease; + transition: width 0.5s ease; + background-color: var(--MAIN-LINK-HOVER-color); +} +#sidebar { + background-color: var(--MENU-SECTIONS-BG-color); +} +#sidebar #header-wrapper { + background: var(--MENU-HEADER-BG-color); + color: var(--MENU-SEARCH-BOX-color); + border-color: var(--MENU-HEADER-BORDER-color); +} +#sidebar .searchbox { + border-color: var(--MENU-SEARCH-BOX-color); + background: var(--MENU-SEARCH-BG-color); +} +#sidebar ul.topics > li.parent, #sidebar ul.topics > li.active { + background: var(--MENU-SECTIONS-ACTIVE-BG-color); +} +#sidebar .searchbox * { + color: var(--MENU-SEARCH-BOX-ICONS-color); +} + +#sidebar a { + color: var(--MENU-SECTIONS-LINK-color); +} + +#sidebar a:hover { + color: var(--MENU-SECTIONS-LINK-HOVER-color); +} + +#sidebar ul li.active > a { + background: var(--MENU-SECTION-ACTIVE-CATEGORY-BG-color); + color: var(--MENU-SECTION-ACTIVE-CATEGORY-color) !important; +} + +#sidebar hr { + border-color: var(--MENU-SECTION-HR-color); +} + +#body .tags a.tag-link { + background-color: var(--MENU-HEADER-BG-color); +} + +#body .tags a.tag-link:before { + border-right-color: var(--MENU-HEADER-BG-color); +} \ No newline at end of file diff --git a/fcs/docsrc/static/css/theme-red.css b/fcs/docsrc/static/css/theme-red.css new file mode 100644 index 0000000000..36c9278e56 --- /dev/null +++ b/fcs/docsrc/static/css/theme-red.css @@ -0,0 +1,111 @@ + +:root{ + + --MAIN-TEXT-color:#323232; /* Color of text by default */ + --MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5 */ + --MAIN-LINK-color:#f31c1c; /* Color of links */ + --MAIN-LINK-HOVER-color:#d01616; /* Color of hovered links */ + --MAIN-ANCHOR-color: #f31c1c; /* color of anchors on titles */ + + --MENU-HEADER-BG-color:#dc1010; /* Background color of menu header */ + --MENU-HEADER-BORDER-color:#e23131; /*Color of menu header border */ + + --MENU-SEARCH-BG-color:#b90000; /* Search field background color (by default borders + icons) */ + --MENU-SEARCH-BOX-color: #ef2020; /* Override search field border color */ + --MENU-SEARCH-BOX-ICONS-color: #fda1a1; /* Override search field icons color */ + + --MENU-SECTIONS-ACTIVE-BG-color:#2b2020; /* Background color of the active section and its childs */ + --MENU-SECTIONS-BG-color:#312525; /* Background color of other sections */ + --MENU-SECTIONS-LINK-color: #ccc; /* Color of links in menu */ + --MENU-SECTIONS-LINK-HOVER-color: #e6e6e6; /* Color of links in menu, when hovered */ + --MENU-SECTION-ACTIVE-CATEGORY-color: #777; /* Color of active category text */ + --MENU-SECTION-ACTIVE-CATEGORY-BG-color: #fff; /* Color of background for the active category (only) */ + + --MENU-VISITED-color: #ff3333; /* Color of 'page visited' icons in menu */ + --MENU-SECTION-HR-color: #2b2020; /* Color of
separator in menu */ + +} + +body { + color: var(--MAIN-TEXT-color) !important; +} + +textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus { + border-color: none; + box-shadow: none; +} + +h2, h3, h4, h5 { + color: var(--MAIN-TITLES-TEXT-color) !important; +} + +a { + color: var(--MAIN-LINK-color); +} + +.anchor { + color: var(--MAIN-ANCHOR-color); +} + +a:hover { + color: var(--MAIN-LINK-HOVER-color); +} + +#sidebar ul li.visited > a .read-icon { + color: var(--MENU-VISITED-color); +} + +#body a.highlight:after { + display: block; + content: ""; + height: 1px; + width: 0%; + -webkit-transition: width 0.5s ease; + -moz-transition: width 0.5s ease; + -ms-transition: width 0.5s ease; + transition: width 0.5s ease; + background-color: var(--MAIN-LINK-HOVER-color); +} +#sidebar { + background-color: var(--MENU-SECTIONS-BG-color); +} +#sidebar #header-wrapper { + background: var(--MENU-HEADER-BG-color); + color: var(--MENU-SEARCH-BOX-color); + border-color: var(--MENU-HEADER-BORDER-color); +} +#sidebar .searchbox { + border-color: var(--MENU-SEARCH-BOX-color); + background: var(--MENU-SEARCH-BG-color); +} +#sidebar ul.topics > li.parent, #sidebar ul.topics > li.active { + background: var(--MENU-SECTIONS-ACTIVE-BG-color); +} +#sidebar .searchbox * { + color: var(--MENU-SEARCH-BOX-ICONS-color); +} + +#sidebar a { + color: var(--MENU-SECTIONS-LINK-color); +} + +#sidebar a:hover { + color: var(--MENU-SECTIONS-LINK-HOVER-color); +} + +#sidebar ul li.active > a { + background: var(--MENU-SECTION-ACTIVE-CATEGORY-BG-color); + color: var(--MENU-SECTION-ACTIVE-CATEGORY-color) !important; +} + +#sidebar hr { + border-color: var(--MENU-SECTION-HR-color); +} + +#body .tags a.tag-link { + background-color: var(--MENU-HEADER-BG-color); +} + +#body .tags a.tag-link:before { + border-right-color: var(--MENU-HEADER-BG-color); +} \ No newline at end of file diff --git a/fcs/docsrc/static/css/theme.css b/fcs/docsrc/static/css/theme.css new file mode 100644 index 0000000000..badf53a307 --- /dev/null +++ b/fcs/docsrc/static/css/theme.css @@ -0,0 +1,1233 @@ +@charset "UTF-8"; + +/* Tags */ +@import "tags.css"; + +#top-github-link, #body #breadcrumbs { + position: relative; + top: 50%; + -webkit-transform: translateY(-50%); + -moz-transform: translateY(-50%); + -o-transform: translateY(-50%); + -ms-transform: translateY(-50%); + transform: translateY(-50%); +} +.button, .button-secondary { + display: inline-block; + padding: 7px 12px; +} +.button:active, .button-secondary:active { + margin: 2px 0 -2px 0; +} +@font-face { + font-family: 'Novacento Sans Wide'; + src: url("../fonts/Novecentosanswide-UltraLight-webfont.eot"); + src: url("../fonts/Novecentosanswide-UltraLight-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/Novecentosanswide-UltraLight-webfont.woff2") format("woff2"), url("../fonts/Novecentosanswide-UltraLight-webfont.woff") format("woff"), url("../fonts/Novecentosanswide-UltraLight-webfont.ttf") format("truetype"), url("../fonts/Novecentosanswide-UltraLight-webfont.svg#novecento_sans_wideultralight") format("svg"); + font-style: normal; + font-weight: 200; +} +@font-face { + font-family: 'Work Sans'; + font-style: normal; + font-weight: 300; + src: url("../fonts/Work_Sans_300.eot?#iefix") format("embedded-opentype"), url("../fonts/Work_Sans_300.woff") format("woff"), url("../fonts/Work_Sans_300.woff2") format("woff2"), url("../fonts/Work_Sans_300.svg#WorkSans") format("svg"), url("../fonts/Work_Sans_300.ttf") format("truetype"); +} +@font-face { + font-family: 'Work Sans'; + font-style: normal; + font-weight: 500; + src: url("../fonts/Work_Sans_500.eot?#iefix") format("embedded-opentype"), url("../fonts/Work_Sans_500.woff") format("woff"), url("../fonts/Work_Sans_500.woff2") format("woff2"), url("../fonts/Work_Sans_500.svg#WorkSans") format("svg"), url("../fonts/Work_Sans_500.ttf") format("truetype"); +} +body { + background: #fff; + color: #777; +} +body #chapter h1 { + font-size: 3.5rem; +} +@media only all and (min-width: 48em) and (max-width: 59.938em) { + body #chapter h1 { + font-size: 3rem; + } +} +@media only all and (max-width: 47.938em) { + body #chapter h1 { + font-size: 2rem; + } +} +a { + color: #00bdf3; +} +a:hover { + color: #0082a7; +} +pre { + position: relative; + color: #ffffff; +} +.bg { + background: #fff; + border: 1px solid #eaeaea; +} +b, strong, label, th { + font-weight: 600; +} +.default-animation, #header #logo-svg, #header #logo-svg path, #sidebar, #sidebar ul, #body, #body .padding, #body .nav { + -webkit-transition: all 0.5s ease; + -moz-transition: all 0.5s ease; + transition: all 0.5s ease; +} +#grav-logo { + max-width: 60%; +} +#grav-logo path { + fill: #fff !important; +} +#sidebar { + font-weight: 300 !important; +} +fieldset { + border: 1px solid #ddd; +} +textarea, input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="time"], input[type="week"], select[multiple=multiple] { + background-color: white; + border: 1px solid #ddd; + box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06); +} +textarea:hover, input[type="email"]:hover, input[type="number"]:hover, input[type="password"]:hover, input[type="search"]:hover, input[type="tel"]:hover, input[type="text"]:hover, input[type="url"]:hover, input[type="color"]:hover, input[type="date"]:hover, input[type="datetime"]:hover, input[type="datetime-local"]:hover, input[type="month"]:hover, input[type="time"]:hover, input[type="week"]:hover, select[multiple=multiple]:hover { + border-color: #c4c4c4; +} +textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus { + border-color: #00bdf3; + box-shadow: inset 0 1px 3px rgba(0,0,0,.06),0 0 5px rgba(0,169,218,.7) +} +#header-wrapper { + background: #8451a1; + color: #fff; + text-align: center; + border-bottom: 4px solid #9c6fb6; + padding: 1rem; +} +#header a { + display: inline-block; +} +#header #logo-svg { + width: 8rem; + height: 2rem; +} +#header #logo-svg path { + fill: #fff; +} +.searchbox { + margin-top: 1rem; + position: relative; + border: 1px solid #915eae; + background: #764890; + border-radius: 4px; +} +.searchbox label { + color: rgba(255, 255, 255, 0.8); + position: absolute; + left: 10px; + top: 3px; +} +.searchbox span { + color: rgba(255, 255, 255, 0.6); + position: absolute; + right: 10px; + top: 3px; + cursor: pointer; +} +.searchbox span:hover { + color: rgba(255, 255, 255, 0.9); +} +.searchbox input { + display: inline-block; + color: #fff; + width: 100%; + height: 30px; + background: transparent; + border: 0; + padding: 0 25px 0 30px; + margin: 0; + font-weight: 300; +} +.searchbox input::-webkit-input-placeholder { + color: rgba(255, 255, 255, 0.6); +} +.searchbox input::-moz-placeholder { + color: rgba(255, 255, 255, 0.6); +} +.searchbox input:-moz-placeholder { + color: rgba(255, 255, 255, 0.6); +} +.searchbox input:-ms-input-placeholder { + color: rgba(255, 255, 255, 0.6); +} +#sidebar-toggle-span { + display: none; +} +@media only all and (max-width: 47.938em) { + #sidebar-toggle-span { + display: inline; + } +} +#sidebar { + background-color: #322A38; + position: fixed; + top: 0; + width: 300px; + bottom: 0; + left: 0; + font-weight: 400; + font-size: 15px; +} +#sidebar a { + color: #ccc; +} +#sidebar a:hover { + color: #e6e6e6; +} +#sidebar a.subtitle { + color: rgba(204, 204, 204, 0.6); +} +#sidebar hr { + border-bottom: 1px solid #2a232f; +} +#sidebar a.padding { + padding: 0 1rem; +} +#sidebar h5 { + margin: 2rem 0 0; + position: relative; + line-height: 2; +} +#sidebar h5 a { + display: block; + margin-left: 0; + margin-right: 0; + padding-left: 1rem; + padding-right: 1rem; +} +#sidebar h5 i { + color: rgba(204, 204, 204, 0.6); + position: absolute; + right: 0.6rem; + top: 0.7rem; + font-size: 80%; +} +#sidebar h5.parent a { + background: #201b24; + color: #d9d9d9 !important; +} +#sidebar h5.active a { + background: #fff; + color: #777 !important; +} +#sidebar h5.active i { + color: #777 !important; +} +#sidebar h5 + ul.topics { + display: none; + margin-top: 0; +} +#sidebar h5.parent + ul.topics, #sidebar h5.active + ul.topics { + display: block; +} +#sidebar ul { + list-style: none; + padding: 0; + margin: 0; +} +#sidebar ul.searched a { + color: #999999; +} +#sidebar ul.searched .search-match a { + color: #e6e6e6; +} +#sidebar ul.searched .search-match a:hover { + color: white; +} +#sidebar ul.topics { + margin: 0 1rem; +} +#sidebar ul.topics.searched ul { + display: block; +} +#sidebar ul.topics ul { + display: none; + padding-bottom: 1rem; +} +#sidebar ul.topics ul ul { + padding-bottom: 0; +} +#sidebar ul.topics li.parent ul, #sidebar ul.topics > li.active ul { + display: block; +} +#sidebar ul.topics > li > a { + line-height: 2rem; + font-size: 1.1rem; +} +#sidebar ul.topics > li > a b { + opacity: 0.5; + font-weight: normal; +} +#sidebar ul.topics > li > a .fa { + margin-top: 9px; +} +#sidebar ul.topics > li.parent, #sidebar ul.topics > li.active { + background: #251f29; + margin-left: -1rem; + margin-right: -1rem; + padding-left: 1rem; + padding-right: 1rem; +} +#sidebar ul li.active > a { + background: #fff; + color: #777 !important; + margin-left: -1rem; + margin-right: -1rem; + padding-left: 1rem; + padding-right: 1rem; +} +#sidebar ul li { + padding: 0; +} +#sidebar ul li.visited + span { + margin-right: 16px; +} +#sidebar ul li a { + display: block; + padding: 2px 0; +} +#sidebar ul li a span { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + display: block; +} +#sidebar ul li > a { + padding: 4px 0; +} +#sidebar ul li.visited > a .read-icon { + color: #9c6fb6; + display: inline; +} +#sidebar ul li li { + padding-left: 1rem; + text-indent: 0.2rem; +} +#main { + background: #f7f7f7; + margin: 0 0 1.563rem 0; +} +#body { + position: relative; + margin-left: 300px; + min-height: 100%; +} +#body img, #body .video-container { + margin: 3rem auto; + display: block; + text-align: center; +} +#body img.border, #body .video-container.border { + border: 2px solid #e6e6e6 !important; + padding: 2px; +} +#body img.shadow, #body .video-container.shadow { + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); +} +#body img.inline { + display: inline !important; + margin: 0 !important; + vertical-align: bottom; +} +#body .bordered { + border: 1px solid #ccc; +} +#body .padding { + padding: 3rem 6rem; +} +@media only all and (max-width: 79.938em) { + #body .padding { + position: static; + padding: 15px 3rem; + } +} + +@media only all and (max-width: 59.938em) { + #body .padding { + position: static; + padding: 15px 1rem; + } +} +@media only all and (max-width: 47.938em) { + #body .padding { + padding: 5px 1rem; + } +} +#body h1 + hr { + margin-top: -1.7rem; + margin-bottom: 3rem; +} +@media only all and (max-width: 59.938em) { + #body #navigation { + position: static; + margin-right: 0 !important; + width: 100%; + display: table; + } +} +#body .nav { + position: fixed; + top: 0; + bottom: 0; + width: 4rem; + font-size: 50px; + height: 100%; + cursor: pointer; + display: table; + text-align: center; +} +#body .nav > i { + display: table-cell; + vertical-align: middle; + text-align: center; +} +@media only all and (max-width: 59.938em) { + #body .nav { + display: table-cell; + position: static; + top: auto; + width: 50%; + text-align: center; + height: 100px; + line-height: 100px; + padding-top: 0; + } + #body .nav > i { + display: inline-block; + } +} +#body .nav:hover { + background: #F6F6F6; +} +#body .nav.nav-pref { + left: 0; +} +#body .nav.nav-next { + right: 0; +} +#body-inner { + margin-bottom: 5rem; +} +#chapter { + display: flex; + align-items: center; + justify-content: center; + height: 100%; + padding: 2rem 0; +} +#chapter #body-inner { + padding-bottom: 3rem; + max-width: 80%; +} +#chapter h3 { + font-family: "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; + font-weight: 300; + text-align: center; +} +#chapter h1 { + font-size: 5rem; + border-bottom: 4px solid #F0F2F4; +} +#chapter p { + text-align: center; + font-size: 1.2rem; +} +#footer { + padding: 3rem 1rem; + color: #b3b3b3; + font-size: 13px; +} +#footer p { + margin: 0; +} +body { + font-family: "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; + font-weight: 300; + line-height: 1.6; + font-size: 18px !important; +} +h2, h3, h4, h5, h6 { + font-family: "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; + text-rendering: optimizeLegibility; + color: #5e5e5e; + font-weight: 400; + letter-spacing: -1px; +} +h1 { + font-family: "Novacento Sans Wide", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; + text-align: center; + text-transform: uppercase; + color: #222; + font-weight: 200; +} +blockquote { + border-left: 10px solid #F0F2F4; +} +blockquote p { + font-size: 1.1rem; + color: #999; +} +blockquote cite { + display: block; + text-align: right; + color: #666; + font-size: 1.2rem; +} +div.notices { + margin: 2rem 0; + position: relative; +} +div.notices p { + padding: 15px; + display: block; + font-size: 1rem; + margin-top: 0rem; + margin-bottom: 0rem; + color: #666; +} +div.notices p:first-child:before { + position: absolute; + top: 2px; + color: #fff; + font-family: "Font Awesome 5 Free"; + font-weight: 900; + content: "\f06a"; + left: 10px; +} +div.notices p:first-child:after { + position: absolute; + top: 2px; + color: #fff; + left: 2rem; +} +div.notices.info p { + border-top: 30px solid #F0B37E; + background: #FFF2DB; +} +div.notices.info p:first-child:after { + content: 'Info'; +} +div.notices.warning p { + border-top: 30px solid rgba(217, 83, 79, 0.8); + background: #FAE2E2; +} +div.notices.warning p:first-child:after { + content: 'Warning'; +} +div.notices.note p { + border-top: 30px solid #6AB0DE; + background: #E7F2FA; +} +div.notices.note p:first-child:after { + content: 'Note'; +} +div.notices.tip p { + border-top: 30px solid rgba(92, 184, 92, 0.8); + background: #E6F9E6; +} +div.notices.tip p:first-child:after { + content: 'Tip'; +} + +/* attachments shortcode */ + +section.attachments { + margin: 2rem 0; + position: relative; +} + +section.attachments label { + font-weight: 400; + padding-left: 0.5em; + padding-top: 0.2em; + padding-bottom: 0.2em; + margin: 0; +} + +section.attachments .attachments-files { + padding: 15px; + display: block; + font-size: 1rem; + margin-top: 0rem; + margin-bottom: 0rem; + color: #666; +} + +section.attachments.orange label { + color: #fff; + background: #F0B37E; +} + +section.attachments.orange .attachments-files { + background: #FFF2DB; +} + +section.attachments.green label { + color: #fff; + background: rgba(92, 184, 92, 0.8); +} + +section.attachments.green .attachments-files { + background: #E6F9E6; +} + +section.attachments.blue label { + color: #fff; + background: #6AB0DE; +} + +section.attachments.blue .attachments-files { + background: #E7F2FA; +} + +section.attachments.grey label { + color: #fff; + background: #505d65; +} + +section.attachments.grey .attachments-files { + background: #f4f4f4; +} + +/* Children shortcode */ + +/* Children shortcode */ +.children p { + font-size: small; + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; +} +.children-li p { + font-size: small; + font-style: italic; + +} +.children-h2 p, .children-h3 p { + font-size: small; + margin-top: 0px; + padding-top: 0px; + margin-bottom: 0px; + padding-bottom: 0px; +} +.children h3,.children h2 { + margin-bottom: 0px; + margin-top: 5px; +} + +code, kbd, pre, samp { + font-family: "Consolas", menlo, monospace; + font-size: 92%; +} +code { + border-radius: 2px; + white-space: nowrap; + color: #5e5e5e; + background: #FFF7DD; + border: 1px solid #fbf0cb; + padding: 0px 2px; +} +code + .copy-to-clipboard { + margin-left: -1px; + border-left: 0 !important; + font-size: inherit !important; + vertical-align: middle; + height: 21px; + top: 0; +} +pre { + padding: 1rem; + margin: 2rem 0; + background: #282c34; + border: 0; + border-radius: 2px; + line-height: 1.15; +} +pre code { + color: whitesmoke; + background: inherit; + white-space: inherit; + border: 0; + padding: 0; + margin: 0; + font-size: 15px; +} +hr { + border-bottom: 4px solid #F0F2F4; +} +.page-title { + margin-top: -25px; + padding: 25px; + float: left; + clear: both; + background: #9c6fb6; + color: #fff; +} +#body a.anchor-link { + color: #ccc; +} +#body a.anchor-link:hover { + color: #9c6fb6; +} +#body-inner .tabs-wrapper.ui-theme-badges { + background: #1d1f21; +} +#body-inner .tabs-wrapper.ui-theme-badges .tabs-nav li { + font-size: 0.9rem; + text-transform: uppercase; +} +#body-inner .tabs-wrapper.ui-theme-badges .tabs-nav li a { + background: #35393c; +} +#body-inner .tabs-wrapper.ui-theme-badges .tabs-nav li.current a { + background: #4d5257; +} +#body-inner pre { + white-space: pre-wrap; +} +.tabs-wrapper pre { + margin: 1rem 0; + border: 0; + padding: 0; + background: inherit; +} +table { + border: 1px solid #eaeaea; + table-layout: auto; +} +th { + background: #f7f7f7; + padding: 0.5rem; +} +td { + padding: 0.5rem; + border: 1px solid #eaeaea; +} +.button { + background: #9c6fb6; + color: #fff; + box-shadow: 0 3px 0 #00a5d4; +} +.button:hover { + background: #00a5d4; + box-shadow: 0 3px 0 #008db6; + color: #fff; +} +.button:active { + box-shadow: 0 1px 0 #008db6; +} +.button-secondary { + background: #F8B450; + color: #fff; + box-shadow: 0 3px 0 #f7a733; +} +.button-secondary:hover { + background: #f7a733; + box-shadow: 0 3px 0 #f69b15; + color: #fff; +} +.button-secondary:active { + box-shadow: 0 1px 0 #f69b15; +} +.bullets { + margin: 1.7rem 0; + margin-left: -0.85rem; + margin-right: -0.85rem; + overflow: auto; +} +.bullet { + float: left; + padding: 0 0.85rem; +} +.two-column-bullet { + width: 50%; +} +@media only all and (max-width: 47.938em) { + .two-column-bullet { + width: 100%; + } +} +.three-column-bullet { + width: 33.33333%; +} +@media only all and (max-width: 47.938em) { + .three-column-bullet { + width: 100%; + } +} +.four-column-bullet { + width: 25%; +} +@media only all and (max-width: 47.938em) { + .four-column-bullet { + width: 100%; + } +} +.bullet-icon { + float: left; + background: #9c6fb6; + padding: 0.875rem; + width: 3.5rem; + height: 3.5rem; + border-radius: 50%; + color: #fff; + font-size: 1.75rem; + text-align: center; +} +.bullet-icon-1 { + background: #9c6fb6; +} +.bullet-icon-2 { + background: #00f3d8; +} +.bullet-icon-3 { + background: #e6f300; +} +.bullet-content { + margin-left: 4.55rem; +} +.tooltipped { + position: relative; +} +.tooltipped:after { + position: absolute; + z-index: 1000000; + display: none; + padding: 5px 8px; + font: normal normal 11px/1.5 "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; + color: #fff; + text-align: center; + text-decoration: none; + text-shadow: none; + text-transform: none; + letter-spacing: normal; + word-wrap: break-word; + white-space: pre; + pointer-events: none; + content: attr(aria-label); + background: rgba(0, 0, 0, 0.8); + border-radius: 3px; + -webkit-font-smoothing: subpixel-antialiased; +} +.tooltipped:before { + position: absolute; + z-index: 1000001; + display: none; + width: 0; + height: 0; + color: rgba(0, 0, 0, 0.8); + pointer-events: none; + content: ""; + border: 5px solid transparent; +} +.tooltipped:hover:before, .tooltipped:hover:after, .tooltipped:active:before, .tooltipped:active:after, .tooltipped:focus:before, .tooltipped:focus:after { + display: inline-block; + text-decoration: none; +} +.tooltipped-s:after, .tooltipped-se:after, .tooltipped-sw:after { + top: 100%; + right: 50%; + margin-top: 5px; +} +.tooltipped-s:before, .tooltipped-se:before, .tooltipped-sw:before { + top: auto; + right: 50%; + bottom: -5px; + margin-right: -5px; + border-bottom-color: rgba(0, 0, 0, 0.8); +} +.tooltipped-se:after { + right: auto; + left: 50%; + margin-left: -15px; +} +.tooltipped-sw:after { + margin-right: -15px; +} +.tooltipped-n:after, .tooltipped-ne:after, .tooltipped-nw:after { + right: 50%; + bottom: 100%; + margin-bottom: 5px; +} +.tooltipped-n:before, .tooltipped-ne:before, .tooltipped-nw:before { + top: -5px; + right: 50%; + bottom: auto; + margin-right: -5px; + border-top-color: rgba(0, 0, 0, 0.8); +} +.tooltipped-ne:after { + right: auto; + left: 50%; + margin-left: -15px; +} +.tooltipped-nw:after { + margin-right: -15px; +} +.tooltipped-s:after, .tooltipped-n:after { + transform: translateX(50%); +} +.tooltipped-w:after { + right: 100%; + bottom: 50%; + margin-right: 5px; + transform: translateY(50%); +} +.tooltipped-w:before { + top: 50%; + bottom: 50%; + left: -5px; + margin-top: -5px; + border-left-color: rgba(0, 0, 0, 0.8); +} +.tooltipped-e:after { + bottom: 50%; + left: 100%; + margin-left: 5px; + transform: translateY(50%); +} +.tooltipped-e:before { + top: 50%; + right: -5px; + bottom: 50%; + margin-top: -5px; + border-right-color: rgba(0, 0, 0, 0.8); +} +.highlightable { + padding: 1rem 0 1rem; + overflow: auto; + position: relative; +} +.hljs::selection, .hljs span::selection { + background: #b7b7b7; +} +.lightbox-active #body { + overflow: visible; +} +.lightbox-active #body .padding { + overflow: visible; +} +#github-contrib i { + vertical-align: middle; +} +.featherlight img { + margin: 0 !important; +} +.lifecycle #body-inner ul { + list-style: none; + margin: 0; + padding: 2rem 0 0; + position: relative; +} +.lifecycle #body-inner ol { + margin: 1rem 0 1rem 0; + padding: 2rem; + position: relative; +} +.lifecycle #body-inner ol li { + margin-left: 1rem; +} +.lifecycle #body-inner ol strong, .lifecycle #body-inner ol label, .lifecycle #body-inner ol th { + text-decoration: underline; +} +.lifecycle #body-inner ol ol { + margin-left: -1rem; +} +.lifecycle #body-inner h3[class*='level'] { + font-size: 20px; + position: absolute; + margin: 0; + padding: 4px 10px; + right: 0; + z-index: 1000; + color: #fff; + background: #1ABC9C; +} +.lifecycle #body-inner ol h3 { + margin-top: 1rem !important; + right: 2rem !important; +} +.lifecycle #body-inner .level-1 + ol { + background: #f6fefc; + border: 4px solid #1ABC9C; + color: #16A085; +} +.lifecycle #body-inner .level-1 + ol h3 { + background: #2ECC71; +} +.lifecycle #body-inner .level-2 + ol { + background: #f7fdf9; + border: 4px solid #2ECC71; + color: #27AE60; +} +.lifecycle #body-inner .level-2 + ol h3 { + background: #3498DB; +} +.lifecycle #body-inner .level-3 + ol { + background: #f3f9fd; + border: 4px solid #3498DB; + color: #2980B9; +} +.lifecycle #body-inner .level-3 + ol h3 { + background: #34495E; +} +.lifecycle #body-inner .level-4 + ol { + background: #e4eaf0; + border: 4px solid #34495E; + color: #2C3E50; +} +.lifecycle #body-inner .level-4 + ol h3 { + background: #34495E; +} +#top-bar { + background: #F6F6F6; + border-radius: 2px; + padding: 0 1rem; + height: 0; + min-height: 3rem; +} +#top-github-link { + position: relative; + z-index: 1; + float: right; + display: block; +} +#body #breadcrumbs { + height: auto; + margin-bottom: 0; + padding-left: 0; + line-height: 1.4; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + width: 70%; + display: inline-block; + float: left; +} +#body #breadcrumbs span { + padding: 0 0.1rem; +} +@media only all and (max-width: 59.938em) { + #sidebar { + width: 230px; + } + #body { + margin-left: 230px; + } +} +@media only all and (max-width: 47.938em) { + #sidebar { + width: 230px; + left: -230px; + } + #body { + margin-left: 0; + width: 100%; + } + .sidebar-hidden { + overflow: hidden; + } + .sidebar-hidden #sidebar { + left: 0; + } + .sidebar-hidden #body { + margin-left: 230px; + overflow: hidden; + } + .sidebar-hidden #overlay { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + z-index: 10; + background: rgba(255, 255, 255, 0.5); + cursor: pointer; + } +} +.copy-to-clipboard { + background-image: url(../images/clippy.svg); + background-position: 50% 50%; + background-size: 16px 16px; + background-repeat: no-repeat; + width: 27px; + height: 1.45rem; + top: -1px; + display: inline-block; + vertical-align: middle; + position: relative; + color: #5e5e5e; + background-color: #FFF7DD; + margin-left: -.2rem; + cursor: pointer; + border-radius: 0 2px 2px 0; + margin-bottom: 1px; +} +.copy-to-clipboard:hover { + background-color: #E8E2CD; +} +pre .copy-to-clipboard { + position: absolute; + right: 4px; + top: 4px; + background-color: #949bab; + color: #ccc; + border-radius: 2px; +} +pre .copy-to-clipboard:hover { + background-color: #656c72; + color: #fff; +} +.parent-element { + -webkit-transform-style: preserve-3d; + -moz-transform-style: preserve-3d; + transform-style: preserve-3d; +} + +#sidebar ul.topics > li > a .read-icon { + margin-top: 9px; +} + +#sidebar ul { + list-style: none; + padding: 0; + margin: 0; +} + +#sidebar #shortcuts li { + padding: 2px 0; + list-style: none; +} + +#sidebar ul li .read-icon { + display: none; + float: right; + font-size: 13px; + min-width: 16px; + margin: 4px 0 0 0; + text-align: right; +} +#sidebar ul li.visited > a .read-icon { + color: #00bdf3; + display: inline; +} + +#sidebar #shortcuts h3 { + font-family: "Novacento Sans Wide", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; + color: white ; + margin-top:1rem; + padding-left: 1rem; +} + +#searchResults { + text-align: left; +} + +option { + color: initial; +} + +#logo { + font-family: "Novacento Sans Wide", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif !important; + color: white !important; + margin-bottom: 0; + text-transform: uppercase; +} + +.searchbox i { + margin-top: 5px; +} + +.summary { + margin-top: 0; + margin-bottom: 0; +} + +.api-page table{ + margin-top: 20px; +} + +.highlight { + display: inline-block !important; +} + +.gif { + max-height: 500px; +} + +.sponsor { + height: 70px !important; + margin-top: 25px !important; + display: inline-block !important; + } + +#logo-pic { + height: 60px !important; +} + +.submenu { + margin-top: 30px !important; + padding-left: 13px !important; + display: none; +} + +.submenu-active { + display: block; +} + +.active-link { + text-decoration: underline; +} + +.menu-group-link a{ + padding-left: 10px !important; + border-left: 3px solid transparent; + text-transform: uppercase; + cursor: pointer; +} + +.menu-group-link a:hover{ + border-left: 3px solid #0082a7; +} + +.menu-group-link-active { + border-left: 3px solid #0082a7; +} + + +#body-inner p { + margin: 0.8rem 0; +} + +#body-inner pre { + margin: 1.2rem 0; +} + + +#sidebar #languages li { + padding: 2px 0; + list-style: none; +} + + +#sidebar #languages h3 { + font-family: "Novacento Sans Wide", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; + color: white ; + margin-top:1rem; + padding-left: 1rem; +} \ No newline at end of file diff --git a/fcs/docsrc/static/css/tips.css b/fcs/docsrc/static/css/tips.css new file mode 100644 index 0000000000..cc4d7a3685 --- /dev/null +++ b/fcs/docsrc/static/css/tips.css @@ -0,0 +1,10 @@ +/* tool tip */ +div.tip { + background:#475b5f; + border-radius:4px; + font:11pt 'Droid Sans', arial, sans-serif; + padding:6px 8px 6px 8px; + display:none; + color:#d1d1d1; + pointer-events:none; +} \ No newline at end of file diff --git a/fcs/docsrc/static/fonts/Inconsolata.eot b/fcs/docsrc/static/fonts/Inconsolata.eot new file mode 100644 index 0000000000..0a705d653f Binary files /dev/null and b/fcs/docsrc/static/fonts/Inconsolata.eot differ diff --git a/fcs/docsrc/static/fonts/Inconsolata.svg b/fcs/docsrc/static/fonts/Inconsolata.svg new file mode 100644 index 0000000000..36775f0749 --- /dev/null +++ b/fcs/docsrc/static/fonts/Inconsolata.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/fcs/docsrc/static/fonts/Inconsolata.ttf b/fcs/docsrc/static/fonts/Inconsolata.ttf new file mode 100644 index 0000000000..4b8a36d249 Binary files /dev/null and b/fcs/docsrc/static/fonts/Inconsolata.ttf differ diff --git a/fcs/docsrc/static/fonts/Inconsolata.woff b/fcs/docsrc/static/fonts/Inconsolata.woff new file mode 100644 index 0000000000..6f39625e58 Binary files /dev/null and b/fcs/docsrc/static/fonts/Inconsolata.woff differ diff --git a/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.eot b/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.eot new file mode 100644 index 0000000000..9984682fc9 Binary files /dev/null and b/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.eot differ diff --git a/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.svg b/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.svg new file mode 100644 index 0000000000..6fa1a66e30 --- /dev/null +++ b/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.ttf b/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.ttf new file mode 100644 index 0000000000..8cfb62dd59 Binary files /dev/null and b/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.ttf differ diff --git a/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.woff b/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.woff new file mode 100644 index 0000000000..d5c4290791 Binary files /dev/null and b/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.woff differ diff --git a/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.woff2 b/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.woff2 new file mode 100644 index 0000000000..eefb4a3186 Binary files /dev/null and b/fcs/docsrc/static/fonts/Novecentosanswide-Normal-webfont.woff2 differ diff --git a/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.eot b/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.eot new file mode 100644 index 0000000000..2a26561f90 Binary files /dev/null and b/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.eot differ diff --git a/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.svg b/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.svg new file mode 100644 index 0000000000..c4e903b61a --- /dev/null +++ b/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.ttf b/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.ttf new file mode 100644 index 0000000000..9ce9c7f99d Binary files /dev/null and b/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.ttf differ diff --git a/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.woff b/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.woff new file mode 100644 index 0000000000..381650c98d Binary files /dev/null and b/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.woff differ diff --git a/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.woff2 b/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.woff2 new file mode 100644 index 0000000000..7e659549bc Binary files /dev/null and b/fcs/docsrc/static/fonts/Novecentosanswide-UltraLight-webfont.woff2 differ diff --git a/fcs/docsrc/static/fonts/Work_Sans_200.eot b/fcs/docsrc/static/fonts/Work_Sans_200.eot new file mode 100644 index 0000000000..4052e4f94a Binary files /dev/null and b/fcs/docsrc/static/fonts/Work_Sans_200.eot differ diff --git a/fcs/docsrc/static/fonts/Work_Sans_200.svg b/fcs/docsrc/static/fonts/Work_Sans_200.svg new file mode 100644 index 0000000000..0ffbd3a845 --- /dev/null +++ b/fcs/docsrc/static/fonts/Work_Sans_200.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/fcs/docsrc/static/fonts/Work_Sans_200.ttf b/fcs/docsrc/static/fonts/Work_Sans_200.ttf new file mode 100644 index 0000000000..68019e1ccd Binary files /dev/null and b/fcs/docsrc/static/fonts/Work_Sans_200.ttf differ diff --git a/fcs/docsrc/static/fonts/Work_Sans_200.woff b/fcs/docsrc/static/fonts/Work_Sans_200.woff new file mode 100644 index 0000000000..a1bd9e4699 Binary files /dev/null and b/fcs/docsrc/static/fonts/Work_Sans_200.woff differ diff --git a/fcs/docsrc/static/fonts/Work_Sans_200.woff2 b/fcs/docsrc/static/fonts/Work_Sans_200.woff2 new file mode 100644 index 0000000000..20c68a75c4 Binary files /dev/null and b/fcs/docsrc/static/fonts/Work_Sans_200.woff2 differ diff --git a/fcs/docsrc/static/fonts/Work_Sans_300.eot b/fcs/docsrc/static/fonts/Work_Sans_300.eot new file mode 100644 index 0000000000..ace799382a Binary files /dev/null and b/fcs/docsrc/static/fonts/Work_Sans_300.eot differ diff --git a/fcs/docsrc/static/fonts/Work_Sans_300.svg b/fcs/docsrc/static/fonts/Work_Sans_300.svg new file mode 100644 index 0000000000..7d2936783b --- /dev/null +++ b/fcs/docsrc/static/fonts/Work_Sans_300.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/fcs/docsrc/static/fonts/Work_Sans_300.ttf b/fcs/docsrc/static/fonts/Work_Sans_300.ttf new file mode 100644 index 0000000000..35387c2357 Binary files /dev/null and b/fcs/docsrc/static/fonts/Work_Sans_300.ttf differ diff --git a/fcs/docsrc/static/fonts/Work_Sans_300.woff b/fcs/docsrc/static/fonts/Work_Sans_300.woff new file mode 100644 index 0000000000..8d789eae97 Binary files /dev/null and b/fcs/docsrc/static/fonts/Work_Sans_300.woff differ diff --git a/fcs/docsrc/static/fonts/Work_Sans_300.woff2 b/fcs/docsrc/static/fonts/Work_Sans_300.woff2 new file mode 100644 index 0000000000..f6e216d64d Binary files /dev/null and b/fcs/docsrc/static/fonts/Work_Sans_300.woff2 differ diff --git a/fcs/docsrc/static/fonts/Work_Sans_500.eot b/fcs/docsrc/static/fonts/Work_Sans_500.eot new file mode 100644 index 0000000000..9df6929428 Binary files /dev/null and b/fcs/docsrc/static/fonts/Work_Sans_500.eot differ diff --git a/fcs/docsrc/static/fonts/Work_Sans_500.svg b/fcs/docsrc/static/fonts/Work_Sans_500.svg new file mode 100644 index 0000000000..90a91c14cc --- /dev/null +++ b/fcs/docsrc/static/fonts/Work_Sans_500.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/fcs/docsrc/static/fonts/Work_Sans_500.ttf b/fcs/docsrc/static/fonts/Work_Sans_500.ttf new file mode 100644 index 0000000000..5b8cc5342b Binary files /dev/null and b/fcs/docsrc/static/fonts/Work_Sans_500.ttf differ diff --git a/fcs/docsrc/static/fonts/Work_Sans_500.woff b/fcs/docsrc/static/fonts/Work_Sans_500.woff new file mode 100644 index 0000000000..df058514fb Binary files /dev/null and b/fcs/docsrc/static/fonts/Work_Sans_500.woff differ diff --git a/fcs/docsrc/static/fonts/Work_Sans_500.woff2 b/fcs/docsrc/static/fonts/Work_Sans_500.woff2 new file mode 100644 index 0000000000..b06c54df0b Binary files /dev/null and b/fcs/docsrc/static/fonts/Work_Sans_500.woff2 differ diff --git a/fcs/docsrc/static/images/clippy.svg b/fcs/docsrc/static/images/clippy.svg new file mode 100644 index 0000000000..f4551735e1 --- /dev/null +++ b/fcs/docsrc/static/images/clippy.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/images/logo.png b/fcs/docsrc/static/images/favicon.png similarity index 100% rename from docs/images/logo.png rename to fcs/docsrc/static/images/favicon.png diff --git a/fcs/docsrc/static/js/auto-complete.js b/fcs/docsrc/static/js/auto-complete.js new file mode 100644 index 0000000000..0b46054568 --- /dev/null +++ b/fcs/docsrc/static/js/auto-complete.js @@ -0,0 +1,3 @@ +// JavaScript autoComplete v1.0.4 +// https://github.com/Pixabay/JavaScript-autoComplete +var autoComplete=function(){function e(e){function t(e,t){return e.classList?e.classList.contains(t):new RegExp("\\b"+t+"\\b").test(e.className)}function o(e,t,o){e.attachEvent?e.attachEvent("on"+t,o):e.addEventListener(t,o)}function s(e,t,o){e.detachEvent?e.detachEvent("on"+t,o):e.removeEventListener(t,o)}function n(e,s,n,l){o(l||document,s,function(o){for(var s,l=o.target||o.srcElement;l&&!(s=t(l,e));)l=l.parentElement;s&&n.call(l,o)})}if(document.querySelector){var l={selector:0,source:0,minChars:3,delay:150,offsetLeft:0,offsetTop:1,cache:1,menuClass:"",renderItem:function(e,t){t=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var o=new RegExp("("+t.split(" ").join("|")+")","gi");return'
'+e.replace(o,"$1")+"
"},onSelect:function(){}};for(var c in e)e.hasOwnProperty(c)&&(l[c]=e[c]);for(var a="object"==typeof l.selector?[l.selector]:document.querySelectorAll(l.selector),u=0;u0?i.sc.scrollTop=n+i.sc.suggestionHeight+s-i.sc.maxHeight:0>n&&(i.sc.scrollTop=n+s)}else i.sc.scrollTop=0},o(window,"resize",i.updateSC),document.body.appendChild(i.sc),n("autocomplete-suggestion","mouseleave",function(){var e=i.sc.querySelector(".autocomplete-suggestion.selected");e&&setTimeout(function(){e.className=e.className.replace("selected","")},20)},i.sc),n("autocomplete-suggestion","mouseover",function(){var e=i.sc.querySelector(".autocomplete-suggestion.selected");e&&(e.className=e.className.replace("selected","")),this.className+=" selected"},i.sc),n("autocomplete-suggestion","mousedown",function(e){if(t(this,"autocomplete-suggestion")){var o=this.getAttribute("data-val");i.value=o,l.onSelect(e,o,this),i.sc.style.display="none"}},i.sc),i.blurHandler=function(){try{var e=document.querySelector(".autocomplete-suggestions:hover")}catch(t){var e=0}e?i!==document.activeElement&&setTimeout(function(){i.focus()},20):(i.last_val=i.value,i.sc.style.display="none",setTimeout(function(){i.sc.style.display="none"},350))},o(i,"blur",i.blurHandler);var r=function(e){var t=i.value;if(i.cache[t]=e,e.length&&t.length>=l.minChars){for(var o="",s=0;st||t>40)&&13!=t&&27!=t){var o=i.value;if(o.length>=l.minChars){if(o!=i.last_val){if(i.last_val=o,clearTimeout(i.timer),l.cache){if(o in i.cache)return void r(i.cache[o]);for(var s=1;s https://github.com/noelboss/featherlight/issues/317 +!function(u){"use strict";if(void 0!==u)if(u.fn.jquery.match(/-ajax/))"console"in window&&window.console.info("Featherlight needs regular jQuery, not the slim version.");else{var r=[],i=function(t){return r=u.grep(r,function(e){return e!==t&&0','
','",'
'+n.loading+"
","
",""].join("")),o="."+n.namespace+"-close"+(n.otherClose?","+n.otherClose:"");return n.$instance=i.clone().addClass(n.variant),n.$instance.on(n.closeTrigger+"."+n.namespace,function(e){if(!e.isDefaultPrevented()){var t=u(e.target);("background"===n.closeOnClick&&t.is("."+n.namespace)||"anywhere"===n.closeOnClick||t.closest(o).length)&&(n.close(e),e.preventDefault())}}),this},getContent:function(){if(!1!==this.persist&&this.$content)return this.$content;var t=this,e=this.constructor.contentFilters,n=function(e){return t.$currentTarget&&t.$currentTarget.attr(e)},r=n(t.targetAttr),i=t.target||r||"",o=e[t.type];if(!o&&i in e&&(o=e[i],i=t.target&&r),i=i||n("href")||"",!o)for(var a in e)t[a]&&(o=e[a],i=t[a]);if(!o){var s=i;if(i=null,u.each(t.contentFilters,function(){return(o=e[this]).test&&(i=o.test(s)),!i&&o.regex&&s.match&&s.match(o.regex)&&(i=s),!i}),!i)return"console"in window&&window.console.error("Featherlight: no content filter found "+(s?' for "'+s+'"':" (no target specified)")),!1}return o.process.call(t,i)},setContent:function(e){return this.$instance.removeClass(this.namespace+"-loading"),this.$instance.toggleClass(this.namespace+"-iframe",e.is("iframe")),this.$instance.find("."+this.namespace+"-inner").not(e).slice(1).remove().end().replaceWith(u.contains(this.$instance[0],e[0])?"":e),this.$content=e.addClass(this.namespace+"-inner"),this},open:function(t){var n=this;if(n.$instance.hide().appendTo(n.root),!(t&&t.isDefaultPrevented()||!1===n.beforeOpen(t))){t&&t.preventDefault();var e=n.getContent();if(e)return r.push(n),s(!0),n.$instance.fadeIn(n.openSpeed),n.beforeContent(t),u.when(e).always(function(e){n.setContent(e),n.afterContent(t)}).then(n.$instance.promise()).done(function(){n.afterOpen(t)})}return n.$instance.detach(),u.Deferred().reject().promise()},close:function(e){var t=this,n=u.Deferred();return!1===t.beforeClose(e)?n.reject():(0===i(t).length&&s(!1),t.$instance.fadeOut(t.closeSpeed,function(){t.$instance.detach(),t.afterClose(e),n.resolve()})),n.promise()},resize:function(e,t){if(e&&t&&(this.$content.css("width","").css("height",""),this.$content.parent().width()');return n.onload=function(){r.naturalWidth=n.width,r.naturalHeight=n.height,t.resolve(r)},n.onerror=function(){t.reject(r)},n.src=e,t.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(e){return u(e)}},ajax:{regex:/./,process:function(e){var n=u.Deferred(),r=u("
").load(e,function(e,t){"error"!==t&&n.resolve(r.contents()),n.fail()});return n.promise()}},iframe:{process:function(e){var t=new u.Deferred,n=u("