Skip to content

Commit

Permalink
Update BinderCache.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Nov 3, 2024
1 parent 91db04d commit 498fd58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Draco.Compiler/Internal/Binding/BinderCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ private ClassBinder BuildClassDeclarationBinder(ClassDeclarationSyntax syntax)
{
Debug.Assert(syntax.Parent is not null);
var binder = this.GetBinder(syntax.Parent);

// Search for the function in the parents container
// For that we unwrap from the injected import layer(s)
var parent = UnwrapFromImportBinder(binder);
var classSymbol = parent.DeclaredSymbols
.OfType<SourceClassSymbol>()
Expand Down

0 comments on commit 498fd58

Please sign in to comment.