Change get_row() into row()

This commit is contained in:
Windel Bouwman 2019-06-30 20:23:01 +02:00
parent 57b4d432ef
commit 6f063a402d
2 changed files with 3 additions and 3 deletions

View file

@ -1803,7 +1803,7 @@ impl Compiler {
} }
fn get_source_line_number(&mut self) -> usize { 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 { 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 { 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 { fn compile_varargs(varargs: &ast::Varargs) -> bytecode::Varargs {

View file

@ -56,7 +56,7 @@ impl fmt::Display for CompileError {
}?; }?;
// Print line number: // Print line number:
write!(f, " at line {:?}", self.location.get_row()) write!(f, " at line {:?}", self.location.row())
} }
} }