[vala/staging: 2/4] codegen: Deprecate "finish_function" ccode-attribute



commit 9de5cddcdb1ecacf093da6ed7560223b72d17738
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Jul 16 19:30:31 2018 +0200

    codegen: Deprecate "finish_function" ccode-attribute
    
    This is an alias for "finish_name"

 codegen/valaccodeattribute.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/codegen/valaccodeattribute.vala b/codegen/valaccodeattribute.vala
index dc1e87b49..6acdafde9 100644
--- a/codegen/valaccodeattribute.vala
+++ b/codegen/valaccodeattribute.vala
@@ -470,6 +470,9 @@ public class Vala.CCodeAttribute : AttributeCache {
                                        _finish_name = ccode.get_string ("finish_name");
                                        if (_finish_name == null) {
                                                _finish_name = ccode.get_string ("finish_function");
+                                               if (_finish_name != null) {
+                                                       Report.deprecated (node.source_reference, "[CCode 
(finish_function = \"...\")] is deprecated, use [CCode (finish_name = \"...\")] instead.");
+                                               }
                                        }
                                }
                                if (_finish_name == null) {


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