Returns the base `SourceLoc`. If it was never explicitly set with `ensure_base_srcloc`, will return an invalid `SourceLoc`.
(&self)
| 96 | /// If it was never explicitly set with `ensure_base_srcloc`, will return an invalid |
| 97 | /// `SourceLoc`. |
| 98 | pub fn base_srcloc(&self) -> SourceLoc { |
| 99 | self.base_srcloc.unwrap_or_default() |
| 100 | } |
| 101 | |
| 102 | /// Sets the base `SourceLoc`, if not set yet, and returns the base value. |
| 103 | pub fn ensure_base_srcloc(&mut self, srcloc: SourceLoc) -> SourceLoc { |
no outgoing calls
no test coverage detected