Exemplo n.º 1
0
        public override ILineObject Generate(GenerationEnvironment env)
        {
            List <ILineObject> ret = new List <ILineObject>();

            if (CheckInstance != null && CheckInstance.Length != 0)
            {
                //TODO fix this: set variable in owner, not this
                ret.Add(ActorVariableHelper.GenerateSet(CheckInstance, ThisExpr.Instance.MakeIndex("name")));
            }

            //get parent actor from table t
            ret.Add(ActorVariableHelper.GenerateSet("SYS_parent", new IdentifierExpr("t").MakeIndex("flag1")));
            return(new SimpleBlock(ret).Statement());
        }
Exemplo n.º 2
0
 public override ILineObject Generate(GenerationEnvironment env)
 {
     return(ActorVariableHelper.GenerateSet(Name, Value.Generate(env)));
 }