Skip to content

Commit

Permalink
Update ClassBinder.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Nov 3, 2024
1 parent a32b6c7 commit ff3636c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Draco.Compiler/Internal/Binding/ClassBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace Draco.Compiler.Internal.Binding;

/// <summary>
/// Binds an in-source defined class.
/// </summary>
internal sealed class ClassBinder(Binder parent, TypeSymbol symbol) : Binder(parent)
{
public override TypeSymbol ContainingSymbol => this.symbol;
Expand All @@ -32,7 +35,7 @@ internal override void LookupLocal(LookupResult result, string name, ref LookupF
if (member.Name != name) continue;
if (!allowSymbol(member)) continue;
result.Add(member);
break;
// NOTE: We don't break here, because there are potentially multiple overloads
}
}
}

0 comments on commit ff3636c

Please sign in to comment.