FunctionDef

ast.FunctionDef = class FunctionDef(stmt)
| FunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment)

Constructors

Link copied to clipboard
constructor(pyObject: PyObject)

Properties

Link copied to clipboard
open override val args: Python.AST.arguments
Link copied to clipboard
open override val body: List<Python.AST.BaseStmt>
Link copied to clipboard
open val col_offset: Int

Maps to the col_offset filed from Python's ast.

Link copied to clipboard
Link copied to clipboard

Maps to the end_col_offset filed from Python's ast.

Link copied to clipboard
open val end_lineno: Int

Maps to the end_lineno filed from Python's ast.

Link copied to clipboard
open val lineno: Int

Maps to the lineno filed from Python's ast.

Link copied to clipboard
open override val name: String
Link copied to clipboard
var pyObject: PyObject
Link copied to clipboard
open override val returns: Python.AST.BaseExpr?
Link copied to clipboard
open override val type_comment: String?