From d3352ac54d6137d540f0d40fe92518cac088a6aa Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Tue, 20 Mar 2018 11:23:55 -0700 Subject: [PATCH] Add JSDoc tags for ArgumentType & BlockType --- src/extension-support/argument-type.js | 23 +++++++++++++++++++++++ src/extension-support/block-type.js | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/src/extension-support/argument-type.js b/src/extension-support/argument-type.js index 0589e9fb6..538a04f5d 100644 --- a/src/extension-support/argument-type.js +++ b/src/extension-support/argument-type.js @@ -1,8 +1,31 @@ +/** + * Block argument types + * @enum {string} + */ const ArgumentType = { + /** + * Numeric value with angle picker + */ ANGLE: 'angle', + + /** + * Boolean value with hexagonal placeholder + */ BOOLEAN: 'Boolean', + + /** + * Numeric value with color picker + */ COLOR: 'color', + + /** + * Numeric value with text field + */ NUMBER: 'number', + + /** + * String value with text field + */ STRING: 'string' }; diff --git a/src/extension-support/block-type.js b/src/extension-support/block-type.js index 587f7d598..9a87b745f 100644 --- a/src/extension-support/block-type.js +++ b/src/extension-support/block-type.js @@ -1,8 +1,31 @@ +/** + * Types of block + * @enum {string} + */ const BlockType = { + /** + * Boolean reporter with hexagonal shape + */ BOOLEAN: 'Boolean', + + /** + * Command block + */ COMMAND: 'command', + + /** + * Specialized command block which may or may not run a child branch + */ CONDITIONAL: 'conditional', + + /** + * Hat block which conditionally starts a block stack + */ HAT: 'hat', + + /** + * General reporter with numeric or string value + */ REPORTER: 'reporter' };