File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
transcrypt/modules/org/transcrypt Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -2053,13 +2053,15 @@ def visit_ClassDef (self, node):
20532053 # LHS is attribute or array element, we can't use it for representation or comparison
20542054 delayedAssigns .append (statement )
20552055
2056- elif type (statement ) == ast .Expression :
2057- # It's a class scoped expression
2058- self .visit (statement )
2059-
2060- elif self .getPragmaFromExpr (statement ):
2061- # It's a pragma
2062- self .visit (statement )
2056+ elif type (statement ) == ast .Expr :
2057+ if self .getPragmaFromExpr (statement ):
2058+ # It's a pragma
2059+ self .visit (statement )
2060+ else :
2061+ # It's a class scoped expression
2062+ self .emitSemiColon (index , False )
2063+ self .emit ('\n ' )
2064+ self .visit (statement )
20632065
20642066 self .emitSemiColon (index , False )
20652067 self .emit ('\n return cls;' )
You can’t perform that action at this time.
0 commit comments