mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
* refactor(generators): Introduce LuaGenerator class, Order enum * refactor(generators): Use Order.* instead of .ORDER_* * refactor(generators): Don't rename luaGenerator
23 lines
548 B
JavaScript
23 lines
548 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2018 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Generating Lua for dynamic variable blocks.
|
|
*/
|
|
|
|
import * as goog from '../../closure/goog/goog.js';
|
|
goog.declareModuleId('Blockly.Lua.variablesDynamic');
|
|
|
|
import {luaGenerator} from '../lua.js';
|
|
import './variables.js';
|
|
|
|
|
|
// Lua is dynamically typed.
|
|
luaGenerator.forBlock['variables_get_dynamic'] =
|
|
luaGenerator.forBlock['variables_get'];
|
|
luaGenerator.forBlock['variables_set_dynamic'] =
|
|
luaGenerator.forBlock['variables_set'];
|