}
- public checkFile(JsRender.JsRender file)
+ public Gee.HashMap<int,string> checkFile(JsRender.JsRender file)
{
- this.checkString(JsRender.NodeToVala.mungeFile(file));
+ return this.checkString(JsRender.NodeToVala.mungeFile(file));
}
- public checkFile(JsRender.JsRender file, JsRender.Node node, string prop, string val)
+ public Gee.HashMap<int,string> checkFile(JsRender.JsRender file, JsRender.Node node, string prop, string val)
{
var old = node.props.get_value(prop);
var newval = "/*--VALACHECK-START--*/ " + val + " /*--VALACHECK-START--*/";
}
- public checkString(string contents)
+ public Gee.HashMap<int,string> checkString(string contents)
// init context:
context = new Vala.CodeContext ();
print("parse got errors");
((ValaSourceReport)context.report).dump();
Vala.CodeContext.pop ();
- return;
+ return this.report.line_errors;
}
print("check got errors");
((ValaSourceReport)context.report).dump();
Vala.CodeContext.pop ();
+ return this.report.line_errors;
return;
}
Vala.CodeContext.pop ();