Exemplo n.º 1
0
        /// <summary>
        /// Creates the lua code element.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="dte">The DTE.</param>
        /// <param name="name">The name.</param>
        /// <param name="node">The node.</param>
        /// <returns></returns>
        public static LuaCodeElement <T> CreateLuaCodeElement <T>(
            DTE dte, string name, Node node) where T : Node
        {
            LuaCodeElement <T> element = CreateLuaCodeElement <T>(dte, name, null, node);

            return(element);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates the lua code element.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="dte">The DTE.</param>
        /// <param name="name">The name.</param>
        /// <param name="parent">The parent.</param>
        /// <param name="node">The node.</param>
        /// <returns></returns>
        public static LuaCodeElement <T> CreateLuaCodeElement <T>(
            DTE dte, string name, CodeElement parent, Node node) where T : Node
        {
            var element = new LuaCodeElement <T>(dte, name, parent, node);

            return(element);
        }