init(file_path:lineno:line:name:index:globals:locals:)

Initializes a frame.

Declaration

init(
    file_path: String,
    lineno: Int,
    line: String? = nil,
    name: String? = nil,
    index: Int,
    globals: Object? = nil,
    locals: Object? = nil
)

Parameters

  • file_path: The file path.

  • lineno: The line number.

  • line: The contents of the line.

  • name: The name of the current function or namespace.

  • index: The index in relation to its sibling frames.

  • globals: A reference to the globals dictionary.

  • locals: A reference to the locals dictionary.