]> git.bts.cx Git - sun.git/blobdiff - runtime/src/sun/compiler/vm_generator.c
Groundwork for arrays
[sun.git] / runtime / src / sun / compiler / vm_generator.c
index 0309257792d04d4c0fb92d06991186ef1b1525b1..6a3cb19d42bd437a8238e613efd7ade23cd1c379 100644 (file)
@@ -288,7 +288,7 @@ static bool nodeTypeDefinesScope(SLTNodeType type) {
        switch (type) {
                case SLTNodeTypeModule:
                case SLTNodeTypeFunctionDefinition:
-               case SLTNodeTypeTypeDefinition:
+               case SLTNodeTypeUserDefinedTypeDefinition:
                case SLTNodeTypeForIteration:
                case SLTNodeTypeDoIteration:
                case SLTNodeTypeWhileIteration:
@@ -803,7 +803,7 @@ static SVMPointer generateExpressionInstructions(VMGeneratorOutputScope *generat
                        return r;
                }
 
-               case SLTNodeTypeTypeAccess:
+               case SLTNodeTypeMemberAccess:
                        generator_assert_msg(false, "not implemented: %s", sltNodeToString(node));
                        return -1;
 
@@ -1021,7 +1021,7 @@ static size_t generateModuleInstructions(VMGeneratorOutputScope *generator, SLTN
                for (SLTNode *n = node->moduleStatementsAndDefinitions; n != NULL; n = n->sequenceNext) {
                        switch (n->sequenceNode->type) {
                                //case SLTNodeTypeVariableDefinition:
-                               case SLTNodeTypeTypeDefinition:
+                               case SLTNodeTypeUserDefinedTypeDefinition:
                                case SLTNodeTypeFunctionDefinition:
                                        // Do nothing...
                                        break;