Selfie
Loading...
Searching...
No Matches
selfie_lib.WriteTracker.CallStack Class Reference

Public Member Functions

 __init__ (self, CallLocation location, list[CallLocation] rest_of_stack)
 
str ide_link (self, "SnapshotFileLayout" layout)
 
 __eq__ (self, other)
 
 __hash__ (self)
 

Public Attributes

 location
 
 rest_of_stack
 

Detailed Description

Definition at line 62 of file WriteTracker.py.

Constructor & Destructor Documentation

◆ __init__()

selfie_lib.WriteTracker.CallStack.__init__ (   self,
CallLocation  location,
list[CallLocation rest_of_stack 
)

Definition at line 63 of file WriteTracker.py.

63 def __init__(self, location: CallLocation, rest_of_stack: list[CallLocation]):
64 self.location = location
65 self.rest_of_stack = rest_of_stack
66

Member Function Documentation

◆ __eq__()

selfie_lib.WriteTracker.CallStack.__eq__ (   self,
  other 
)

Definition at line 73 of file WriteTracker.py.

73 def __eq__(self, other):
74 if not isinstance(other, CallStack):
75 return NotImplemented
76 return (
77 self.location == other.location
78 and self.rest_of_stack == other.rest_of_stack
79 )
80

◆ __hash__()

selfie_lib.WriteTracker.CallStack.__hash__ (   self)

Definition at line 81 of file WriteTracker.py.

81 def __hash__(self):
82 return hash((self.location, tuple(self.rest_of_stack)))
83
84

◆ ide_link()

str selfie_lib.WriteTracker.CallStack.ide_link (   self,
"SnapshotFileLayout"  layout 
)

Definition at line 67 of file WriteTracker.py.

67 def ide_link(self, layout: "SnapshotFileLayout") -> str:
68 links = [self.location.ide_link(layout)] + [
69 loc.ide_link(layout) for loc in self.rest_of_stack
70 ]
71 return "\n".join(links)
72

Member Data Documentation

◆ location

selfie_lib.WriteTracker.CallStack.location

Definition at line 64 of file WriteTracker.py.

◆ rest_of_stack

selfie_lib.WriteTracker.CallStack.rest_of_stack

Definition at line 65 of file WriteTracker.py.


The documentation for this class was generated from the following file: