summaryrefslogtreecommitdiff
path: root/vala/valaarrayresizemethod.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-10-24 14:11:43 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2020-10-24 14:53:21 +0200
commitb202924bd4981138e08eedc59269140192c7b21a (patch)
treef37b2e9a3d1cb0ef7da467f5c81a39f60f2690c2 /vala/valaarrayresizemethod.vala
parenta74d7ac29f2fd0717fafd2f126c586b9b63dc71c (diff)
downloadvala-b202924bd4981138e08eedc59269140192c7b21a.tar.gz
vala: CodeNode.source_reference is optional, so let the API respect that
Diffstat (limited to 'vala/valaarrayresizemethod.vala')
-rw-r--r--vala/valaarrayresizemethod.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valaarrayresizemethod.vala b/vala/valaarrayresizemethod.vala
index c1008777e..7a96827a5 100644
--- a/vala/valaarrayresizemethod.vala
+++ b/vala/valaarrayresizemethod.vala
@@ -31,7 +31,7 @@ public class Vala.ArrayResizeMethod : Method {
*
* @return newly created method
*/
- public ArrayResizeMethod (SourceReference source_reference) {
+ public ArrayResizeMethod (SourceReference? source_reference = null) {
base ("resize", new VoidType (), source_reference);
external = true;
set_attribute_double ("CCode", "instance_pos", 0.1);