From fe4bff70da5c19fbcc9a1bf1473ed7fe344bd8bb Mon Sep 17 00:00:00 2001 From: Abby Date: Wed, 17 Jul 2019 11:52:14 -0700 Subject: [PATCH] Add @public annotation --- core/utils/xml.js | 4 ++++ core/variables.js | 1 + 2 files changed, 5 insertions(+) diff --git a/core/utils/xml.js b/core/utils/xml.js index 2897dc435..87854714c 100644 --- a/core/utils/xml.js +++ b/core/utils/xml.js @@ -41,6 +41,7 @@ Blockly.utils.xml.NAME_SPACE = 'https://developers.google.com/blockly/xml'; * Create DOM element for XML. * @param {string} tagName Name of DOM element. * @return {!Element} New DOM element. + * @public */ Blockly.utils.xml.createElement = function(tagName) { // TODO (#2082): Support node.js. @@ -51,6 +52,7 @@ Blockly.utils.xml.createElement = function(tagName) { * Create text element for XML. * @param {string} text Text content. * @return {!Node} New DOM node. + * @public */ Blockly.utils.xml.createTextNode = function(text) { // TODO (#2082): Support node.js. @@ -63,6 +65,7 @@ Blockly.utils.xml.createTextNode = function(text) { * @param {string} text XML string. * @return {Document} The DOM document. * @throws if XML doesn't parse. + * @public */ Blockly.utils.xml.textToDomDocument = function(text) { var oParser = new DOMParser(); @@ -74,6 +77,7 @@ Blockly.utils.xml.textToDomDocument = function(text) { * Currently the text format is fairly ugly: all one line with no whitespace. * @param {!Element} dom A tree of XML elements. * @return {string} Text representation. + * @public */ Blockly.utils.xml.domToText = function(dom) { // TODO (#2082): Support node.js. diff --git a/core/variables.js b/core/variables.js index be2606e9c..26f117182 100644 --- a/core/variables.js +++ b/core/variables.js @@ -503,6 +503,7 @@ Blockly.Variables.getOrCreateVariablePackage = function(workspace, id, opt_name, * Only used if lookup by ID fails. * @return {Blockly.VariableModel} The variable corresponding to the given ID * or name + type combination, or null if not found. + * @public */ Blockly.Variables.getVariable = function(workspace, id, opt_name, opt_type) { var potentialVariableMap = workspace.getPotentialVariableMap();