[vala/0.48] gidlparser: Set source reference of parameters



commit 0ad517bfb8d6c3f7b142094b1a79cbfa7b51ebc6
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 87441dc47..6f656341e 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]