@servicenow/sdk - v4.4.1
    Preparing search index...

    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
    interface FunctionLikeDeclarationBase {
        _declarationBrand: any;
        _functionLikeDeclarationBrand: any;
        _jsdocContainerBrand: any;
        asteriskToken?: AsteriskToken;
        body?: tsc.Expression | tsc.Block;
        end: number;
        exclamationToken?: ExclamationToken;
        flags: tsc.NodeFlags;
        kind:
            | MethodSignature
            | MethodDeclaration
            | Constructor
            | GetAccessor
            | SetAccessor
            | CallSignature
            | ConstructSignature
            | IndexSignature
            | FunctionType
            | ConstructorType
            | FunctionExpression
            | ArrowFunction
            | FunctionDeclaration
            | JSDocFunctionType;
        name?: tsc.PropertyName;
        parameters: NodeArray<tsc.ParameterDeclaration>;
        parent: tsc.Node;
        pos: number;
        questionToken?: QuestionToken;
        type?: tsc.TypeNode;
        typeParameters?: NodeArray<tsc.TypeParameterDeclaration>;
        forEachChild<T>(
            cbNode: (node: tsc.Node) => T | undefined,
            cbNodeArray?: (nodes: NodeArray<tsc.Node>) => T | undefined,
        ): T | undefined;
        getChildAt(index: number, sourceFile?: tsc.SourceFile): tsc.Node;
        getChildCount(sourceFile?: tsc.SourceFile): number;
        getChildren(sourceFile?: tsc.SourceFile): readonly tsc.Node[];
        getEnd(): number;
        getFirstToken(sourceFile?: tsc.SourceFile): tsc.Node | undefined;
        getFullStart(): number;
        getFullText(sourceFile?: tsc.SourceFile): string;
        getFullWidth(): number;
        getLastToken(sourceFile?: tsc.SourceFile): tsc.Node | undefined;
        getLeadingTriviaWidth(sourceFile?: tsc.SourceFile): number;
        getSourceFile(): tsc.SourceFile;
        getStart(
            sourceFile?: tsc.SourceFile,
            includeJsDocComment?: boolean,
        ): number;
        getText(sourceFile?: tsc.SourceFile): string;
        getWidth(sourceFile?: SourceFileLike): number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _declarationBrand: any
    _functionLikeDeclarationBrand: any
    _jsdocContainerBrand: any
    asteriskToken?: AsteriskToken
    end: number
    exclamationToken?: ExclamationToken
    flags: tsc.NodeFlags
    kind:
        | MethodSignature
        | MethodDeclaration
        | Constructor
        | GetAccessor
        | SetAccessor
        | CallSignature
        | ConstructSignature
        | IndexSignature
        | FunctionType
        | ConstructorType
        | FunctionExpression
        | ArrowFunction
        | FunctionDeclaration
        | JSDocFunctionType
    parent: tsc.Node
    pos: number
    questionToken?: QuestionToken
    type?: tsc.TypeNode

    Methods

    • Type Parameters

      • T

      Parameters

      Returns T | undefined

    • Returns number

    • Returns number

    • Returns number

    • Parameters

      • OptionalsourceFile: tsc.SourceFile
      • OptionalincludeJsDocComment: boolean

      Returns number