summaryrefslogtreecommitdiff
path: root/vala/valagenieparser.vala
diff options
context:
space:
mode:
authorJamie McCracken <jamiemcc gnome org>2009-04-13 11:55:50 -0400
committerJamie McCracken <jamiemcc gnome org>2009-04-13 11:55:50 -0400
commit296447f2bd404492bef4317c71b6dc59e4d7a977 (patch)
tree3c44122960c26f149e1a2627215ba028a11625e9 /vala/valagenieparser.vala
parent7e13e08068d2f4649b142523bf92651212580a0a (diff)
downloadvala-296447f2bd404492bef4317c71b6dc59e4d7a977.tar.gz
Added missing source reference to Genie parser
Diffstat (limited to 'vala/valagenieparser.vala')
-rw-r--r--vala/valagenieparser.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala
index 55dcaad7f..653320a14 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -3116,9 +3116,10 @@ public class Vala.Genie.Parser : CodeVisitor {
break;
}
var code_attrs = parse_attributes ();
+ var code_begin = get_location ();
string id = parse_identifier ();
- var ec = new ErrorCode (id);
+ var ec = new ErrorCode (id, get_src (code_begin));
set_attributes (ec, code_attrs);
if (accept (TokenType.ASSIGN)) {
ec.value = parse_expression ();