File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ import * as toolboxItems from '../toolbox/items';
4040
4141export const BLOCK_NAME = 'mrc_get_python_variable' ;
4242
43- enum VariableKind {
43+ export enum VariableKind {
4444 MODULE = 'module' ,
4545 CLASS = 'class' ,
4646 INSTANCE = 'instance' ,
Original file line number Diff line number Diff line change 2323import * as Blockly from 'blockly' ;
2424import { Order } from 'blockly/python' ;
2525
26+ import { VariableKind } from './mrc_get_python_variable' ;
2627import { getAllowedTypesForSetCheck } from './utils/python' ;
2728import * as variable from './utils/variable' ;
2829import { ExtendedPythonGenerator } from '../editor/extended_python_generator' ;
@@ -36,14 +37,6 @@ import * as toolboxItems from '../toolbox/items';
3637
3738export const BLOCK_NAME = 'mrc_set_python_variable' ;
3839
39- // TODO(lizlooney): Consider combining VariableKind here with VariableKind in
40- // mrc_get_python_variable.ts. They are identical.
41- enum VariableKind {
42- MODULE = 'module' ,
43- CLASS = 'class' ,
44- INSTANCE = 'instance' ,
45- }
46-
4740const FIELD_MODULE_OR_CLASS_NAME = 'MODULE_OR_CLASS' ;
4841const FIELD_VARIABLE_NAME = 'VAR' ;
4942
You can’t perform that action at this time.
0 commit comments