mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-04 02:39:22 +00:00
Change get_row() into row()
This commit is contained in:
parent
57b4d432ef
commit
6f063a402d
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue