- if (Regex.match_simple ("^left:", d)) {
- state = 1;
- if (left.size > 0 ){
- cfg.add(new Usage( left, right));
- }
- left = new Gee.ArrayList<string>();
- right = new Gee.ArrayList<string>();
- continue;
- }
- if (Regex.match_simple ("^right:", d)) {
- state = 2;
- continue;
- }
- if (state == 1) {
- //print("add left: " + d + "\n");
- left.add(d);
- continue;
- }
- //print("add Right: " + d + "\n");
- right.add(d);
- //Seed.quit();
-
- }
- if (left.size > 0 ){
- cfg.add(new Usage( left, right));
- }
- this.map = cfg;
-
- }
+ if (Regex.match_simple ("^left:", d)) {
+ state = 1;
+ if (left.size > 0 ){
+ cfg.add(new Usage( left, right));
+ }
+ left = new Gee.ArrayList<string>();
+ right = new Gee.ArrayList<string>();
+ continue;
+ }
+ if (Regex.match_simple ("^right:", d)) {
+ state = 2;
+ continue;
+ }
+ if (state == 1) {
+ //print("add left: " + d + "\n");
+ left.add(d);
+ continue;
+ }
+ //print("add Right: " + d + "\n");
+ right.add(d);
+ //Seed.quit();
+
+ }
+ if (left.size > 0 ){
+ cfg.add(new Usage( left, right));
+ }
+ this.map = cfg;
+
+ }
+
+
+ public void validateVala(
+ WindowState state,
+ string code,
+ string property,
+ string ptype,
+ JsRender.JsRender file,
+ JsRender.Node node
+ )
+ {
+
+ print("validate code (%s) %s\n", file.language, code);
+
+
+
+ if (file.language != "vala" ) { // not sure if we need to validate property
+ return;
+ }
+ // file.project , file.path, file.build_module, ""
+
+
+
+ //var cd = new JSCore.ClassDefinitionEmpty();
+ state.valasource.checkFileWithNodePropChange(
+ file,
+ node,
+ property,
+ ptype,
+ code
+ );
+