Add readonly to C# methods and types that don't mutate
Also removes a few unnecessary temp variables
This commit is contained in:
parent
315c64282b
commit
71df6d66ae
26 changed files with 445 additions and 450 deletions
|
|
@ -4,7 +4,7 @@ using Microsoft.CodeAnalysis;
|
|||
|
||||
namespace Godot.SourceGenerators.Internal;
|
||||
|
||||
internal struct CallbacksData
|
||||
internal readonly struct CallbacksData
|
||||
{
|
||||
public CallbacksData(INamedTypeSymbol nativeTypeSymbol, INamedTypeSymbol funcStructSymbol)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue