[vala/0.54] gidlparser: Set source reference of parameters
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.54] gidlparser: Set source reference of parameters
- Date: Wed, 10 Aug 2022 15:53:16 +0000 (UTC)
commit 288bba60662a8a2a58393e6beae58baee8422abe
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Aug 1 17:04:36 2022 +0200
gidlparser: Set source reference of parameters
vapigen/valagidlparser.vala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 007896ec4..be34201f5 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -677,7 +677,7 @@ public class Vala.GIdlParser : CodeVisitor {
ParameterDirection direction;
var param_type = parse_param (param, out direction);
- var p = new Parameter (param_name, param_type);
+ var p = new Parameter (param_name, param_type, current_source_reference);
p.direction = direction;
bool hide_param = false;
@@ -2443,7 +2443,7 @@ public class Vala.GIdlParser : CodeVisitor {
}
ParameterDirection direction;
var param_type = parse_param (param, out direction);
- var p = new Parameter (param_name, param_type);
+ var p = new Parameter (param_name, param_type, current_source_reference);
p.direction = direction;
bool hide_param = false;
@@ -2622,7 +2622,7 @@ public class Vala.GIdlParser : CodeVisitor {
if (last_param != null && last_param.name.has_prefix ("first_")) {
last_param.ellipsis = true;
} else if (add_ellipsis) {
- m.add_parameter (new Parameter.with_ellipsis ());
+ m.add_parameter (new Parameter.with_ellipsis (current_source_reference));
}
if (container == null) {
@@ -3132,7 +3132,7 @@ public class Vala.GIdlParser : CodeVisitor {
ParameterDirection direction;
var param_type = parse_param (param, out direction);
- var p = new Parameter (param_node.name, param_type);
+ var p = new Parameter (param_node.name, param_type, current_source_reference);
p.direction = direction;
bool hide_param = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]