[vala/0.40] parser: Extend source_reference of initializer-list to cover "{ ... }"
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] parser: Extend source_reference of initializer-list to cover "{ ... }"
- Date: Tue, 9 Apr 2019 13:48:46 +0000 (UTC)
commit 81c75a36c778f0fe766fcb8a60235d810b1ff034
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Mar 8 18:46:02 2019 +0100
parser: Extend source_reference of initializer-list to cover "{ ... }"
vala/valaparser.vala | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index 9c59b0637..62921f3d1 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -2671,6 +2671,7 @@ public class Vala.Parser : CodeVisitor {
}
}
expect (TokenType.CLOSE_BRACE);
+ initializer.source_reference = get_src (begin);
return initializer;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]