diff --git a/src/Draco.Compiler/Internal/Solver/Constraint.cs b/src/Draco.Compiler/Internal/Solver/Constraint.cs
index 82193de9d..75c9b8c19 100644
--- a/src/Draco.Compiler/Internal/Solver/Constraint.cs
+++ b/src/Draco.Compiler/Internal/Solver/Constraint.cs
@@ -1,6 +1,7 @@
using System;
using Draco.Compiler.Api.Diagnostics;
using Draco.Compiler.Internal.Binding.Tasks;
+using Draco.Compiler.Internal.Solver.Tasks;
namespace Draco.Compiler.Internal.Solver;
@@ -10,7 +11,7 @@ namespace Draco.Compiler.Internal.Solver;
/// The result type.
internal abstract class Constraint : IConstraint
{
- public BindingTaskCompletionSource CompletionSource { get; }
+ public SolverTaskCompletionSource CompletionSource { get; }
public ConstraintLocator Locator { get; }
protected Constraint(ConstraintSolver solver, ConstraintLocator locator)
diff --git a/src/Draco.Compiler/Internal/Solver/ConstraintSolver_Constraints.cs b/src/Draco.Compiler/Internal/Solver/ConstraintSolver_Constraints.cs
index 17f78baaf..f0ff06528 100644
--- a/src/Draco.Compiler/Internal/Solver/ConstraintSolver_Constraints.cs
+++ b/src/Draco.Compiler/Internal/Solver/ConstraintSolver_Constraints.cs
@@ -5,6 +5,7 @@
using System.Linq;
using Draco.Compiler.Api.Syntax;
using Draco.Compiler.Internal.Binding.Tasks;
+using Draco.Compiler.Internal.Solver.Tasks;
using Draco.Compiler.Internal.Symbols;
using Draco.Compiler.Internal.Utilities;
@@ -72,7 +73,7 @@ public bool TryDequeue(
/// The type that is constrained to be the same as .
/// The syntax that the constraint originates from.
/// The promise for the constraint added.
- public BindingTask SameType(TypeSymbol first, TypeSymbol second, SyntaxNode syntax)
+ public SolverTask SameType(TypeSymbol first, TypeSymbol second, SyntaxNode syntax)
{
var constraint = new SameTypeConstraint(this, ImmutableArray.Create(first, second), ConstraintLocator.Syntax(syntax));
this.Add(constraint);
@@ -86,7 +87,7 @@ public BindingTask SameType(TypeSymbol first, TypeSymbol second, SyntaxNod
/// The type assigned.
/// The syntax that the constraint originates from.
/// The promise for the constraint added.
- public BindingTask Assignable(TypeSymbol targetType, TypeSymbol assignedType, SyntaxNode syntax) =>
+ public SolverTask Assignable(TypeSymbol targetType, TypeSymbol assignedType, SyntaxNode syntax) =>
this.Assignable(targetType, assignedType, ConstraintLocator.Syntax(syntax));
///
@@ -96,7 +97,7 @@ public BindingTask Assignable(TypeSymbol targetType, TypeSymbol assignedTy
/// The type assigned.
/// The locator for the constraint.
/// The promise for the constraint added.
- public BindingTask Assignable(TypeSymbol targetType, TypeSymbol assignedType, ConstraintLocator locator)
+ public SolverTask Assignable(TypeSymbol targetType, TypeSymbol assignedType, ConstraintLocator locator)
{
var constraint = new AssignableConstraint(this, targetType, assignedType, locator);
this.Add(constraint);
@@ -110,7 +111,7 @@ public BindingTask Assignable(TypeSymbol targetType, TypeSymbol assignedTy
/// The alternative types to find the common type of.
/// The syntax that the constraint originates from.
/// The promise of the constraint added.
- public BindingTask CommonType(
+ public SolverTask CommonType(
TypeSymbol commonType,
ImmutableArray alternativeTypes,
SyntaxNode syntax) => this.CommonType(commonType, alternativeTypes, ConstraintLocator.Syntax(syntax));
@@ -122,7 +123,7 @@ public BindingTask CommonType(
/// The alternative types to find the common type of.
/// The locator for this constraint.
/// The promise of the constraint added.
- public BindingTask CommonType(
+ public SolverTask CommonType(
TypeSymbol commonType,
ImmutableArray alternativeTypes,
ConstraintLocator locator)
@@ -140,7 +141,7 @@ public BindingTask CommonType(
/// The type of the member.
/// The syntax that the constraint originates from.
/// The promise of the accessed member symbol.
- public BindingTask Member(
+ public SolverTask Member(
TypeSymbol accessedType,
string memberName,
out TypeSymbol memberType,
@@ -160,7 +161,7 @@ public BindingTask Member(
/// The return type.
/// The syntax that the constraint originates from.
/// The promise of the constraint.
- public BindingTask Call(
+ public SolverTask Call(
TypeSymbol calledType,
ImmutableArray