Exemple #1
0
 /// <summary>
 /// Creates a new method instance.
 /// </summary>
 /// <param name="context">The context this method belongs to.</param>
 /// <param name="declaration">The associated declaration.</param>
 internal Method(
     IRContext context,
     in MethodDeclaration declaration)
Exemple #2
0
 /// <summary cref="Value.UpdateType(IRContext)"/>
 protected sealed override TypeNode UpdateType(IRContext context) =>
 ComputeType(context);
Exemple #3
0
 private static TypeNode ComputeType(IRContext context) =>
 context.VoidType;
Exemple #4
0
 public void AfterTransformation(
     IRContext context,
     Transformation transformation)
 {
 }
Exemple #5
0
 public void BeforeTransformation(
     IRContext context,
     Transformation transformation)
 {
 }
Exemple #6
0
 /// <summary>
 /// Computes the current type.
 /// </summary>
 /// <param name="context">The parent IR context.</param>
 /// <returns>The resolved type node.</returns>
 protected abstract TypeNode UpdateType(IRContext context);