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