summaryrefslogtreecommitdiff
path: root/vala/valastruct.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-03-27 12:46:26 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2018-03-27 13:12:02 +0200
commit55d883a5b593be366aff440ead4571ee76d86d02 (patch)
treebe85465984a784b0e553a1c15f6e9c91b257be3c /vala/valastruct.vala
parent7bd54c7a88555831febf186295cc44a7301aa83f (diff)
downloadvala-55d883a5b593be366aff440ead4571ee76d86d02.tar.gz
Drop trailing spaces/tabs
It was about time to do this.
Diffstat (limited to 'vala/valastruct.vala')
-rw-r--r--vala/valastruct.vala22
1 files changed, 11 insertions, 11 deletions
diff --git a/vala/valastruct.vala b/vala/valastruct.vala
index 21985d7af..972b4bdab 100644
--- a/vala/valastruct.vala
+++ b/vala/valastruct.vala
@@ -144,7 +144,7 @@ public class Vala.Struct : TypeSymbol {
type_parameters.add (p);
scope.add (p.name, p);
}
-
+
/**
* Returns a copy of the type parameter list.
*
@@ -163,7 +163,7 @@ public class Vala.Struct : TypeSymbol {
constants.add (c);
scope.add (c.name, c);
}
-
+
/**
* Adds the specified field as a member to this struct.
*
@@ -175,7 +175,7 @@ public class Vala.Struct : TypeSymbol {
fields.add (f);
scope.add (f.name, f);
}
-
+
/**
* Returns a copy of the list of fields.
*
@@ -201,7 +201,7 @@ public class Vala.Struct : TypeSymbol {
*/
public override void add_method (Method m) {
return_if_fail (m != null);
-
+
if (m.binding == MemberBinding.INSTANCE || m is CreationMethod) {
m.this_parameter = new Parameter ("this", SemanticAnalyzer.get_data_type_for_symbol (this));
m.scope.add (m.this_parameter.name, m.this_parameter);
@@ -228,7 +228,7 @@ public class Vala.Struct : TypeSymbol {
methods.add (m);
scope.add (m.name, m);
}
-
+
/**
* Returns a copy of the list of methods.
*
@@ -276,15 +276,15 @@ public class Vala.Struct : TypeSymbol {
foreach (TypeParameter p in type_parameters) {
p.accept (visitor);
}
-
+
foreach (Field f in fields) {
f.accept (visitor);
}
-
+
foreach (Constant c in constants) {
c.accept (visitor);
}
-
+
foreach (Method m in methods) {
m.accept (visitor);
}
@@ -325,7 +325,7 @@ public class Vala.Struct : TypeSymbol {
}
return integer_type;
}
-
+
/**
* Returns whether this is a floating point type.
*
@@ -388,14 +388,14 @@ public class Vala.Struct : TypeSymbol {
public override int get_type_parameter_index (string name) {
int i = 0;
-
+
foreach (TypeParameter p in type_parameters) {
if (p.name == name) {
return (i);
}
i++;
}
-
+
return -1;
}