public CompilationUnit ParseCurrentMemberAsCompilationUnit(string fileContent)
 {
     System.IO.TextReader content = ExtractCurrentMethod(fileContent);
     if (content != null)
     {
         NR.IParser p = NR.ParserFactory.CreateParser(language, content);
         p.Parse();
         return(p.CompilationUnit);
     }
     else
     {
         return(null);
     }
 }
 NR.IParser ParseFile(string fileContent)
 {
     NR.IParser parser = NR.ParserFactory.CreateParser(language, new StringReader(fileContent));
     parser.Parse();
     if (parser.Errors.Count > 0)
     {
         ShowSourceCodeErrors(parser.Errors.ErrorOutput);
         parser.Dispose();
         return(null);
     }
     else
     {
         return(parser);
     }
 }