[vala/switch-to-gir: 16/34] girparser: Rename MethodInfo to ParameterInfo.
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir: 16/34] girparser: Rename MethodInfo to ParameterInfo.
- Date: Sun, 26 Dec 2010 10:49:42 +0000 (UTC)
commit 089808a329d08a45b509e9257e0849057178b7a9
Author: Luca Bruno <lucabru src gnome org>
Date: Sat Nov 20 09:55:12 2010 +0100
girparser: Rename MethodInfo to ParameterInfo.
vala/valagirparser.vala | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 5b999c7..a891026 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -2214,8 +2214,8 @@ public class Vala.GirParser : CodeVisitor {
return m;
}
- class MethodInfo {
- public MethodInfo (Parameter param, int array_length_idx, int closure_idx, int destroy_idx) {
+ class ParameterInfo {
+ public ParameterInfo (Parameter param, int array_length_idx, int closure_idx, int destroy_idx) {
this.param = param;
this.array_length_idx = array_length_idx;
this.closure_idx = closure_idx;
@@ -2291,7 +2291,7 @@ public class Vala.GirParser : CodeVisitor {
method.vfunc_name = metadata.get_string (ArgumentType.VFUNC_NAME);
}
- var parameters = new ArrayList<MethodInfo> ();
+ var parameters = new ArrayList<ParameterInfo> ();
var array_length_parameters = new ArrayList<int> ();
var closure_parameters = new ArrayList<int> ();
var destroy_parameters = new ArrayList<int> ();
@@ -2322,7 +2322,7 @@ public class Vala.GirParser : CodeVisitor {
destroy_parameters.add (destroy_idx);
}
- var info = new MethodInfo(param, array_length_idx, closure_idx, destroy_idx);
+ var info = new ParameterInfo(param, array_length_idx, closure_idx, destroy_idx);
if (s is Method && scope == "async") {
var unresolved_type = param.variable_type as UnresolvedType;
@@ -2341,7 +2341,7 @@ public class Vala.GirParser : CodeVisitor {
int i = 0, j=1;
int last = -1;
- foreach (MethodInfo info in parameters) {
+ foreach (ParameterInfo info in parameters) {
if (s is Delegate && info.closure_idx == i) {
var d = (Delegate) s;
d.has_target = true;
@@ -2374,7 +2374,7 @@ public class Vala.GirParser : CodeVisitor {
i++;
}
- foreach (MethodInfo info in parameters) {
+ foreach (ParameterInfo info in parameters) {
if (info.keep) {
/* add_parameter sets carray_length_parameter_position and cdelegate_target_parameter_position
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]