Skip to content

Commit

Permalink
Update ConstraintLocator.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Nov 4, 2023
1 parent 018322b commit 13b905a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Draco.Compiler/Internal/Solver/ConstraintLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ internal abstract class ConstraintLocator
/// <returns>The locator that will point point wherever the locator of the constraint would point to.</returns>
public static ConstraintLocator Constraint(IConstraint constraint) => new ReferenceConstraintLocator(constraint);

/// <summary>
/// Creates a constraint locator based on a constraint promise.
/// </summary>
/// <param name="promise">The promise to base the locator on.</param>
/// <returns>The locator that will point point wherever the locator of the promises constraint would point to.</returns>
public static ConstraintLocator Promise(IConstraintPromise promise) => Constraint(promise.Constraint);

/// <summary>
/// Locates information for the constraint.
/// </summary>
Expand Down Expand Up @@ -97,7 +90,7 @@ public override void Locate(Diagnostic.Builder diagnostic) =>
private sealed class WithRelatedInfoConstraintLocator : ConstraintLocator
{
private readonly ConstraintLocator underlying;
private DiagnosticRelatedInformation relatedInfo;
private readonly DiagnosticRelatedInformation relatedInfo;

public WithRelatedInfoConstraintLocator(
ConstraintLocator underlying,
Expand Down

0 comments on commit 13b905a

Please sign in to comment.