private void OnDocumentParseComplete(DocumentParseCompleteEventArgs args)
{
Debug.Assert(args != null, "Event arguments cannot be null");
EventHandler <DocumentParseCompleteEventArgs> handler = DocumentParseComplete;
if (handler != null)
{
handler(this, args);
}
#if DEBUG
RazorDebugHelpers.WriteDebugTree(FileName, args.GeneratorResults.Document, PartialParseResult.Rejected, args.SourceChange, this, args.TreeStructureChanged);
RazorDebugHelpers.WriteGeneratedCode(FileName, args.GeneratorResults.GeneratedCode);
#endif
}