Xlat() protected method

protected Xlat ( SuiteStatement suite ) : void
suite SuiteStatement
return void
Beispiel #1
0
        private void GeneratePropertyGetter(Decorated getter)
        {
            var def      = (FunctionDef)getter.Statement;
            var mgen     = new MethodGenerator(def, null, def.parameters, false, gen);
            var comments = ConvertFirstStringToComments(def.body.stmts);

            gen.CurrentMemberComments.AddRange(comments);
            mgen.Xlat(def.body);
        }
Beispiel #2
0
        private void GeneratePropertySetter(Statement setter)
        {
            if (setter == null)
            {
                return;
            }
            var def      = (FunctionDef)setter;
            var mgen     = new MethodGenerator(def, null, def.parameters, false, async, types, gen);
            var comments = ConvertFirstStringToComments(def.body.stmts);

            gen.CurrentMemberComments.AddRange(comments);
            mgen.Xlat(def.body);
        }