Rhino.NativeGenerator.InitPrototypeId C# (CSharp) Method

InitPrototypeId() protected method

protected InitPrototypeId ( int id ) : void
id int
return void
		protected internal override void InitPrototypeId(int id)
		{
			string s;
			int arity;
			switch (id)
			{
				case Id_close:
				{
					arity = 1;
					s = "close";
					break;
				}

				case Id_next:
				{
					arity = 1;
					s = "next";
					break;
				}

				case Id_send:
				{
					arity = 0;
					s = "send";
					break;
				}

				case Id_throw:
				{
					arity = 0;
					s = "throw";
					break;
				}

				case Id___iterator__:
				{
					arity = 1;
					s = "__iterator__";
					break;
				}

				default:
				{
					throw new ArgumentException(id.ToString());
				}
			}
			InitPrototypeMethod(GENERATOR_TAG, id, s, arity);
		}