[vala/wip/issue/327: 42/43] Linted some files
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/issue/327: 42/43] Linted some files
- Date: Tue, 7 Apr 2020 07:34:08 +0000 (UTC)
commit 4b432ac7368a66a21b5ebb7ff548ba8f23113f21
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 016e3e7dd..79acbb7ce 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -2255,7 +2255,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 ())");
}
}
@@ -2263,7 +2263,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]