Files
blockly/generators/lua/variables_dynamic.js
Christopher Allen a11419d6b7 refactor(generators): Introduce LuaGenerator class, Order enum (#7161)
* refactor(generators): Introduce LuaGenerator class, Order enum

* refactor(generators): Use Order.* instead of .ORDER_*

* refactor(generators): Don't rename luaGenerator
2023-06-14 09:11:37 -07:00

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'];