function isAllowed(kind) {
			switch (kind) {
				case "loop":
					return allowLoop;
				case "switch":
					return allowSwitch;
				default:
					return false;
			}
		}
Checks whether the label of a given kind is allowed or not.
@param {string} kind A kind to check.
@returns {boolean} `true` if the kind is allowed.