public static void Visit([NotNull] this ParserVisitor self, [NotNull] ParserResults result)
 {
     result.Document.Accept(self);
     foreach (RazorError error in result.ParserErrors)
     {
         self.VisitError(error);
     }
     self.OnComplete();
 }
Esempio n. 2
0
        public static void Visit(this ParserVisitor self, ParserResults result)
        {
            if (self == null)
            {
                throw new ArgumentNullException("self");
            }
            if (result == null)
            {
                throw new ArgumentNullException("result");
            }

            result.Document.Accept(self);
            foreach (RazorError error in result.ParserErrors)
            {
                self.VisitError(error);
            }
            self.OnComplete();
        }