示例#1
0
 public void createAndShowCodeStream(INode iNode)
 {
     O2Thread.mtaThread(
         () => {
         CodeStream = AstData_MethodStream.createO2CodeStream(TaintRules, MethodStreamFile, iNode);
         showCodeStream();
     });
 }
示例#2
0
 public void createAndShowCodeStream(INode iNode)
 {
     try
     {
         if (iNode != null)
         {
             CodeViewer.editor().caret(iNode.StartLocation.Line, iNode.StartLocation.Column);
             CodeViewer.editor().selectTextWithColor(iNode);
             var codeStream = AstData_MethodStream.createO2CodeStream(TaintRules, MethodStreamFile, iNode);
             //var codeStream = AstData_MethodStream.createO2CodeStream(MethodStreamFile,iNode);
             if (codeStream.hasPaths())
             {
                 showCodeStream(codeStream);
             }
         }
     }
     catch (Exception ex)
     {
         ex.log("in createAndShowCodeStream");
     }
 }