public override void Run()
        {
            ClassDefinition scriptClass = UtilitiesModule.GetScriptClass(this.Context);

            if (scriptClass != null)
            {
                scriptClass.Merge(this.GetContextFieldDeclaration());
            }
        }
Ejemplo n.º 2
0
        public override void Run()
        {
            ClassDefinition scriptClass = UtilitiesModule.GetScriptClass(this.Context);

            if (scriptClass != null)
            {
                Method method = (Method)scriptClass.Members["Run"];
                ExpressionStatement existing = this.LastExpressionStatement(method);
                if ((existing != null) && !this.IsVoid(existing.Expression))
                {
                    existing.ParentNode.Replace(existing, new ReturnStatement(existing.Expression));
                }
            }
        }
 public IEntity GetScriptClassType() =>
 this.GetEntity(UtilitiesModule.GetScriptClass(this.Context));