Add readonly to C# methods and types that don't mutate

Also removes a few unnecessary temp variables
This commit is contained in:
Raul Santos 2022-07-07 17:58:13 +02:00
parent 315c64282b
commit 71df6d66ae
No known key found for this signature in database
GPG key ID: B532473AE3A803E4
26 changed files with 445 additions and 450 deletions

View file

@ -2,7 +2,7 @@ using System.Collections.Generic;
namespace Godot.SourceGenerators
{
internal struct MethodInfo
internal readonly struct MethodInfo
{
public MethodInfo(string name, PropertyInfo returnVal, MethodFlags flags,
List<PropertyInfo>? arguments,