(&mut self, error: CodegenErrorType, range: TextRange)
| 719 | } |
| 720 | |
| 721 | fn error_ranged(&mut self, error: CodegenErrorType, range: TextRange) -> CodegenError { |
| 722 | let location = self |
| 723 | .source_file |
| 724 | .to_source_code() |
| 725 | .source_location(range.start(), PositionEncoding::Utf8); |
| 726 | CodegenError { |
| 727 | error, |
| 728 | location: Some(location), |
| 729 | source_path: self.source_file.name().to_owned(), |
| 730 | } |
| 731 | } |
| 732 | |
| 733 | /// Get the SymbolTable for the current scope. |
| 734 | fn current_symbol_table(&self) -> &SymbolTable { |
no test coverage detected