diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-10-24 14:11:43 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-10-24 14:53:21 +0200 |
commit | b202924bd4981138e08eedc59269140192c7b21a (patch) | |
tree | f37b2e9a3d1cb0ef7da467f5c81a39f60f2690c2 /vala/valaunaryexpression.vala | |
parent | a74d7ac29f2fd0717fafd2f126c586b9b63dc71c (diff) | |
download | vala-b202924bd4981138e08eedc59269140192c7b21a.tar.gz |
vala: CodeNode.source_reference is optional, so let the API respect that
Diffstat (limited to 'vala/valaunaryexpression.vala')
-rw-r--r-- | vala/valaunaryexpression.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valaunaryexpression.vala b/vala/valaunaryexpression.vala index 2a010b6b7..a97c0b204 100644 --- a/vala/valaunaryexpression.vala +++ b/vala/valaunaryexpression.vala @@ -55,7 +55,7 @@ public class Vala.UnaryExpression : Expression { * @param source reference to source code * @return newly created binary expression */ - public UnaryExpression (UnaryOperator op, Expression _inner, SourceReference source) { + public UnaryExpression (UnaryOperator op, Expression _inner, SourceReference? source = null) { operator = op; inner = _inner; source_reference = source; |