Jurassic.Compiler.DynamicILGenerator.DeclareVariable C# (CSharp) Method

DeclareVariable() public method

Declares a new local variable.
public DeclareVariable ( Type type, string name = null ) : ILLocalVariable
type System.Type The type of the local variable.
name string The name of the local variable. Can be null.
return ILLocalVariable
        public override ILLocalVariable DeclareVariable(Type type, string name = null)
        {
            var result = new DynamicILLocalVariable(this, this.localVariables.Count, type, name);
            this.localVariables.Add(result);
            this.signatureHelper.AddArgument(type, false);
            return result;
        }
DynamicILGenerator