Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FunctionLikeDeclarationBase

Several node kinds share function-like features such as a signature, a name, and a body. These nodes should extend FunctionLikeDeclarationBase. Examples:

  • FunctionDeclaration
  • MethodDeclaration
  • AccessorDeclaration

Hierarchy

Index

Properties

_declarationBrand

_declarationBrand: any

_functionLikeDeclarationBrand

_functionLikeDeclarationBrand: any

Optional Readonly asteriskToken

asteriskToken: AsteriskToken

Optional Readonly body

Optional Readonly decorators

decorators: NodeArray<Decorator>

Readonly end

end: number

Optional Readonly exclamationToken

exclamationToken: ExclamationToken

Readonly flags

flags: NodeFlags

Readonly kind

Optional Readonly modifiers

modifiers: ModifiersArray

Optional Readonly name

Readonly parameters

Readonly parent

parent: Node

Readonly pos

pos: number

Optional Readonly questionToken

questionToken: QuestionToken

Optional Readonly type

type: TypeNode

Optional Readonly typeParameters

Methods

forEachChild

  • forEachChild<T>(cbNode: (node: Node) => T, cbNodeArray?: (nodes: NodeArray<Node>) => T): T

getChildAt

getChildCount

getChildren

getEnd

  • getEnd(): number

getFirstToken

getFullStart

  • getFullStart(): number

getFullText

getFullWidth

  • getFullWidth(): number

getLastToken

getLeadingTriviaWidth

  • getLeadingTriviaWidth(sourceFile?: SourceFile): number

getSourceFile

getStart

  • getStart(sourceFile?: SourceFile, includeJsDocComment?: boolean): number

getText

getWidth

Generated using TypeDoc