py-ast - v1.16.0
    Preparing search index...

    Interface FunctionDef

    A def function definition, e.g. def f(x: int) -> bool: ....

    interface FunctionDef {
        inlineComment?: Comment;
        lineno: number;
        col_offset: number;
        end_lineno?: number;
        end_col_offset?: number;
        nodeType: "FunctionDef";
        name: string;
        args: Arguments;
        body: StmtNode[];
        decorator_list: ExprNode[];
        returns?: ExprNode;
        type_comment?: string;
        type_params: TypeParamNode[];
    }

    Hierarchy (View Summary)

    Index
    inlineComment?: Comment

    Optional inline comment attached to this node.

    lineno: number

    1-indexed source line the node starts on.

    col_offset: number

    0-indexed byte offset (UTF-8) within lineno where the node starts.

    end_lineno?: number

    1-indexed source line the node ends on.

    end_col_offset?: number

    0-indexed byte offset (UTF-8) within end_lineno where the node ends.

    nodeType: "FunctionDef"
    name: string
    args: Arguments
    body: StmtNode[]
    decorator_list: ExprNode[]
    returns?: ExprNode
    type_comment?: string
    type_params: TypeParamNode[]