🚧
Still under progress. Soon will be finished.
Description
Represents the reflected node of a function declaration
Methods
-
getName
codegetName(): string
Returns
string
: -
getNodeType
codegetNodeType(): RootNodeType
Returns
RootNodeType
: -
getContext
codegetContext(): ProjectContext
Returns
ProjectContext
: -
getKind
codegetKind(): DeclarationKind.Function | MemberKind.Method
Returns
DeclarationKind.Function | MemberKind.Method
: -
getTSNode
codegetTSNode(): NodeWithFunctionDeclaration
Returns
NodeWithFunctionDeclaration
: -
getLine
codegetLine(): number | null
Returns
number | null
: -
getNamespace
codegetNamespace(): string
Returns
string
: -
getJSDoc
codegetJSDoc(): CommentNode | null
Returns
CommentNode | null
: -
getDecorators
codegetDecorators(): DecoratorNode[]
Returns
DecoratorNode[]
: -
getDecoratorWithName
codegetDecoratorWithName(name: string): DecoratorNode | null
Parameters
name string
Returns
DecoratorNode | null
: -
getSignatures
codegetSignatures(): SignatureNode[]
Returns
SignatureNode[]
: -
getModifier
codegetModifier(): ModifierType | null
Returns
ModifierType | null
: -
isGenerator
codeisGenerator(): boolean
Returns
boolean
: -
isAsync
codeisAsync(): boolean
Returns
boolean
: -
isOptional
codeisOptional(): boolean
Returns
boolean
: -
isStatic
codeisStatic(): boolean
Returns
boolean
: -
isReadOnly
codeisReadOnly(): boolean
Returns
boolean
: -
isAbstract
codeisAbstract(): boolean
Returns
boolean
: -
isInherited
codeisInherited(): boolean
Returns
boolean
: -
isArrowFunctionOrFunctionExpression
codeisArrowFunctionOrFunctionExpression(): boolean
Returns
boolean
: -
overrides
codeoverrides(): boolean
Returns
boolean
: -
serialize
codeSerializes the reflected node
serialize(): FunctionDeclaration | Method
Returns
FunctionDeclaration | Method
:The reflected node as a serializable object