summaryrefslogtreecommitdiff
path: root/vala/valasourcefile.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-01-02 14:23:40 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2019-09-30 09:03:25 +0200
commit7d317ebfd78bb0e569f277e31b0f4522469b48af (patch)
tree208fc9a6d55286bf0d4ad51c6e38046263a62b76 /vala/valasourcefile.vala
parent469d043f9c2bb9492392048975809fa4388ca63e (diff)
downloadvala-7d317ebfd78bb0e569f277e31b0f4522469b48af.tar.gz
vala: Let methods return an unowned reference to internal collections
Correctly state ownership in documentation since those were never a copy.
Diffstat (limited to 'vala/valasourcefile.vala')
-rw-r--r--vala/valasourcefile.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/vala/valasourcefile.vala b/vala/valasourcefile.vala
index 4dca01224..2e270a06c 100644
--- a/vala/valasourcefile.vala
+++ b/vala/valasourcefile.vala
@@ -163,11 +163,11 @@ public class Vala.SourceFile {
}
/**
- * Returns a copy of the list of header comments.
+ * Returns the list of header comments.
*
* @return list of comments
*/
- public List<Comment> get_comments () {
+ public unowned List<Comment> get_comments () {
return comments;
}
@@ -201,11 +201,11 @@ public class Vala.SourceFile {
}
/**
- * Returns a copy of the list of code nodes.
+ * Returns the list of code nodes.
*
* @return code node list
*/
- public List<CodeNode> get_nodes () {
+ public unowned List<CodeNode> get_nodes () {
return nodes;
}