File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -248,12 +248,12 @@ export class ExtendedPythonGenerator extends PythonGenerator {
248248 exportedBlocks . push ( callFunctionBlock ) ;
249249 }
250250
251- const allVariables = workspace . getAllVariables ( ) ;
251+ const allVariables = workspace . getVariableMap ( ) . getAllVariables ( ) ;
252252 for ( const variableModel of allVariables ) {
253253 // Only variables that are used outside of functions are exported. (I'm not sure if this is
254254 // the right choice, since all blockly variables are global variables.)
255255 let exported = false ;
256- const variableUsesById = workspace . getVariableUsesById ( variableModel . getId ( ) )
256+ const variableUsesById = workspace . getVariableMap ( ) . getVariableUsesById ( variableModel . getId ( ) )
257257 if ( variableUsesById . length === 0 ) {
258258 continue ;
259259 }
You can’t perform that action at this time.
0 commit comments