mirror of
https://github.com/google/blockly.git
synced 2026-01-20 07:17:10 +01:00
refactor(generators): Introduce PythonGenerator class, Order enum (#7163)
* refactor(generators): Introduce PhpGenerator class, Order enum * refactor(generators): Use Order.* instead of .ORDER_* * refactor(generators): Don't rename pythonGenerator
This commit is contained in:
committed by
GitHub
parent
26901654ea
commit
2f89c0dd09
@@ -11,10 +11,10 @@
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.Python.variablesDynamic');
|
||||
|
||||
import {pythonGenerator as Python} from '../python.js';
|
||||
import {pythonGenerator} from '../python.js';
|
||||
import './variables.js';
|
||||
|
||||
|
||||
// Python is dynamically typed.
|
||||
Python.forBlock['variables_get_dynamic'] = Python.forBlock['variables_get'];
|
||||
Python.forBlock['variables_set_dynamic'] = Python.forBlock['variables_set'];
|
||||
// pythonGenerator is dynamically typed.
|
||||
pythonGenerator.forBlock['variables_get_dynamic'] = pythonGenerator.forBlock['variables_get'];
|
||||
pythonGenerator.forBlock['variables_set_dynamic'] = pythonGenerator.forBlock['variables_set'];
|
||||
|
||||
Reference in New Issue
Block a user