KC's Workspace
    Preparing search index...

    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
    interface MethodDeclaration {
        _classElementBrand: any;
        _declarationBrand: any;
        _flowContainerBrand: any;
        _functionLikeDeclarationBrand: any;
        _jsdocContainerBrand: any;
        _localsContainerBrand: any;
        _objectLiteralBrand: any;
        asteriskToken?: AsteriskToken;
        body?: Block;
        end: number;
        exclamationToken?: ExclamationToken;
        flags: NodeFlags;
        kind: MethodDeclaration;
        modifiers?: NodeArray<ModifierLike>;
        name: PropertyName;
        parameters: NodeArray<ParameterDeclaration>;
        parent: ObjectLiteralExpression | ClassLikeDeclaration;
        pos: number;
        questionToken?: QuestionToken;
        type?: TypeNode;
        typeParameters?: NodeArray<TypeParameterDeclaration>;
        forEachChild<T>(
            cbNode: (node: Node) => T | undefined,
            cbNodeArray?: (nodes: NodeArray<Node>) => T | undefined,
        ): T | undefined;
        getChildAt(index: number, sourceFile?: SourceFile): Node;
        getChildCount(sourceFile?: SourceFile): number;
        getChildren(sourceFile?: SourceFile): readonly Node[];
        getEnd(): number;
        getFirstToken(sourceFile?: SourceFile): Node | undefined;
        getFullStart(): number;
        getFullText(sourceFile?: SourceFile): string;
        getFullWidth(): number;
        getLastToken(sourceFile?: SourceFile): Node | undefined;
        getLeadingTriviaWidth(sourceFile?: SourceFile): number;
        getSourceFile(): SourceFile;
        getStart(sourceFile?: SourceFile, includeJsDocComment?: boolean): number;
        getText(sourceFile?: SourceFile): string;
        getWidth(sourceFile?: SourceFileLike): number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _classElementBrand: any
    _declarationBrand: any
    _flowContainerBrand: any
    _functionLikeDeclarationBrand: any
    _jsdocContainerBrand: any
    _localsContainerBrand: any
    _objectLiteralBrand: any
    asteriskToken?: AsteriskToken
    body?: Block
    end: number
    exclamationToken?: ExclamationToken
    flags: NodeFlags
    modifiers?: NodeArray<ModifierLike>
    pos: number
    questionToken?: QuestionToken
    type?: TypeNode

    Methods