Skip to content

Commit af0008c

Browse files
committed
Remove VariableKind in mrc_set_python_variable.ts. Use VariableKind from mrc_get_python_variable.ts.
1 parent f1dc222 commit af0008c

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/blocks/mrc_get_python_variable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import * as toolboxItems from '../toolbox/items';
4040

4141
export const BLOCK_NAME = 'mrc_get_python_variable';
4242

43-
enum VariableKind {
43+
export enum VariableKind {
4444
MODULE = 'module',
4545
CLASS = 'class',
4646
INSTANCE = 'instance',

src/blocks/mrc_set_python_variable.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import * as Blockly from 'blockly';
2424
import { Order } from 'blockly/python';
2525

26+
import { VariableKind } from './mrc_get_python_variable';
2627
import { getAllowedTypesForSetCheck } from './utils/python';
2728
import * as variable from './utils/variable';
2829
import { ExtendedPythonGenerator } from '../editor/extended_python_generator';
@@ -36,14 +37,6 @@ import * as toolboxItems from '../toolbox/items';
3637

3738
export 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-
4740
const FIELD_MODULE_OR_CLASS_NAME = 'MODULE_OR_CLASS';
4841
const FIELD_VARIABLE_NAME = 'VAR';
4942

0 commit comments

Comments
 (0)