Add missing extern

This commit is contained in:
Neil Fraser
2021-05-21 23:09:54 -07:00
committed by Neil Fraser
parent ecca5bf274
commit 17f9209f2f
10 changed files with 31 additions and 3 deletions

View File

@@ -12,6 +12,10 @@
*/
'use strict';
/**
* @name Blockly.utils.aria
* @namespace
*/
goog.provide('Blockly.utils.aria');

View File

@@ -7,12 +7,17 @@
/**
* @fileoverview Helper function for warning developers about deprecations.
* This method is not specific to Blockly.
* @author fenichel@google.com (Rachel Fenichel);
* @author fenichel@google.com (Rachel Fenichel)
*/
'use strict';
/**
* @name Blockly.utils.deprecation
* @namespace
*/
goog.provide('Blockly.utils.deprecation');
/**
* Warn developers that a function is deprecated.
* @param {string} functionName The name of the function.

View File

@@ -12,6 +12,10 @@
*/
'use strict';
/**
* @name Blockly.utils.IdGenerator
* @namespace
*/
goog.provide('Blockly.utils.IdGenerator');

View File

@@ -12,6 +12,10 @@
*/
'use strict';
/**
* @name Blockly.utils.KeyCodes
* @namespace
*/
goog.provide('Blockly.utils.KeyCodes');

View File

@@ -10,6 +10,10 @@
*/
'use strict';
/**
* @name Blockly.utils.object
* @namespace
*/
goog.provide('Blockly.utils.object');

View File

@@ -10,6 +10,10 @@
*/
'use strict';
/**
* @name Blockly.utils.toolbox
* @namespace
*/
goog.provide('Blockly.utils.toolbox');
/** @suppress {extraRequire} */

View File

@@ -20,6 +20,7 @@ goog.provide('Blockly.utils.userAgent');
goog.require('Blockly.utils.global');
/** @const {boolean} */
Blockly.utils.userAgent.IE;

View File

@@ -18,6 +18,7 @@
*/
goog.provide('Blockly.utils.xml');
/**
* Namespace for Blockly's XML.
*/

View File

@@ -13,6 +13,7 @@ goog.provide('Blockly');
goog.provide('Blockly.Generator');
goog.provide('Blockly.inputTypes');
goog.provide('Blockly.utils.global');
goog.provide('Blockly.utils.object');
goog.provide('Blockly.utils.string');
var Blockly;

View File

@@ -23,8 +23,8 @@ Blockly.setLocale = function (locale) {
// Override textToDomDocument and provide Node.js alternatives to DOMParser and
// XMLSerializer.
if (typeof Blockly.utils.global.document !== 'object') {
Blockly.utils.global.DOMParser = require("jsdom/lib/jsdom/living").DOMParser;
Blockly.utils.global.XMLSerializer = require("jsdom/lib/jsdom/living").XMLSerializer;
Blockly.utils.global.DOMParser = require('jsdom/lib/jsdom/living').DOMParser;
Blockly.utils.global.XMLSerializer = require('jsdom/lib/jsdom/living').XMLSerializer;
var doc = Blockly.utils.xml.textToDomDocument(
'<xml xmlns="https://developers.google.com/blockly/xml"></xml>');
Blockly.utils.xml.document = function() {