AGS.Plugin.Lua.CodeConvertPane.Enblock C# (CSharp) Метод

Enblock() приватный Метод

private Enblock ( SPAGS statement ) : SPAGS.Statement.Block
statement SPAGS
Результат SPAGS.Statement.Block
        SPAGS.Statement.Block Enblock(SPAGS.Statement statement)
        {
            if (statement is SPAGS.Statement.Block) return (SPAGS.Statement.Block)statement;
            SPAGS.Statement.Block newBlock = new SPAGS.Statement.Block(new SPAGS.Util.NameDictionary());
            newBlock.ChildStatements.Add(statement);
            return newBlock;
        }