Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuinox committed Sep 30, 2024
1 parent 991e13d commit 73e6a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Draco.Compiler/Internal/Binding/BinderCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private ClassBinder BuildClassDeclarationBinder(ClassDeclarationSyntax syntax)
var classSymbol = parent.DeclaredSymbols
.OfType<SourceClassSymbol>()
.FirstOrDefault(member => member.DeclaringSyntax == syntax); // should we shove that in an helper ?
return new ClassBinder(parent, classSymbol);
return new ClassBinder(binder, classSymbol);

Check warning on line 111 in src/Draco.Compiler/Internal/Binding/BinderCache.cs

View workflow job for this annotation

GitHub Actions / tests-ubuntu-latest

Possible null reference argument for parameter 'symbol' in 'ClassBinder.ClassBinder(Binder parent, TypeSymbol symbol)'.

Check warning on line 111 in src/Draco.Compiler/Internal/Binding/BinderCache.cs

View workflow job for this annotation

GitHub Actions / tests-ubuntu-latest

Possible null reference argument for parameter 'symbol' in 'ClassBinder.ClassBinder(Binder parent, TypeSymbol symbol)'.

Check warning on line 111 in src/Draco.Compiler/Internal/Binding/BinderCache.cs

View workflow job for this annotation

GitHub Actions / tests-macOS-latest

Possible null reference argument for parameter 'symbol' in 'ClassBinder.ClassBinder(Binder parent, TypeSymbol symbol)'.

Check warning on line 111 in src/Draco.Compiler/Internal/Binding/BinderCache.cs

View workflow job for this annotation

GitHub Actions / tests-macOS-latest

Possible null reference argument for parameter 'symbol' in 'ClassBinder.ClassBinder(Binder parent, TypeSymbol symbol)'.
}


Expand Down

0 comments on commit 73e6a15

Please sign in to comment.