Updated TODO

Removed static marking of Module-level class and struct definitions
This commit is contained in:
Tristan B. Kildaire 2021-06-06 18:05:19 +02:00
parent 3a9a43b258
commit bffcaa0898
2 changed files with 4 additions and 8 deletions

View File

@ -1281,9 +1281,6 @@ public final class Parser
{
Clazz clazz = parseClass();
/* All classes declared at the Module level are static by default */
clazz.setModifierType(InitScope.STATIC);
/* Add the class definition to the program */
modulle.addStatement(clazz);
}
@ -1292,9 +1289,6 @@ public final class Parser
{
Struct ztruct = parseStruct();
/* All structs declared at the Module level are static by default */
ztruct.setModifierType(InitScope.STATIC);
/* Add the struct definition to the program */
modulle.addStatement(ztruct);
}

View File

@ -25,8 +25,10 @@ TODO List
## Typechecking
- [ ] Dependency generation
- [ ] Classes declared at the module level should be marked as static in `parse()` (not in `parseBody()` <- this is a note we don't do this)
- [ ] Structs declared at the module level should be marked as static in `parse()` (not in `parseBody()` <- this is a note we don't do this)
- [ ] Classes declared at the module level should be ~~marked~~ seen as static in `parse()` (not in `parseBody()` <- this is a note we don't do this)
- [ ] Structs declared at the module level should be marked as ~~marked~~ seen in `parse()` (not in `parseBody()` <- this is a note we don't do this)
- [ ] Functions (?) declared at the module level should be ~~marked~~ seen as static in `parse()` (not in `parseBody()` <- this is a note we don't do this)
- [ ] Variables declared at the module level should be marked as ~~marked~~ seen in `parse()` (not in `parseBody()` <- this is a note we don't do this)
# Future