- Start off with `accessorType` set to its type's `.init` value

AccessorType

- Make the `.init` `UNKNOWN`

InitScope

- Make the `.init` `UNKNOWN`
This commit is contained in:
Tristan B. Velloza Kildaire 2024-03-06 21:40:17 +02:00
parent 8c55d451e4
commit fd7a7687db
1 changed files with 3 additions and 4 deletions

View File

@ -138,12 +138,12 @@ public class Statement
public enum AccessorType
{
PUBLIC, PRIVATE, PROTECTED, UNKNOWN
UNKNOWN, PUBLIC, PRIVATE, PROTECTED
}
public enum InitScope
{
VIRTUAL, STATIC, UNKNOWN
UNKNOWN, VIRTUAL, STATIC
}
public class Assignment : Statement
@ -166,8 +166,7 @@ public class Assignment : Statement
public class Entity : Statement
{
/* Accessor type */
// TODO: Should this really be set here? I mean it's a lot safer here
private AccessorType accessorType = AccessorType.PUBLIC;
private AccessorType accessorType;
/* Function/Modifier type */
private InitScope initScope;