diff options
author | Jürg Billeter <j@bitron.ch> | 2012-06-02 17:40:24 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2012-06-02 17:40:24 +0200 |
commit | 46ad2f001df736b78c2d1d6d38b688215a59bb80 (patch) | |
tree | cbe3cc0a0d052a7b93f8b837c6042a269fa45968 /vapigen | |
parent | 1b9d1aa6f7abeacb13ac8fa97bb8e7ede453aec1 (diff) | |
download | vala-46ad2f001df736b78c2d1d6d38b688215a59bb80.tar.gz |
Use SourceLocation in SourceReference
Diffstat (limited to 'vapigen')
-rw-r--r-- | vapigen/valagidlparser.vala | 2 | ||||
-rw-r--r-- | vapigen/valavapicheck.vala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala index f93784df0..5aad01468 100644 --- a/vapigen/valagidlparser.vala +++ b/vapigen/valagidlparser.vala @@ -139,7 +139,7 @@ public class Vala.GIdlParser : CodeVisitor { try { var modules = Idl.parse_file (source_file.filename); - current_source_reference = new SourceReference (source_file); + current_source_reference = new SourceReference (source_file, SourceLocation (null, 0, 0), SourceLocation (null, 0, 0)); foreach (weak IdlModule module in modules) { var ns = parse_module (module); diff --git a/vapigen/valavapicheck.vala b/vapigen/valavapicheck.vala index daa8776b9..509645f4b 100644 --- a/vapigen/valavapicheck.vala +++ b/vapigen/valavapicheck.vala @@ -137,7 +137,7 @@ class Vala.VAPICheck : Object { var symbol = tokens[0]; if (symbol.length > 0 && !_symbols.contains (symbol)) { - var src = new SourceReference (metadata, lineno, 1, lineno, (int)symbol.length); + var src = new SourceReference (metadata, SourceLocation (null, lineno, 1), SourceLocation (null, lineno, (int)symbol.length)); Report.error (src, "Symbol `%s' not found".printf (symbol)); } |