projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ac1205
)
tests/TreeBuilder.vala
author
Alan Knowles
<alan@roojs.com>
Thu, 25 Sep 2014 12:15:57 +0000
(20:15 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 25 Sep 2014 12:15:57 +0000
(20:15 +0800)
tests/TreeBuilder.vala
patch
|
blob
|
history
diff --git
a/tests/TreeBuilder.vala
b/tests/TreeBuilder.vala
index
2a368db
..
cad25db
100644
(file)
--- a/
tests/TreeBuilder.vala
+++ b/
tests/TreeBuilder.vala
@@
-11,10
+11,13
@@
namespace Palete {
public override void err (Vala.SourceReference? source, string message) {
errors++;
if (source == null) {
public override void err (Vala.SourceReference? source, string message) {
errors++;
if (source == null) {
+ return;
//stderr.printf ("My error: %s\n", message);
//stderr.printf ("My error: %s\n", message);
- } else {
-
- stderr.printf ("%s: My error: %s\n", source.to_string (), message);
+ }
+ if (source.
+ var line = source.begin.line;
+
+ stderr.printf ("%s: My error: %s\n", source.to_string (), message);
//Vala.Report.report_source (source);
//Vala.Report.report_source (source);
@@
-60,6
+63,7
@@
namespace Palete {
var source_file = new Vala.SourceFile (
context,
Vala.SourceFileType.SOURCE,
var source_file = new Vala.SourceFile (
context,
Vala.SourceFileType.SOURCE,
+ "~~~~~testfile.vala",
file.toSource()
);
//context.add_source_file (testcode);
file.toSource()
);
//context.add_source_file (testcode);