Advertisement
rotrevrep

Untitled

Apr 19th, 2016
2,600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.51 KB | None | 0 0
  1. public void parse() {
  2.             if (parsing)
  3.                 return;
  4.             begin_parsing();
  5.             try {
  6.                 Thread.create<void>(() => {
  7.                     lock (context) {
  8.                         parsing = true;
  9.                         report.init();
  10.                         Vala.CodeContext.push (context);
  11.                         foreach (var file in context.get_source_files())
  12.                             if (file.get_nodes().size == 0)
  13.                                 parser.visit_source_file (file);
  14.                         context.check();
  15.                         Vala.CodeContext.pop();
  16.                         end_parsing (report);
  17.                         parsing = false;
  18.                     }
  19.                 }, false);
  20.             } catch {
  21.            
  22.             }
  23.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement