/// <summary>
        /// Pushes the new method.
        /// </summary>
        public void PushNewMethod(string name, Type returnType, params ParameterSyntax[] parameters)
        {
            var emitterMethodInfo = new EmitterMethodInfo(ParseTypeName(returnType), parameters)
            {
                Name = name
            };

            methods.Push(emitterMethodInfo);
        }
 /// <summary>
 /// Pushes the new method.
 /// </summary>
 public void PushNewMethod(string name, Type returnType, params ParameterSyntax[] parameters)
 {
     var emitterMethodInfo = new EmitterMethodInfo(ParseTypeName(returnType), parameters) { Name = name };
     methods.Push(emitterMethodInfo);
 }