Header menu logo F# Compiler Guide

FSharpSymbolUse Type

Represents the use of an F# symbol from F# source code

Instance members

Instance member Description

this.DisplayContext

Full Usage: this.DisplayContext

Returns: 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.

Returns: FSharpDisplayContext

this.FileName

Full Usage: this.FileName

Returns: string

The file name the reference occurs in

Returns: string

this.GenericArguments

Full Usage: this.GenericArguments

Returns: (FSharpGenericParameter * FSharpType) list

this.IsFromAttribute

Full Usage: this.IsFromAttribute

Returns: bool

Indicates if the reference is in an attribute

Returns: bool

this.IsFromComputationExpression

Full Usage: this.IsFromComputationExpression

Returns: bool

Indicates if the reference is either a builder or a custom operation in a computation expression

Returns: bool

this.IsFromDefinition

Full Usage: this.IsFromDefinition

Returns: bool

Indicates if the reference is a definition for the symbol, either in a signature or implementation

Returns: bool

this.IsFromDispatchSlotImplementation

Full Usage: this.IsFromDispatchSlotImplementation

Returns: bool

Indicates if the reference is via the member being implemented in a class or object expression

Returns: bool

this.IsFromOpenStatement

Full Usage: this.IsFromOpenStatement

Returns: bool

Indicates if the reference is in open statement

Returns: bool

this.IsFromPattern

Full Usage: this.IsFromPattern

Returns: bool

Indicates if the reference is in a pattern

Returns: bool

this.IsFromType

Full Usage: this.IsFromType

Returns: bool

Indicates if the reference is in a syntactic type

Returns: bool

this.IsFromUse

Full Usage: this.IsFromUse

Returns: bool

Indicates if the reference is used for example at a call site

Returns: bool

this.IsPrivateToFile

Full Usage: this.IsPrivateToFile

Returns: bool

Indicates if the FSharpSymbolUse is declared as private

Returns: bool

this.IsPrivateToFileAndSignatureFile

Full Usage: this.IsPrivateToFileAndSignatureFile

Returns: bool

Indicates if the FSharpSymbolUse is private to the implementation & signature file. This is true for function and method parameters.

Returns: bool

this.Range

Full Usage: this.Range

Returns: range

The range of text representing the reference to the symbol

Returns: range

this.Symbol

Full Usage: this.Symbol

Returns: FSharpSymbol

The symbol referenced

Returns: FSharpSymbol

Type something to start searching.