diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-08-22 20:22:33 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-08-22 20:22:33 +0200 |
commit | 770b12cc2274df8e86ce89b9047bfd3a51954a7f (patch) | |
tree | 146dd4f140c288715758413a1fac0e8d60140460 /askama_derive/src/generator.rs | |
parent | ec5a2ebbb375d5ad49daeba72ec6aeb874d4a81e (diff) | |
download | askama-770b12cc2274df8e86ce89b9047bfd3a51954a7f.tar.gz askama-770b12cc2274df8e86ce89b9047bfd3a51954a7f.tar.bz2 askama-770b12cc2274df8e86ce89b9047bfd3a51954a7f.zip |
Rename method call internals for clarity
Diffstat (limited to 'askama_derive/src/generator.rs')
-rw-r--r-- | askama_derive/src/generator.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 3288e22..aa3eadf 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -244,7 +244,7 @@ impl<'a> Generator<'a> { self.write(")"); } - fn visit_call(&mut self, obj: &Expr, method: &str, args: &[Expr]) { + fn visit_method_call(&mut self, obj: &Expr, method: &str, args: &[Expr]) { self.visit_expr(obj); self.write(&format!(".{}(", method)); for (i, arg) in args.iter().enumerate() { @@ -266,8 +266,8 @@ impl<'a> Generator<'a> { Expr::BinOp(op, ref left, ref right) => self.visit_binop(op, left, right), Expr::Group(ref inner) => self.visit_group(inner), - Expr::Call(ref obj, method, ref args) => - self.visit_call(obj, method, args), + Expr::MethodCall(ref obj, method, ref args) => + self.visit_method_call(obj, method, args), } } |