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 enclosingTypeNameRange

Full Usage: MethodOverride enclosingTypeNameRange

Parameters:
    enclosingTypeNameRange : range

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

enclosingTypeNameRange : range

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')

Type something to start searching.