[valadoc] libvaladoc: Api.Class: Add is_compact
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] libvaladoc: Api.Class: Add is_compact
- Date: Fri, 17 Aug 2012 23:26:00 +0000 (UTC)
commit 1cfea5ddbdda59ea7b6194aab353b6baf519a8a5
Author: Florian Brosch <flo brosch gmail com>
Date: Fri Aug 17 14:05:41 2012 +0200
libvaladoc: Api.Class: Add is_compact
src/driver/0.10.x/treebuilder.vala | 1 +
src/driver/0.12.x/treebuilder.vala | 1 +
src/driver/0.14.x/treebuilder.vala | 1 +
src/driver/0.16.x/treebuilder.vala | 1 +
src/driver/0.18.x/treebuilder.vala | 1 +
src/libvaladoc/api/class.vala | 6 ++++++
6 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/driver/0.10.x/treebuilder.vala b/src/driver/0.10.x/treebuilder.vala
index 01f22f1..6420cb7 100644
--- a/src/driver/0.10.x/treebuilder.vala
+++ b/src/driver/0.10.x/treebuilder.vala
@@ -212,6 +212,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
"ErrorBase",
"NoReturn",
"NoThrow",
+ "Compact",
"Assert",
"Flags"
};
diff --git a/src/driver/0.12.x/treebuilder.vala b/src/driver/0.12.x/treebuilder.vala
index f67d642..bf559ae 100644
--- a/src/driver/0.12.x/treebuilder.vala
+++ b/src/driver/0.12.x/treebuilder.vala
@@ -212,6 +212,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
"ErrorBase",
"NoReturn",
"NoThrow",
+ "Compact",
"Assert",
"Flags"
};
diff --git a/src/driver/0.14.x/treebuilder.vala b/src/driver/0.14.x/treebuilder.vala
index 795aa97..d9cdfa6 100644
--- a/src/driver/0.14.x/treebuilder.vala
+++ b/src/driver/0.14.x/treebuilder.vala
@@ -208,6 +208,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
"ErrorBase",
"NoReturn",
"NoThrow",
+ "Compact",
"Assert",
"Flags"
};
diff --git a/src/driver/0.16.x/treebuilder.vala b/src/driver/0.16.x/treebuilder.vala
index 8bf06f3..9629d85 100644
--- a/src/driver/0.16.x/treebuilder.vala
+++ b/src/driver/0.16.x/treebuilder.vala
@@ -216,6 +216,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
"ErrorBase",
"NoReturn",
"NoThrow",
+ "Compact",
"Assert",
"Flags"
};
diff --git a/src/driver/0.18.x/treebuilder.vala b/src/driver/0.18.x/treebuilder.vala
index 37f44bd..b253891 100644
--- a/src/driver/0.18.x/treebuilder.vala
+++ b/src/driver/0.18.x/treebuilder.vala
@@ -220,6 +220,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
"ErrorBase",
"NoReturn",
"NoThrow",
+ "Compact",
"Assert",
"Flags"
};
diff --git a/src/libvaladoc/api/class.vala b/src/libvaladoc/api/class.vala
index 0c5a7a5..8176b6d 100644
--- a/src/libvaladoc/api/class.vala
+++ b/src/libvaladoc/api/class.vala
@@ -250,6 +250,12 @@ public class Valadoc.Api.Class : TypeSymbol {
get;
}
+ public bool is_compact {
+ get {
+ return base_type == null && get_attribute ("Compact") != null;
+ }
+ }
+
/**
* { inheritDoc}
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]