Skip to content

Commit

Permalink
Remove all Google Closure Compiler annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChadBurggraf committed Dec 2, 2016
1 parent 153fe38 commit a5a1ebe
Show file tree
Hide file tree
Showing 42 changed files with 0 additions and 114 deletions.
6 changes: 0 additions & 6 deletions src/isomorphic/classic/class/ReactClass.js
Expand Up @@ -169,7 +169,6 @@ var ReactClassInterface: {[key: string]: SpecPolicy} = {
* }
*
* @return {ReactComponent}
* @nosideeffects
* @required
*/
render: 'DEFINE_ONCE',
Expand Down Expand Up @@ -621,7 +620,6 @@ function mergeIntoWithNoDuplicateKeys(one, two) {
* @param {function} one Function to invoke first.
* @param {function} two Function to invoke second.
* @return {function} Function that invokes the two argument functions.
* @private
*/
function createMergedResultFunction(one, two) {
return function mergedResult() {
Expand All @@ -645,7 +643,6 @@ function createMergedResultFunction(one, two) {
* @param {function} one Function to invoke first.
* @param {function} two Function to invoke second.
* @return {function} Function that invokes the two argument functions.
* @private
*/
function createChainedFunction(one, two) {
return function chainedFunction() {
Expand Down Expand Up @@ -737,8 +734,6 @@ var ReactClassMixin = {
/**
* Checks whether or not this composite component is mounted.
* @return {boolean} True if mounted, false otherwise.
* @protected
* @final
*/
isMounted: function() {
return this.updater.isMounted(this);
Expand All @@ -765,7 +760,6 @@ var ReactClass = {
*
* @param {object} spec Class specification (which must define `render`).
* @return {function} Component constructor function.
* @public
*/
createClass: function(spec) {
// To keep our warnings more understandable, we'll use a little hack here to
Expand Down
4 changes: 0 additions & 4 deletions src/isomorphic/classic/element/ReactDOMFactories.js
Expand Up @@ -15,8 +15,6 @@ var ReactElement = require('ReactElement');

/**
* Create a factory that creates HTML tag elements.
*
* @private
*/
var createDOMFactory = ReactElement.createFactory;
if (__DEV__) {
Expand All @@ -27,8 +25,6 @@ if (__DEV__) {
/**
* Creates a mapping from supported HTML tags to `ReactDOMComponent` classes.
* This is also accessible via `React.DOM`.
*
* @public
*/
var ReactDOMFactories = {
a: createDOMFactory('a'),
Expand Down
1 change: 0 additions & 1 deletion src/isomorphic/classic/element/ReactElement.js
Expand Up @@ -373,7 +373,6 @@ ReactElement.cloneElement = function(element, config, children) {
* See https://facebook.github.io/react/docs/react-api.html#isvalidelement
* @param {?object} object
* @return {boolean} True if `object` is a valid component.
* @final
*/
ReactElement.isValidElement = function(object) {
return (
Expand Down
4 changes: 0 additions & 4 deletions src/isomorphic/modern/class/ReactComponent.js
Expand Up @@ -54,8 +54,6 @@ ReactComponent.prototype.isReactComponent = {};
* @param {object|function} partialState Next partial state or function to
* produce next partial state to be merged with current state.
* @param {?function} callback Called after state is updated.
* @final
* @protected
*/
ReactComponent.prototype.setState = function(partialState, callback) {
invariant(
Expand All @@ -82,8 +80,6 @@ ReactComponent.prototype.setState = function(partialState, callback) {
* `componentWillUpdate` and `componentDidUpdate`.
*
* @param {?function} callback Called after update is complete.
* @final
* @protected
*/
ReactComponent.prototype.forceUpdate = function(callback) {
this.updater.enqueueForceUpdate(this);
Expand Down
2 changes: 0 additions & 2 deletions src/isomorphic/modern/class/ReactNoopUpdateQueue.js
Expand Up @@ -37,8 +37,6 @@ var ReactNoopUpdateQueue = {
* Checks whether or not this composite component is mounted.
* @param {ReactClass} publicInstance The instance we want to test.
* @return {boolean} True if mounted, false otherwise.
* @protected
* @final
*/
isMounted: function(publicInstance) {
return false;
Expand Down
4 changes: 0 additions & 4 deletions src/renderers/art/ReactART.js
Expand Up @@ -100,7 +100,6 @@ const ContainerMixin = assign({}, ReactMultiChild, {
*
* @param {ReactComponent} child Component to move.
* @param {number} toIndex Destination index of the element.
* @protected
*/
moveChild: function(child, afterNode, toIndex, lastIndex) {
const childNode = child._mountImage;
Expand All @@ -112,7 +111,6 @@ const ContainerMixin = assign({}, ReactMultiChild, {
*
* @param {ReactComponent} child Component to create.
* @param {object} childNode ART node to insert.
* @protected
*/
createChild: function(child, afterNode, childNode) {
child._mountImage = childNode;
Expand All @@ -123,7 +121,6 @@ const ContainerMixin = assign({}, ReactMultiChild, {
* Removes a child component.
*
* @param {ReactComponent} child Child to remove.
* @protected
*/
removeChild: function(child) {
child._mountImage.eject();
Expand All @@ -144,7 +141,6 @@ const ContainerMixin = assign({}, ReactMultiChild, {
* @param {?object} nextChildren.
* @param {ReactReconcileTransaction} transaction
* @internal
* @override {ReactMultiChild.updateChildren}
*/
updateChildren: function(nextChildren, transaction, context) {
this._updateChildren(nextChildren, transaction, context);
Expand Down
2 changes: 0 additions & 2 deletions src/renderers/dom/shared/escapeTextContentForBrowser.js
Expand Up @@ -39,7 +39,6 @@
// code copied and modified from escape-html
/**
* Module variables.
* @private
*/

var matchHtmlRegExp = /["'&<>]/;
Expand All @@ -49,7 +48,6 @@ var matchHtmlRegExp = /["'&<>]/;
*
* @param {string} string The string to escape for inserting into HTML
* @return {string}
* @public
*/

function escapeHtml(string) {
Expand Down
Expand Up @@ -28,7 +28,6 @@ var AnimationEventInterface = {
* @param {object} dispatchConfig Configuration used to dispatch this event.
* @param {string} dispatchMarker Marker identifying the event target.
* @param {object} nativeEvent Native browser event.
* @extends {SyntheticEvent}
*/
function SyntheticAnimationEvent(
dispatchConfig,
Expand Down
Expand Up @@ -31,7 +31,6 @@ var ClipboardEventInterface = {
* @param {object} dispatchConfig Configuration used to dispatch this event.
* @param {string} dispatchMarker Marker identifying the event target.
* @param {object} nativeEvent Native browser event.
* @extends {SyntheticUIEvent}
*/
function SyntheticClipboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
Expand Down
Expand Up @@ -25,7 +25,6 @@ var CompositionEventInterface = {
* @param {object} dispatchConfig Configuration used to dispatch this event.
* @param {string} dispatchMarker Marker identifying the event target.
* @param {object} nativeEvent Native browser event.
* @extends {SyntheticUIEvent}
*/
function SyntheticCompositionEvent(
dispatchConfig,
Expand Down
Expand Up @@ -25,7 +25,6 @@ var DragEventInterface = {
* @param {object} dispatchConfig Configuration used to dispatch this event.
* @param {string} dispatchMarker Marker identifying the event target.
* @param {object} nativeEvent Native browser event.
* @extends {SyntheticUIEvent}
*/
function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
Expand Down
Expand Up @@ -25,7 +25,6 @@ var FocusEventInterface = {
* @param {object} dispatchConfig Configuration used to dispatch this event.
* @param {string} dispatchMarker Marker identifying the event target.
* @param {object} nativeEvent Native browser event.
* @extends {SyntheticUIEvent}
*/
function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
Expand Down
Expand Up @@ -26,7 +26,6 @@ var InputEventInterface = {
* @param {object} dispatchConfig Configuration used to dispatch this event.
* @param {string} dispatchMarker Marker identifying the event target.
* @param {object} nativeEvent Native browser event.
* @extends {SyntheticUIEvent}
*/
function SyntheticInputEvent(
dispatchConfig,
Expand Down
Expand Up @@ -73,7 +73,6 @@ var KeyboardEventInterface = {
* @param {object} dispatchConfig Configuration used to dispatch this event.
* @param {string} dispatchMarker Marker identifying the event target.
* @param {object} nativeEvent Native browser event.
* @extends {SyntheticUIEvent}
*/
function SyntheticKeyboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
Expand Down
Expand Up @@ -69,7 +69,6 @@ var MouseEventInterface = {
* @param {object} dispatchConfig Configuration used to dispatch this event.
* @param {string} dispatchMarker Marker identifying the event target.
* @param {object} nativeEvent Native browser event.
* @extends {SyntheticUIEvent}
*/
function SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
Expand Down
Expand Up @@ -34,7 +34,6 @@ var TouchEventInterface = {
* @param {object} dispatchConfig Configuration used to dispatch this event.
* @param {string} dispatchMarker Marker identifying the event target.
* @param {object} nativeEvent Native browser event.
* @extends {SyntheticUIEvent}
*/
function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
Expand Down
Expand Up @@ -28,7 +28,6 @@ var TransitionEventInterface = {
* @param {object} dispatchConfig Configuration used to dispatch this event.
* @param {string} dispatchMarker Marker identifying the event target.
* @param {object} nativeEvent Native browser event.
* @extends {SyntheticEvent}
*/
function SyntheticTransitionEvent(
dispatchConfig,
Expand Down
Expand Up @@ -48,7 +48,6 @@ var UIEventInterface = {
* @param {object} dispatchConfig Configuration used to dispatch this event.
* @param {string} dispatchMarker Marker identifying the event target.
* @param {object} nativeEvent Native browser event.
* @extends {SyntheticEvent}
*/
function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
Expand Down
Expand Up @@ -47,7 +47,6 @@ var WheelEventInterface = {
* @param {object} dispatchConfig Configuration used to dispatch this event.
* @param {string} dispatchMarker Marker identifying the event target.
* @param {object} nativeEvent Native browser event.
* @extends {SyntheticMouseEvent}
*/
function SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
Expand Down
3 changes: 0 additions & 3 deletions src/renderers/dom/stack/client/ReactDOMComponent.js
Expand Up @@ -673,7 +673,6 @@ ReactDOMComponent.Mixin = {
* Iterating over object properties is faster than iterating over arrays.
* @see http://jsperf.com/obj-vs-arr-iteration
*
* @private
* @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
* @param {object} props
* @return {string} Markup of opening tag.
Expand Down Expand Up @@ -732,7 +731,6 @@ ReactDOMComponent.Mixin = {
/**
* Creates markup for the content between the tags.
*
* @private
* @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
* @param {object} props
* @param {object} context
Expand Down Expand Up @@ -914,7 +912,6 @@ ReactDOMComponent.Mixin = {
* do not change for a given reconciliation.
* TODO: Benchmark areas that can be improved with caching.
*
* @private
* @param {object} lastProps
* @param {object} nextProps
* @param {?DOMElement} node
Expand Down
1 change: 0 additions & 1 deletion src/renderers/dom/stack/client/ReactMount.js
Expand Up @@ -166,7 +166,6 @@ function batchedMountComponentIntoNode(
*
* @param {ReactComponent} instance React component instance.
* @param {DOMElement} container DOM element to unmount from.
* @final
* @internal
* @see {ReactMount.unmountComponentAtNode}
*/
Expand Down
2 changes: 0 additions & 2 deletions src/renderers/dom/stack/client/ReactReconcileTransaction.js
Expand Up @@ -128,8 +128,6 @@ function ReactReconcileTransaction(useCreateElement) {
var Mixin = {
/**
* @see Transaction
* @abstract
* @final
* @return {array<object>} List of operation wrap procedures.
* TODO: convert to array<TransactionWrapper>
*/
Expand Down
2 changes: 0 additions & 2 deletions src/renderers/dom/stack/client/wrappers/ReactDOMSelect.js
Expand Up @@ -32,7 +32,6 @@ var valuePropNames = ['value', 'defaultValue'];

/**
* Validation function for `value` and `defaultValue`.
* @private
*/
function checkSelectPropTypes(inst, props) {
var owner = inst._currentElement._owner;
Expand Down Expand Up @@ -72,7 +71,6 @@ function checkSelectPropTypes(inst, props) {
* @param {ReactDOMComponent} inst
* @param {boolean} multiple
* @param {*} propValue A stringable (with `multiple`, a list of stringables).
* @private
*/
function updateOptions(inst, multiple, propValue) {
var options = ReactDOMComponentTree.getNodeFromInstance(inst).options;
Expand Down
Expand Up @@ -49,8 +49,6 @@ function ReactServerRenderingTransaction(renderToStaticMarkup) {
var Mixin = {
/**
* @see Transaction
* @abstract
* @final
* @return {array} Empty list of operation wrap procedures.
*/
getTransactionWrappers: function() {
Expand Down
2 changes: 0 additions & 2 deletions src/renderers/dom/stack/server/ReactServerUpdateQueue.js
Expand Up @@ -51,8 +51,6 @@ class ReactServerUpdateQueue {
* Checks whether or not this composite component is mounted.
* @param {ReactClass} publicInstance The instance we want to test.
* @return {boolean} True if mounted, false otherwise.
* @protected
* @final
*/
isMounted(publicInstance: ReactComponent<any, any, any>): boolean {
return false;
Expand Down
1 change: 0 additions & 1 deletion src/renderers/native/ReactNativeMount.js
Expand Up @@ -215,7 +215,6 @@ var ReactNativeMount = {
*
* @param {ReactComponent} instance React component instance.
* @param {string} containerID ID of container we're removing from.
* @final
* @internal
* @see {ReactNativeMount.unmountComponentAtNode}
*/
Expand Down
2 changes: 0 additions & 2 deletions src/renderers/native/ReactNativeReconcileTransaction.js
Expand Up @@ -73,8 +73,6 @@ function ReactNativeReconcileTransaction() {
var Mixin = {
/**
* @see Transaction
* @abstract
* @final
* @return {array<object>} List of operation wrap procedures.
* TODO: convert to array<TransactionWrapper>
*/
Expand Down
1 change: 0 additions & 1 deletion src/renderers/native/createReactNativeComponentClass.js
Expand Up @@ -23,7 +23,6 @@ type ReactNativeBaseComponentViewConfig = {

/**
* @param {string} config iOS View configuration.
* @private
*/
var createReactNativeComponentClass = function(
viewConfig: ReactNativeBaseComponentViewConfig
Expand Down
4 changes: 0 additions & 4 deletions src/renderers/shared/shared/event/EventPluginHub.js
Expand Up @@ -30,7 +30,6 @@ var eventQueue = null;
*
* @param {?object} event Synthetic event to be dispatched.
* @param {boolean} simulated If the event is simulated (changes exn behavior)
* @private
*/
var executeDispatchesAndRelease = function(event, simulated) {
if (event) {
Expand Down Expand Up @@ -92,8 +91,6 @@ function shouldPreventMouseEvent(name, type, props) {
* default, the listener is simply invoked.
*
* Each plugin that is injected into `EventsPluginHub` is immediately operable.
*
* @public
*/
var EventPluginHub = {

Expand All @@ -104,7 +101,6 @@ var EventPluginHub = {

/**
* @param {array} InjectedEventPluginOrder
* @public
*/
injectEventPluginOrder: EventPluginRegistry.injectEventPluginOrder,

Expand Down
5 changes: 0 additions & 5 deletions src/renderers/shared/shared/event/EventPluginRegistry.js
Expand Up @@ -41,8 +41,6 @@ var namesToPlugins: NamesToPlugins = {};

/**
* Recomputes the plugin list using the injected plugins and plugin ordering.
*
* @private
*/
function recomputePluginOrdering(): void {
if (!eventPluginOrder) {
Expand Down Expand Up @@ -90,7 +88,6 @@ function recomputePluginOrdering(): void {
* @param {object} dispatchConfig Dispatch configuration for the event.
* @param {object} PluginModule Plugin publishing the event.
* @return {boolean} True if the event was successfully published.
* @private
*/
function publishEventForPlugin(
dispatchConfig: DispatchConfig,
Expand Down Expand Up @@ -134,7 +131,6 @@ function publishEventForPlugin(
*
* @param {string} registrationName Registration name to add.
* @param {object} PluginModule Plugin publishing the event.
* @private
*/
function publishRegistrationName(
registrationName: string,
Expand Down Expand Up @@ -294,7 +290,6 @@ var EventPluginRegistry = {

/**
* Exposed for unit testing.
* @private
*/
_resetEventPlugins: function(): void {
eventPluginOrder = null;
Expand Down

0 comments on commit a5a1ebe

Please sign in to comment.