react-native/Libraries
Peter Janak de8a370e02 Fixing jsdoc parsing of functions that are defined over multiple lines (Fixes #410)
Summary:
As it was implemented, the jsdoc parser would look only the first non-blank line immediately preceding a function declaration. However, the line that was set as the beginning of a function declaration was where the opening bracket (`{`) was. This is insufficient for functions whose definitions span multiple lines. For example, this declaration would not find the comments above it:

```
/**
 * Clones rows
 **/
cloneWithRows(
       dataBlob: Array<any> | {[key: string]: any},
       rowIdentities: ?Array<string>
   ): ListViewDataSource {
...
}
```

With this change, the parser will first check if we have a closing parenthesis. If we do and don't have a matching open parenthesis we continue moving up the lines until we find it. Then we set previous line to be the line before that, the true beginning of the function declaration.
Closes https://github.com/facebook/react-native/pull/360
Github Author: Peter Janak <pjanak@nhl.com>

Test Plan: Run the website
2015-04-04 09:56:16 -08:00
..
ActionSheetIOS (Xcode) Set indent=2 in all xcodeproj files. 2015-04-01 17:14:45 -08:00
AdSupport (Xcode) Set indent=2 in all xcodeproj files. 2015-04-01 17:14:45 -08:00
Animation Changed LayoutAnimation to use ms instead of seconds for consistency 2015-03-30 06:31:42 -08:00
AppRegistry flowify some Libraries 2015-03-24 13:27:00 -08:00
AppStateIOS [ReactNative] Document AppStateIOS 2015-03-25 14:24:41 -08:00
BatchedBridge flowify a few more Libraries 2015-03-26 10:13:38 -08:00
CameraRoll flowify some Libraries 2015-03-25 11:09:54 -08:00
Components Added constraint of child type to touchablewithoutfeedback 2015-04-04 09:15:21 -08:00
CustomComponents Fixing jsdoc parsing of functions that are defined over multiple lines (Fixes #410) 2015-04-04 09:56:16 -08:00
Device flowify some Libraries 2015-03-25 11:09:54 -08:00
Fetch [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
Geolocation (Xcode) Set indent=2 in all xcodeproj files. 2015-04-01 17:14:45 -08:00
Image (Xcode) Set indent=2 in all xcodeproj files. 2015-04-01 17:14:45 -08:00
Interaction flowify a few more Libraries 2015-03-26 10:13:38 -08:00
JavaScriptAppEngine [react_native] JS files from D1961099: Format stack trace on native side 2015-04-02 14:55:58 -08:00
LinkingIOS [ReactNative][docs] LinkingIOS 2015-03-29 11:22:40 -08:00
Network (Xcode) Set indent=2 in all xcodeproj files. 2015-04-01 17:14:45 -08:00
Picker [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
Portal [ReactNative] JS files for D1947217 2015-03-27 13:48:41 -08:00
PushNotificationIOS (Xcode) Set indent=2 in all xcodeproj files. 2015-04-01 17:14:45 -08:00
RCTTest [ReactNative] Unfork RKRootView 2015-04-02 07:12:42 -08:00
RCTWebSocketDebugger [ReactNative] Unfork RKRootView 2015-04-02 07:12:42 -08:00
RKBackendNode Flowify a bunch of Libraries 2015-03-24 18:22:05 -08:00
ReactIOS [react-native] Nicer error for undefined or string tag names 2015-04-02 16:40:24 -08:00
Storage [ReactNative] Expanded license on js files 2015-03-23 13:17:54 -08:00
StyleSheet Flowify Libraries/StyleSheet and Libraries/Text 2015-03-24 16:22:59 -08:00
Text (Xcode) Set indent=2 in all xcodeproj files. 2015-04-01 17:14:45 -08:00
Utilities Fixing jsdoc parsing of functions that are defined over multiple lines (Fixes #410) 2015-04-04 09:56:16 -08:00
Vibration (Xcode) Set indent=2 in all xcodeproj files. 2015-04-01 17:14:45 -08:00
react-native [react-native] Add React.addons.createFragment 2015-03-28 15:10:34 -08:00
vendor [ReactNative] PanResponder documentation 2015-03-25 19:25:10 -08:00