maxon.SourceLocation¶
Description¶
An object to represents the current file location. This can either to trace error or memory leak.
Attributes¶
(str) The file represented by this Source Location. |
|
(int) The line number represented by this Source Location. |
Methods Signature¶
|
Retrieves the file represented by the source location object. |
|
Retrieves the line represented by the source location object. |
|
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.