Added import as and switch or and def null

This commit is contained in:
NeeEoo
2023-06-15 11:08:08 +02:00
parent b85cefea56
commit 87f2c1b062
4 changed files with 44 additions and 9 deletions
+3 -1
View File
@@ -114,8 +114,10 @@ class Printer {
return;
}
switch( #if hscriptPos e.e #else e #end ) {
case EImport(c):
case EImport(c, n):
add("import " + c);
if(n != null)
add(' as $n');
case EClass(name, fields, extend, interfaces):
add('class $name');
if (extend != null)