maxon.SourceLocation

Description

An object to represents the current file location. This can either to trace error or memory leak.

Inheritance diagram

Inheritance

Parent Class:

Attributes

maxon.SourceLocation.file (str) The file represented by this Source Location.
maxon.SourceLocation.lineAndFlags (int) The line number represented by this Source Location.

Methods Signature

GetFile() Retrieves the file represented by the source location object.
GetLine() Retrieves the line represented by the source location object.
__init__([f, line]) Initializes a Source location with a given file and line

Methods Definition

SourceLocation.GetFile()

Retrieves the file represented by the source location object.

Returns:The file represented by the source location object.
Return type:str
SourceLocation.GetLine()

Retrieves the line represented by the source location object.

Returns:The line represented by the source location object.
Return type:int
SourceLocation.__init__(f=None, line=None)

Initializes a Source location with a given file and line

Parameters:
  • f (Optional[str]) – The file represented.
  • line (Optional[int]) – The line represented.