[vala/0.40] girparser: Add support for NoAccessorMethod metadata
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] girparser: Add support for NoAccessorMethod metadata
- Date: Sat, 14 Apr 2018 06:22:44 +0000 (UTC)
commit 47969d9da261e8f8d2e6b7799b2b0b6db219d524
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Apr 14 00:59:44 2018 +0200
girparser: Add support for NoAccessorMethod metadata
vala/valagirparser.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 65ab2d9..a6fffd7 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -86,6 +86,7 @@ public class Vala.GirParser : CodeVisitor {
RETURNS_MODIFIED_POINTER,
DELEGATE_TARGET_CNAME,
FINISH_VFUNC_NAME,
+ NO_ACCESSOR_METHOD,
CNAME;
public static ArgumentType? from_string (string name) {
@@ -1071,6 +1072,10 @@ public class Vala.GirParser : CodeVisitor {
}
}
+ if (metadata.has_argument (ArgumentType.NO_ACCESSOR_METHOD)) {
+ prop.set_attribute ("NoAccessorMethod", metadata.get_bool
(ArgumentType.NO_ACCESSOR_METHOD));
+ }
+
if (prop.get_attribute ("NoAccessorMethod") != null) {
// gobject defaults
if (prop.get_accessor != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]