/// <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)
/// <summary cref="Value.UpdateType(IRContext)"/> protected sealed override TypeNode UpdateType(IRContext context) => ComputeType(context);
private static TypeNode ComputeType(IRContext context) => context.VoidType;
public void AfterTransformation( IRContext context, Transformation transformation) { }
public void BeforeTransformation( IRContext context, Transformation transformation) { }
/// <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);