[valadoc] drivers: Mark arrays as unowned instead of weak
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] drivers: Mark arrays as unowned instead of weak
- Date: Tue, 2 Sep 2014 17:17:46 +0000 (UTC)
commit de2eb894a54313baf027c54a77a7c5c679162f37
Author: Florian Brosch <flo brosch gmail com>
Date: Sat Aug 30 22:34:56 2014 +0200
drivers: Mark arrays as unowned instead of weak
src/driver/0.16.x/treebuilder.vala | 5 +++++
src/driver/0.18.x/treebuilder.vala | 5 +++++
src/driver/0.20.x/treebuilder.vala | 5 +++++
src/driver/0.22.x/treebuilder.vala | 5 +++++
src/driver/0.24.x/treebuilder.vala | 5 +++++
src/driver/0.26.x/treebuilder.vala | 7 ++++++-
6 files changed, 31 insertions(+), 1 deletions(-)
---
diff --git a/src/driver/0.16.x/treebuilder.vala b/src/driver/0.16.x/treebuilder.vala
index 5e342a2..d605bec 100644
--- a/src/driver/0.16.x/treebuilder.vala
+++ b/src/driver/0.16.x/treebuilder.vala
@@ -658,6 +658,11 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
return false;
}
+ // arrays are unowned, not weak
+ if (element is Vala.ArrayType) {
+ return false;
+ }
+
// FormalParameters are weak by default
return (element.parent_node is Vala.Parameter == false)? element.is_weak () : false;
}
diff --git a/src/driver/0.18.x/treebuilder.vala b/src/driver/0.18.x/treebuilder.vala
index 81b5d34..3051b84 100644
--- a/src/driver/0.18.x/treebuilder.vala
+++ b/src/driver/0.18.x/treebuilder.vala
@@ -659,6 +659,11 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
return false;
}
+ // arrays are unowned, not weak
+ if (element is Vala.ArrayType) {
+ return false;
+ }
+
// FormalParameters are weak by default
return (element.parent_node is Vala.Parameter == false)? element.is_weak () : false;
}
diff --git a/src/driver/0.20.x/treebuilder.vala b/src/driver/0.20.x/treebuilder.vala
index a855505..59df9b6 100644
--- a/src/driver/0.20.x/treebuilder.vala
+++ b/src/driver/0.20.x/treebuilder.vala
@@ -666,6 +666,11 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
return false;
}
+ // arrays are unowned, not weak
+ if (element is Vala.ArrayType) {
+ return false;
+ }
+
// FormalParameters are weak by default
return (element.parent_node is Vala.Parameter == false)? element.is_weak () : false;
}
diff --git a/src/driver/0.22.x/treebuilder.vala b/src/driver/0.22.x/treebuilder.vala
index 03cfe05..bb4ef56 100644
--- a/src/driver/0.22.x/treebuilder.vala
+++ b/src/driver/0.22.x/treebuilder.vala
@@ -666,6 +666,11 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
return false;
}
+ // arrays are unowned, not weak
+ if (element is Vala.ArrayType) {
+ return false;
+ }
+
// FormalParameters are weak by default
return (element.parent_node is Vala.Parameter == false)? element.is_weak () : false;
}
diff --git a/src/driver/0.24.x/treebuilder.vala b/src/driver/0.24.x/treebuilder.vala
index 76e52c0..5911097 100644
--- a/src/driver/0.24.x/treebuilder.vala
+++ b/src/driver/0.24.x/treebuilder.vala
@@ -666,6 +666,11 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
return false;
}
+ // arrays are unowned, not weak
+ if (element is Vala.ArrayType) {
+ return false;
+ }
+
// FormalParameters are weak by default
return (element.parent_node is Vala.Parameter == false)? element.is_weak () : false;
}
diff --git a/src/driver/0.26.x/treebuilder.vala b/src/driver/0.26.x/treebuilder.vala
index f37b153..53440a1 100644
--- a/src/driver/0.26.x/treebuilder.vala
+++ b/src/driver/0.26.x/treebuilder.vala
@@ -159,7 +159,7 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
Vala.DataType vntype = vtyperef.element_type;
if (vntype is Vala.ArrayType) {
- arr.data_type = create_array ((Vala.ArrayType) vntype, arr, caller);
+ arr.data_type = create_type_reference (vntype, arr, caller);
} else {
arr.data_type = create_type_reference (vntype, arr, caller);
}
@@ -666,6 +666,11 @@ public class Valadoc.Drivers.TreeBuilder : Vala.CodeVisitor {
return false;
}
+ // arrays are unowned, not weak
+ if (element is Vala.ArrayType) {
+ return false;
+ }
+
// FormalParameters are weak by default
return (element.parent_node is Vala.Parameter == false)? element.is_weak () : false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]