[vala] Added missing source reference to Genie parser



commit 296447f2bd404492bef4317c71b6dc59e4d7a977
Author: Jamie McCracken <jamiemcc gnome org>
Date:   Mon Apr 13 11:55:50 2009 -0400

    Added missing source reference to Genie parser
---
 vala/valagenieparser.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala
index 55dcaad..653320a 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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]