chore: updates the names for parsing (#5778)

This commit is contained in:
alschmiedt
2021-12-02 17:52:33 -08:00
committed by GitHub
parent 0493011201
commit 719e0fbf38
2 changed files with 8 additions and 8 deletions

View File

@@ -197,7 +197,7 @@ exports.getScrollDeltaPixels = getScrollDeltaPixels;
const tokenizeInterpolation = function(message) {
deprecation.warn(
'Blockly.utils.tokenizeInterpolation', 'December 2021', 'December 2022',
'Blockly.parsing.tokenizeInterpolation');
'Blockly.utils.parsing.tokenizeInterpolation');
return parsing.tokenizeInterpolation(message);
};
exports.tokenizeInterpolation = tokenizeInterpolation;
@@ -215,7 +215,7 @@ exports.tokenizeInterpolation = tokenizeInterpolation;
const replaceMessageReferences = function(message) {
deprecation.warn(
'Blockly.utils.replaceMessageReferences', 'December 2021',
'December 2022', 'Blockly.parsing.replaceMessageReferences');
'December 2022', 'Blockly.utils.parsing.replaceMessageReferences');
return parsing.replaceMessageReferences(message);
};
exports.replaceMessageReferences = replaceMessageReferences;
@@ -232,7 +232,7 @@ exports.replaceMessageReferences = replaceMessageReferences;
const checkMessageReferences = function(message) {
deprecation.warn(
'Blockly.utils.checkMessageReferences', 'December 2021', 'December 2022',
'Blockly.parsing.checkMessageReferences');
'Blockly.utils.parsing.checkMessageReferences');
return parsing.checkMessageReferences(message);
};
exports.checkMessageReferences = checkMessageReferences;
@@ -363,7 +363,7 @@ exports.screenToWsCoordinates = screenToWsCoordinates;
const parseBlockColour = function(colour) {
deprecation.warn(
'Blockly.utils.parseBlockColour', 'December 2021', 'December 2022',
'Blockly.parsing.parseBlockColour');
'Blockly.utils.parsing.parseBlockColour');
return parsing.parseBlockColour(colour);
};
exports.parseBlockColour = parseBlockColour;

View File

@@ -169,7 +169,7 @@ const tokenizeInterpolationInternal = function(
* @param {string} message Text which might contain string table references and
* interpolation tokens.
* @return {!Array<string|number>} Array of strings and numbers.
* @alias Blockly.parsing.tokenizeInterpolation
* @alias Blockly.utils.parsing.tokenizeInterpolation
*/
const tokenizeInterpolation = function(message) {
return tokenizeInterpolationInternal(message, true);
@@ -183,7 +183,7 @@ exports.tokenizeInterpolation = tokenizeInterpolation;
* @param {string|?} message Message, which may be a string that contains
* string table references.
* @return {string} String with message references replaced.
* @alias Blockly.parsing.replaceMessageReferences
* @alias Blockly.utils.parsing.replaceMessageReferences
*/
const replaceMessageReferences = function(message) {
if (typeof message !== 'string') {
@@ -202,7 +202,7 @@ exports.replaceMessageReferences = replaceMessageReferences;
* @param {string} message Text which might contain string table references.
* @return {boolean} True if all message references have matching values.
* Otherwise, false.
* @alias Blockly.parsing.checkMessageReferences
* @alias Blockly.utils.parsing.checkMessageReferences
*/
const checkMessageReferences = function(message) {
let validSoFar = true;
@@ -232,7 +232,7 @@ exports.checkMessageReferences = checkMessageReferences;
* @return {{hue: ?number, hex: string}} An object containing the colour as
* a #RRGGBB string, and the hue if the input was an HSV hue value.
* @throws {Error} If the colour cannot be parsed.
* @alias Blockly.parsing.parseBlockColour
* @alias Blockly.utils.parsing.parseBlockColour
*/
const parseBlockColour = function(colour) {
const dereferenced =