/// <summary> /// Declares a (potentially new) method. /// </summary> /// <param name="methodBase">The method to declare.</param> /// <returns>The declared method reference.</returns> public Method DeclareMethod(MethodBase methodBase) => methodBase != null ? CodeGenerator.DeclareMethod(methodBase) : throw Location.GetArgumentNullException(nameof(methodBase));
/// <summary> /// Constructs a new basic block. /// </summary> /// <param name="codeGenerator">The parent code generator.</param> /// <param name="builder">The current basic block builder.</param> private Block(CodeGenerator codeGenerator, BasicBlock.Builder builder) { CodeGenerator = codeGenerator; Builder = builder; }