ICSharpCode.NRefactory.MonoCSharp.MethodData.Emit C# (CSharp) Method

Emit() public method

public Emit ( TypeDefinition parent ) : void
parent TypeDefinition
return void
		public void Emit (TypeDefinition parent)
		{
			DefineOverride (parent);

			method.ParameterInfo.ApplyAttributes (method, MethodBuilder);

			ToplevelBlock block = method.Block;
			if (block != null) {
				BlockContext bc = new BlockContext (method, block, method.ReturnType);
				if (block.Resolve (bc, method)) {
					debug_builder = member.Parent.CreateMethodSymbolEntry ();
					EmitContext ec = method.CreateEmitContext (MethodBuilder.GetILGenerator (), debug_builder);

					block.Emit (ec);
				}
			}
		}