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