From 6f063a402d3f5d2270f6462642f719f6103a0675 Mon Sep 17 00:00:00 2001 From: Windel Bouwman Date: Sun, 30 Jun 2019 20:23:01 +0200 Subject: [PATCH] Change get_row() into row() --- src/compile.rs | 4 ++-- src/error.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compile.rs b/src/compile.rs index 7ade38b..844f952 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -1803,7 +1803,7 @@ impl Compiler { } fn get_source_line_number(&mut self) -> usize { - self.current_source_location.get_row() + self.current_source_location.row() } fn create_qualified_name(&self, name: &str, suffix: &str) -> String { @@ -1835,7 +1835,7 @@ fn get_doc(body: &[ast::LocatedStatement]) -> (&[ast::LocatedStatement], Option< } fn compile_location(location: &ast::Location) -> bytecode::Location { - bytecode::Location::new(location.get_row(), location.get_column()) + bytecode::Location::new(location.row(), location.column()) } fn compile_varargs(varargs: &ast::Varargs) -> bytecode::Varargs { diff --git a/src/error.rs b/src/error.rs index af76316..bd9950c 100644 --- a/src/error.rs +++ b/src/error.rs @@ -56,7 +56,7 @@ impl fmt::Display for CompileError { }?; // Print line number: - write!(f, " at line {:?}", self.location.get_row()) + write!(f, " at line {:?}", self.location.row()) } }