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 @@ -2063,13 +2063,15 @@ def visit_ClassDef (self, node):
20632063 # LHS is attribute or array element, we can't use it for representation or comparison
20642064 delayedAssigns .append (statement )
20652065
2066- elif type (statement ) == ast .Expression :
2067- # It's a class scoped expression
2068- self .visit (statement )
2069-
2070- elif self .getPragmaFromExpr (statement ):
2071- # It's a pragma
2072- self .visit (statement )
2066+ elif type (statement ) == ast .Expr :
2067+ if self .getPragmaFromExpr (statement ):
2068+ # It's a pragma
2069+ self .visit (statement )
2070+ else :
2071+ # It's a class scoped expression
2072+ self .emitSemiColon (index , False )
2073+ self .emit ('\n ' )
2074+ self .visit (statement )
20732075
20742076 self .emitSemiColon (index , False )
20752077 self .emit ('\n return cls;' )
You can’t perform that action at this time.
0 commit comments