[vala/1270-remove-static-codecontext-access: 35/44] MethodCall: avoid static access to Report




commit b03c5ec07d0970e2542664055d94690d12624ed8
Author: Daniel Espinosa <esodan gmail com>
Date:   Sun Jan 2 18:59:01 2022 -0600

    MethodCall: avoid static access to Report

 vala/valamethodcall.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valamethodcall.vala b/vala/valamethodcall.vala
index 9c3779a19..fd23288b7 100644
--- a/vala/valamethodcall.vala
+++ b/vala/valamethodcall.vala
@@ -364,7 +364,7 @@ public class Vala.MethodCall : Expression, CallableExpression {
                                        if (ma.member_name != "end") {
                                                // begin (possibly implicit)
                                                if (ma.member_name != "begin") {
-                                                       Report.deprecated (ma.source_reference, "implicit 
.begin is deprecated");
+                                                       context.report.log_deprecated (ma.source_reference, 
"implicit .begin is deprecated");
                                                }
                                                params = m.get_async_begin_parameters ();
                                                ret_type = new VoidType ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]