Header menu logo F# Compiler Guide

FSharpProjectSnapshot Type

A snapshot of an F# project. This type contains all the necessary information for type checking a project.

Instance members

Instance member Description

this.Identifier

Full Usage: this.Identifier

Returns: FSharpProjectIdentifier
Returns: FSharpProjectIdentifier

this.IsIncompleteTypeCheckEnvironment

Full Usage: this.IsIncompleteTypeCheckEnvironment

Returns: bool
Returns: bool

this.Label

Full Usage: this.Label

Returns: string
Returns: string

this.LoadTime

Full Usage: this.LoadTime

Returns: DateTime
Returns: DateTime

this.OriginalLoadReferences

Full Usage: this.OriginalLoadReferences

Returns: (range * string * string) list
Returns: (range * string * string) list

this.OtherOptions

Full Usage: this.OtherOptions

Returns: string list
Returns: string list

this.ProjectFileName

Full Usage: this.ProjectFileName

Returns: string
Returns: string

this.ProjectId

Full Usage: this.ProjectId

Returns: string option
Returns: string option

this.ReferencedProjects

Full Usage: this.ReferencedProjects

Returns: FSharpReferencedProjectSnapshot list
Returns: FSharpReferencedProjectSnapshot list

this.ReferencesOnDisk

Full Usage: this.ReferencesOnDisk

Returns: ReferenceOnDisk list
Returns: ReferenceOnDisk list

this.Replace

Full Usage: this.Replace

Parameters:
Returns: FSharpProjectSnapshot

Create a new snapshot with given source files replacing files in this snapshot with the same name. Other files remain unchanged.

changedSourceFiles : FSharpFileSnapshot list
Returns: FSharpProjectSnapshot

this.SourceFiles

Full Usage: this.SourceFiles

Returns: FSharpFileSnapshot list
Returns: FSharpFileSnapshot list

this.Stamp

Full Usage: this.Stamp

Returns: int64 option
Returns: int64 option

this.UnresolvedReferences

Full Usage: this.UnresolvedReferences

Returns: FSharpUnresolvedReferencesSet option
Returns: FSharpUnresolvedReferencesSet option

this.UseScriptResolutionRules

Full Usage: this.UseScriptResolutionRules

Returns: bool
Returns: bool

Static members

Static member Description

FSharpProjectSnapshot.Create(projectFileName, projectId, sourceFiles, referencesOnDisk, otherOptions, referencedProjects, isIncompleteTypeCheckEnvironment, useScriptResolutionRules, loadTime, unresolvedReferences, originalLoadReferences, stamp)

Full Usage: FSharpProjectSnapshot.Create(projectFileName, projectId, sourceFiles, referencesOnDisk, otherOptions, referencedProjects, isIncompleteTypeCheckEnvironment, useScriptResolutionRules, loadTime, unresolvedReferences, originalLoadReferences, stamp)

Parameters:
Returns: FSharpProjectSnapshot
projectFileName : string
projectId : string option
sourceFiles : FSharpFileSnapshot list
referencesOnDisk : ReferenceOnDisk list
otherOptions : string list
referencedProjects : FSharpReferencedProjectSnapshot list
isIncompleteTypeCheckEnvironment : bool
useScriptResolutionRules : bool
loadTime : DateTime
unresolvedReferences : FSharpUnresolvedReferencesSet option
originalLoadReferences : (range * string * string) list
stamp : int64 option
Returns: FSharpProjectSnapshot

FSharpProjectSnapshot.FromOptions(options, fileName, fileVersion, sourceText, documentSource)

Full Usage: FSharpProjectSnapshot.FromOptions(options, fileName, fileVersion, sourceText, documentSource)

Parameters:
Returns: Async<FSharpProjectSnapshot>
options : FSharpProjectOptions
fileName : string
fileVersion : int
sourceText : ISourceText
documentSource : DocumentSource
Returns: Async<FSharpProjectSnapshot>

FSharpProjectSnapshot.FromOptions(options, documentSource)

Full Usage: FSharpProjectSnapshot.FromOptions(options, documentSource)

Parameters:
Returns: Async<FSharpProjectSnapshot>
options : FSharpProjectOptions
documentSource : DocumentSource
Returns: Async<FSharpProjectSnapshot>

FSharpProjectSnapshot.FromOptions(options, getFileSnapshot, ?snapshotAccumulator)

Full Usage: FSharpProjectSnapshot.FromOptions(options, getFileSnapshot, ?snapshotAccumulator)

Parameters:
Returns: Async<FSharpProjectSnapshot>
options : FSharpProjectOptions
getFileSnapshot : FSharpProjectOptions -> string -> Async<FSharpFileSnapshot>
?snapshotAccumulator : Dictionary<FSharpProjectOptions, FSharpProjectSnapshot>
Returns: Async<FSharpProjectSnapshot>

Type something to start searching.