[vala/wip/issue/658: 47/48] CodeWriter: attributes for anonymous delegates in




commit 64af2999ee3ab442a6467de634d7f44a3f905414
Author: Nick Schrader <nick schrader mailbox org>
Date:   Fri Oct 30 23:24:23 2020 -0300

    CodeWriter: attributes for anonymous delegates in

 vala/valacodewriter.vala | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 7ae6c6576..6aedefcf2 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -1608,7 +1608,6 @@ public class Vala.CodeWriter : CodeVisitor {
                                write_string (", ");
                        }
 
-                       // TODO: Parameter attributes?
                        write_attributes (param);
 
                        if (param.direction == ParameterDirection.REF) {
@@ -1628,8 +1627,7 @@ public class Vala.CodeWriter : CodeVisitor {
        }
 
        private void write_anonymous_delegate (DelegateType cb) {
-               // TODO: What about attributes?
-               //write_attributes (cb);
+               write_attributes (cb);
 
                write_string ("delegate");
                write_anonymous_params (cb.get_parameters ());


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