Header menu logo F# Compiler Guide

SynMemberDefn Type

Represents a definition element within a type definition, e.g. 'member ... '

Union cases

Union case Description

AbstractSlot(slotSig, flags, range, trivia)

Full Usage: AbstractSlot(slotSig, flags, range, trivia)

Parameters:

An abstract slot definition within a class or interface

slotSig : SynValSig
flags : SynMemberFlags
range : range
trivia : SynMemberDefnAbstractSlotTrivia

AutoProperty(attributes, isStatic, ident, typeOpt, propKind, memberFlags, memberFlagsForSet, xmlDoc, accessibility, synExpr, range, trivia)

Full Usage: AutoProperty(attributes, isStatic, ident, typeOpt, propKind, memberFlags, memberFlagsForSet, xmlDoc, accessibility, synExpr, range, trivia)

Parameters:

An auto-property definition, F# syntax: 'member val X = expr'

attributes : SynAttributes
isStatic : bool
ident : Ident
typeOpt : SynType option
propKind : SynMemberKind
memberFlags : SynMemberFlags
memberFlagsForSet : SynMemberFlags
xmlDoc : PreXmlDoc
accessibility : SynValSigAccess
synExpr : SynExpr
range : range
trivia : SynMemberDefnAutoPropertyTrivia

GetSetMember(memberDefnForGet, memberDefnForSet, range, trivia)

Full Usage: GetSetMember(memberDefnForGet, memberDefnForSet, range, trivia)

Parameters:

A 'member' definition with get/set accessors within a type

memberDefnForGet : SynBinding option
memberDefnForSet : SynBinding option
range : range
trivia : SynMemberGetSetTrivia

ImplicitCtor(accessibility, attributes, ctorArgs, selfIdentifier, xmlDoc, range, trivia)

Full Usage: ImplicitCtor(accessibility, attributes, ctorArgs, selfIdentifier, xmlDoc, range, trivia)

Parameters:

An implicit constructor definition

accessibility : SynAccess option
attributes : SynAttributes
ctorArgs : SynPat
selfIdentifier : Ident option
xmlDoc : PreXmlDoc
range : range
trivia : SynMemberDefnImplicitCtorTrivia

ImplicitInherit(inheritType, inheritArgs, inheritAlias, range, trivia)

Full Usage: ImplicitInherit(inheritType, inheritArgs, inheritAlias, range, trivia)

Parameters:

An implicit inherit definition, 'inherit (args...) as base'

inheritType : SynType
inheritArgs : SynExpr
inheritAlias : Ident option
range : range
trivia : SynMemberDefnInheritTrivia

Inherit(baseType, asIdent, range, trivia)

Full Usage: Inherit(baseType, asIdent, range, trivia)

Parameters:

An 'inherit' definition within a class

baseType : SynType option
asIdent : Ident option
range : range
trivia : SynMemberDefnInheritTrivia

Interface(interfaceType, withKeyword, members, range)

Full Usage: Interface(interfaceType, withKeyword, members, range)

Parameters:

An interface implementation definition within a class

interfaceType : SynType
withKeyword : range option
members : SynMemberDefns option
range : range

LetBindings(bindings, isStatic, isRecursive, range)

Full Usage: LetBindings(bindings, isStatic, isRecursive, range)

Parameters:
    bindings : SynBinding list
    isStatic : bool
    isRecursive : bool
    range : range

A 'let' definition within a class

bindings : SynBinding list
isStatic : bool
isRecursive : bool
range : range

Member(memberDefn, range)

Full Usage: Member(memberDefn, range)

Parameters:

A 'member' definition within a type

memberDefn : SynBinding
range : range

NestedType(typeDefn, accessibility, range)

Full Usage: NestedType(typeDefn, accessibility, range)

Parameters:

A nested type definition, a feature that is not implemented

typeDefn : SynTypeDefn
accessibility : SynAccess option
range : range

Open(target, range)

Full Usage: Open(target, range)

Parameters:

An 'open' definition within a type

target : SynOpenDeclTarget
range : range

ValField(fieldInfo, range)

Full Usage: ValField(fieldInfo, range)

Parameters:

A 'val' definition within a class

fieldInfo : SynField
range : range

Instance members

Instance member Description

this.IsAbstractSlot

Full Usage: this.IsAbstractSlot

Returns: bool
Returns: bool

this.IsAutoProperty

Full Usage: this.IsAutoProperty

Returns: bool
Returns: bool

this.IsGetSetMember

Full Usage: this.IsGetSetMember

Returns: bool
Returns: bool

this.IsImplicitCtor

Full Usage: this.IsImplicitCtor

Returns: bool
Returns: bool

this.IsImplicitInherit

Full Usage: this.IsImplicitInherit

Returns: bool
Returns: bool

this.IsInherit

Full Usage: this.IsInherit

Returns: bool
Returns: bool

this.IsInterface

Full Usage: this.IsInterface

Returns: bool
Returns: bool

this.IsLetBindings

Full Usage: this.IsLetBindings

Returns: bool
Returns: bool

this.IsMember

Full Usage: this.IsMember

Returns: bool
Returns: bool

this.IsNestedType

Full Usage: this.IsNestedType

Returns: bool
Returns: bool

this.IsOpen

Full Usage: this.IsOpen

Returns: bool
Returns: bool

this.IsValField

Full Usage: this.IsValField

Returns: bool
Returns: bool

this.Range

Full Usage: this.Range

Returns: range

Gets the syntax range of this construct

Returns: range

Type something to start searching.