Ejemplo n.º 1
0
 /// <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));
Ejemplo n.º 2
0
 /// <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;
 }