summaryrefslogtreecommitdiff
path: root/vala/valaenumvalue.vala
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-02-29 21:55:37 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-02-29 21:55:37 +0000
commit7efff83dabd4bab6eb5bc351b312c2815bc7d1ca (patch)
treee8a0864b4913e721da40b5b7d30d0d35615406c2 /vala/valaenumvalue.vala
parentee039ab2fdb38d31ddac39791b9f0bf1a8515380 (diff)
downloadvala-7efff83dabd4bab6eb5bc351b312c2815bc7d1ca.tar.gz
use source_reference for enum values
2008-02-29 Juerg Billeter <j@bitron.ch> * vala/parser.y, vala/valacodecontext.vala, vala/valaenumvalue.vala: use source_reference for enum values svn path=/trunk/; revision=1069
Diffstat (limited to 'vala/valaenumvalue.vala')
-rw-r--r--vala/valaenumvalue.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/vala/valaenumvalue.vala b/vala/valaenumvalue.vala
index fde0561c0..75cf55501 100644
--- a/vala/valaenumvalue.vala
+++ b/vala/valaenumvalue.vala
@@ -39,7 +39,8 @@ public class Vala.EnumValue : Symbol {
* @param name enum value name
* @return newly created enum value
*/
- public EnumValue (construct string! name) {
+ public EnumValue (construct string! name, SourceReference source_reference = null) {
+ this.source_reference = source_reference;
}
/**
@@ -49,7 +50,8 @@ public class Vala.EnumValue : Symbol {
* @param value numerical representation
* @return newly created enum value
*/
- public EnumValue.with_value (construct string! name, construct Expression value) {
+ public EnumValue.with_value (construct string! name, construct Expression value, SourceReference source_reference = null) {
+ this.source_reference = source_reference;
}
public override void accept (CodeVisitor! visitor) {