Header menu logo F# Compiler Guide

CompletionContext Type

Union cases

Union case Description

AttributeApplication

Full Usage: AttributeApplication

Completing an attribute name, outside of the constructor

Inherit(context, path)

Full Usage: Inherit(context, path)

Parameters:

Completing something after the inherit keyword

context : InheritanceContext
path : CompletionPath

Invalid

Full Usage: Invalid

Completion context cannot be determined due to errors

MethodOverride(ctx, enclosingTypeNameRange, spacesBeforeOverrideKeyword, hasThis, isStatic)

Full Usage: MethodOverride(ctx, enclosingTypeNameRange, spacesBeforeOverrideKeyword, hasThis, isStatic)

Parameters:

Completing a method override (e.g. override this.ToStr|)

ctx : MethodOverrideCompletionContext
enclosingTypeNameRange : range
spacesBeforeOverrideKeyword : int
hasThis : bool
isStatic : bool

OpenDeclaration isOpenType

Full Usage: OpenDeclaration isOpenType

Parameters:
    isOpenType : bool

isOpenType : bool

ParameterList(pos, HashSet<string>)

Full Usage: ParameterList(pos, HashSet<string>)

Parameters:

Completing named parameters\setters in parameter list of attributes\constructor\method calls end of name ast node * list of properties\parameters that were already set

Item1 : pos
Item2 : HashSet<string>

Pattern context

Full Usage: Pattern context

Parameters:

Completing a pattern in a match clause, member/let binding or lambda

context : PatternContext

RangeOperator

Full Usage: RangeOperator

RecordField context

Full Usage: RecordField context

Parameters:

Completing records field

context : RecordContext

Type

Full Usage: Type

Completing a type annotation (e.g. foo (x: |)) Completing a type application (e.g. typeof)

TypeAbbreviationOrSingleCaseUnion

Full Usage: TypeAbbreviationOrSingleCaseUnion

Completing a type abbreviation (e.g. type Long = int6|) or a single case union without a bar (type SomeUnion = Abc|)

UnionCaseFieldsDeclaration

Full Usage: UnionCaseFieldsDeclaration

Completing union case fields declaration (e.g. 'A of stri|' but not 'B of tex|: string')

Instance members

Instance member Description

this.IsAttributeApplication

Full Usage: this.IsAttributeApplication

Returns: bool
Returns: bool

this.IsInherit

Full Usage: this.IsInherit

Returns: bool
Returns: bool

this.IsInvalid

Full Usage: this.IsInvalid

Returns: bool
Returns: bool

this.IsMethodOverride

Full Usage: this.IsMethodOverride

Returns: bool
Returns: bool

this.IsOpenDeclaration

Full Usage: this.IsOpenDeclaration

Returns: bool
Returns: bool

this.IsParameterList

Full Usage: this.IsParameterList

Returns: bool
Returns: bool

this.IsPattern

Full Usage: this.IsPattern

Returns: bool
Returns: bool

this.IsRangeOperator

Full Usage: this.IsRangeOperator

Returns: bool
Returns: bool

this.IsRecordField

Full Usage: this.IsRecordField

Returns: bool
Returns: bool

this.IsType

Full Usage: this.IsType

Returns: bool
Returns: bool

this.IsTypeAbbreviationOrSingleCaseUnion

Full Usage: this.IsTypeAbbreviationOrSingleCaseUnion

Returns: bool
Returns: bool

this.IsUnionCaseFieldsDeclaration

Full Usage: this.IsUnionCaseFieldsDeclaration

Returns: bool
Returns: bool

Type something to start searching.