]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
astprinter: Print nullability state of binary expression
authorTimm Bäder <mail@baedert.org>
Tue, 8 Nov 2016 07:44:56 +0000 (08:44 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 8 Nov 2016 07:44:56 +0000 (08:44 +0100)
vala/valaastprinter.vala

index e9bba89ee0269a971525d1f35e6aafd5869452d7..985f313336e39599a2c24f21def1594ddc643b67 100644 (file)
@@ -322,6 +322,7 @@ public class Vala.AstPrinter : CodeVisitor {
 
        public override void visit_binary_expression (BinaryExpression expr) {
                print ("Binary Expr (op: %s, non_null: %s, constant: %s)".printf (expr.get_operator_string (), expr.is_non_null ().to_string (), expr.is_constant ().to_string ()));
+               print ("Nullability: %s".printf (expr.get_null_state ().to_string ()));
 
                print ("Left: %s (%s)".printf (expr.left.to_string (), expr.left.type_name));
                level ++;