/// <summary> /// Called after write operations. /// </summary> /// <param name="ctx"></param> protected virtual void LeaveNode(CodeEmitterContext ctx) { ctx.SetDictionaryValue("ParameterResolver", _parameterResolverSave); }
/// <summary> /// Called before any write operation. /// </summary> /// <param name="ctx"></param> protected virtual void EnterNode(CodeEmitterContext ctx) { _currentContext = ctx; SetArtifactResultData(_currentContext.ArtifactResultData); _parameterResolver = ctx.GetDictionaryValue("ParameterResolver") as ParameterResolver; if (_parameterResolver == null) { _parameterResolver = new ParameterResolver(); ctx.SetDictionaryValue("ParameterResolver", _parameterResolver); } _parameterResolverSave = _parameterResolver.Clone(); }