Header menu logo F# Compiler Guide

InterfaceStubGenerator Module

Functions and values

Function or value Description

FormatInterface startColumn indentation typeInstances objectIdent methodBody displayContext excludedMemberSignatures arg8 verboseMode

Full Usage: FormatInterface startColumn indentation typeInstances objectIdent methodBody displayContext excludedMemberSignatures arg8 verboseMode

Parameters:
    startColumn : int
    indentation : int
    typeInstances : string[]
    objectIdent : string
    methodBody : string
    displayContext : FSharpDisplayContext
    excludedMemberSignatures : Set<string>
    arg7 : FSharpEntity
    verboseMode : bool

Returns: string

Generate stub implementation of an interface at a start column

startColumn : int
indentation : int
typeInstances : string[]
objectIdent : string
methodBody : string
displayContext : FSharpDisplayContext
excludedMemberSignatures : Set<string>
arg7 : FSharpEntity
verboseMode : bool
Returns: string

GetImplementedMemberSignatures getMemberByLocation arg2 arg3

Full Usage: GetImplementedMemberSignatures getMemberByLocation arg2 arg3

Parameters:
Returns: Async<Set<string>>

Get interface member signatures

getMemberByLocation : string * range -> FSharpSymbolUse option
arg1 : FSharpDisplayContext
arg2 : InterfaceData
Returns: Async<Set<string>>

GetInterfaceMembers entity

Full Usage: GetInterfaceMembers entity

Parameters:
Returns: (FSharpMemberOrFunctionOrValue * (FSharpGenericParameter * FSharpType) seq) seq

Get members in the decreasing order of inheritance chain

entity : FSharpEntity
Returns: (FSharpMemberOrFunctionOrValue * (FSharpGenericParameter * FSharpType) seq) seq

GetMemberNameAndRanges interfaceData

Full Usage: GetMemberNameAndRanges interfaceData

Parameters:
Returns: (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

interfaceData : InterfaceData
Returns: (string * range) list

HasNoInterfaceMember entity

Full Usage: HasNoInterfaceMember entity

Parameters:
Returns: bool

Check whether an interface is empty

entity : FSharpEntity
Returns: bool

IsInterface entity

Full Usage: IsInterface entity

Parameters:
Returns: bool

Check whether an entity is an interface or type abbreviation of an interface

entity : FSharpEntity
Returns: bool

TryFindInterfaceDeclaration pos parsedInput

Full Usage: TryFindInterfaceDeclaration pos parsedInput

Parameters:
Returns: InterfaceData option

Find corresponding interface declaration at a given position

pos : pos
parsedInput : ParsedInput
Returns: InterfaceData option

Type something to start searching.