summaryrefslogtreecommitdiff
path: root/vala/valaconstant.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/valaconstant.vala
parenta74d7ac29f2fd0717fafd2f126c586b9b63dc71c (diff)
downloadvala-b202924bd4981138e08eedc59269140192c7b21a.tar.gz
vala: CodeNode.source_reference is optional, so let the API respect that
Diffstat (limited to 'vala/valaconstant.vala')
-rw-r--r--vala/valaconstant.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valaconstant.vala b/vala/valaconstant.vala
index ba0c5660c..871cff62e 100644
--- a/vala/valaconstant.vala
+++ b/vala/valaconstant.vala
@@ -63,7 +63,7 @@ public class Vala.Constant : Symbol {
* @param source_reference reference to source code
* @return newly created constant
*/
- public Constant (string name, DataType? type_reference, Expression? value, SourceReference? source_reference, Comment? comment = null) {
+ public Constant (string name, DataType? type_reference, Expression? value, SourceReference? source_reference = null, Comment? comment = null) {
base (name, source_reference, comment);
if (type_reference != null) {
this.type_reference = type_reference;