/// <summary> /// Internal method for firing the handleEvent method /// </summary> /// <param name="evt"></param> /// <param name="retVal"></param> /// <returns></returns> internal bool _fireEvent( ref ScriptCompilerEvent evt, out object retVal ) { retVal = null; if ( this.OnCompilerEvent != null ) return this.OnCompilerEvent( this, ref evt, out retVal ); return false; }
/// <summary> /// Called when an event occurs during translation, return true if handled /// </summary> /// <remarks> /// This function is called from the translators when an event occurs that /// that can be responded to. Often this is overriding names, or it can be a request for /// custom resource creation. /// </remarks> /// <param name="compiler">A reference to the compiler</param> /// <param name="evt">The event object holding information about the event to be processed</param> /// <param name="retVal">A possible return value from handlers</param> /// <returns>True if the handler processed the event</returns> public virtual bool HandleEvent( ScriptCompiler compiler, ref ScriptCompilerEvent evt, out object retVal ) { retVal = null; return false; }
/// <see cref="ScriptCompiler._fireEvent(ref ScriptCompilerEvent, out object)"/> internal bool _fireEvent( ref ScriptCompilerEvent evt ) { object o; return _fireEvent( ref evt, out o ); }
/// <summary> /// Called when an event occurs during translation, return true if handled /// </summary> /// <remarks> /// This function is called from the translators when an event occurs that /// that can be responded to. Often this is overriding names, or it can be a request for /// custom resource creation. /// </remarks> /// <param name="compiler">A reference to the compiler</param> /// <param name="evt">The event object holding information about the event to be processed</param> /// <param name="retVal">A possible return value from handlers</param> /// <returns>True if the handler processed the event</returns> public virtual bool HandleEvent(ScriptCompiler compiler, ref ScriptCompilerEvent evt, out object retVal) { retVal = null; return(false); }