Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System.Data.SqlXml / System / Xml / Xsl / XsltOld / Event.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="Event.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>                                                                
5 // <owner current="true" primary="true">Microsoft</owner>
6 //------------------------------------------------------------------------------
7
8 namespace System.Xml.Xsl.XsltOld {
9     using Res = System.Xml.Utils.Res;
10     using System;
11     using System.Diagnostics;
12     using System.Xml;
13     using System.Xml.XPath;
14     using System.Xml.Xsl.XsltOld.Debugger;
15
16     internal abstract class Event {
17         public virtual void ReplaceNamespaceAlias(Compiler compiler) {}        
18         public abstract bool Output(Processor processor, ActionFrame frame);
19
20         internal void OnInstructionExecute(Processor processor) {
21             Debug.Assert(processor.Debugger != null, "We don't generate calls this function if ! debugger");
22             Debug.Assert(DbgData.StyleSheet != null, "We call this function from *EventDbg only");
23             processor.OnInstructionExecute();
24         }
25
26         internal virtual DbgData DbgData { get { return DbgData.Empty; } }
27     }
28 }