5. The method of claim 1 , wherein said generating a dependency graph from the first syntax tree with each node of the dependency graph corresponding to a code statement and having an assigned weight comprises: generating a dependency graph by following on variables resulting from each code statement of the first syntax tree; and assigning weights to the nodes of the dependency graph.
5. The method of claim 1 , wherein said generating a dependency graph from the first syntax tree with each node of the dependency graph corresponding to a code statement and having an assigned weight comprises: generating a dependency graph by following on variables resulting from each code statement of the first syntax tree; and assigning weights to the nodes of the dependency graph. 6. The method of claim 5 , wherein said assigning weights to the nodes of the dependency graph comprises: assigning a first weight to nodes of the dependency graph corresponding to code statements that start asynchronous operations; assigning a second weight to nodes of the dependency graph corresponding to code statements that await; and assigning a third weight to nodes of the dependency graph not assigned the first weight and not assigned the second weight.