[vala/wip/issue/327: 21/27] Linted some files



commit 33e66f478d1e83d01ac367dfb7e57ec89210ad49
Author: Nick Schrader <nick schrader mailbox org>
Date:   Sun Apr 5 21:03:12 2020 -0300

    Linted some files

 vala/valaparser.vala        | 4 ++--
 vala/valawithstatement.vala | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 5da12abe3..0b847e145 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -2267,7 +2267,7 @@ public class Vala.Parser : CodeVisitor {
        inline void expect_or_throw (TokenType type) throws ParseError {
                // Don't continue on any minor issue as the with-syntax is a fragile left recursion
                if (!accept (type)) {
-                       throw new ParseError.SYNTAX(@"expected $(type.to_string ())");
+                       throw new ParseError.SYNTAX (@"expected $(type.to_string ())");
                }
        }
 
@@ -2275,7 +2275,7 @@ public class Vala.Parser : CodeVisitor {
                var begin = get_location ();
                expect_or_throw (TokenType.WITH);
                expect_or_throw (TokenType.OPEN_PARENS);
-               var expr_or_decl = get_location();
+               var expr_or_decl = get_location ();
 
                DataType? variable_type = null;
                string? variable_name = null;
diff --git a/vala/valawithstatement.vala b/vala/valawithstatement.vala
index 06dc12f51..646e36746 100644
--- a/vala/valawithstatement.vala
+++ b/vala/valawithstatement.vala
@@ -76,7 +76,7 @@ public class Vala.WithStatement : Block {
        private Block _body;
        private DataType? _data_type;
 
-       public WithStatement (DataType? type_reference, string? variable_name, Expression expression, 
+       public WithStatement (DataType? type_reference, string? variable_name, Expression expression,
                        Block body, SourceReference? source_reference = null) {
                base (source_reference);
                this.expression = expression;
@@ -146,10 +146,10 @@ public class Vala.WithStatement : Block {
 
        bool is_type_reference_compatible () {
                if (type_reference == null) {
-                       type_reference = expression.value_type.copy();
+                       type_reference = expression.value_type.copy ();
                }
 
-               return expression.value_type.compatible(type_reference);
+               return expression.value_type.compatible (type_reference);
        }
 
        public override bool check (CodeContext context) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]