mirror of https://github.com/tbklang/tlang.git
Updated TODO
Removed static marking of Module-level class and struct definitions
This commit is contained in:
parent
3a9a43b258
commit
bffcaa0898
|
@ -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);
|
||||
}
|
||||
|
|
6
todo1.md
6
todo1.md
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue