sproutit-sproutcore 1.0.126 → 1.0.203

Sign up to get free protection for your applications and to get access to all the features.
Files changed (282) hide show
  1. data/Rakefile +22 -7
  2. data/VERSION.yml +2 -2
  3. data/vendor/github_gem_lint.rb +22 -0
  4. data/vendor/jsdoc/README.txt +151 -0
  5. data/vendor/jsdoc/app/frame/Chain.js +102 -0
  6. data/vendor/jsdoc/app/frame/Dumper.js +144 -0
  7. data/vendor/jsdoc/app/frame/Hash.js +47 -0
  8. data/vendor/jsdoc/app/frame/Link.js +142 -0
  9. data/vendor/jsdoc/app/frame/Namespace.js +10 -0
  10. data/vendor/jsdoc/app/frame/Opt.js +134 -0
  11. data/vendor/jsdoc/app/frame/Reflection.js +26 -0
  12. data/vendor/jsdoc/app/frame/String.js +93 -0
  13. data/vendor/jsdoc/app/frame/Testrun.js +129 -0
  14. data/vendor/jsdoc/app/frame.js +33 -0
  15. data/vendor/jsdoc/app/handlers/FOODOC.js +26 -0
  16. data/vendor/jsdoc/app/handlers/XMLDOC/DomReader.js +159 -0
  17. data/vendor/jsdoc/app/handlers/XMLDOC/XMLDoc.js +16 -0
  18. data/vendor/jsdoc/app/handlers/XMLDOC/XMLParse.js +292 -0
  19. data/vendor/jsdoc/app/handlers/XMLDOC.js +26 -0
  20. data/vendor/jsdoc/app/lib/JSDOC/DocComment.js +200 -0
  21. data/vendor/jsdoc/app/lib/JSDOC/DocTag.js +294 -0
  22. data/vendor/jsdoc/app/lib/JSDOC/JsDoc.js +162 -0
  23. data/vendor/jsdoc/app/lib/JSDOC/JsPlate.js +100 -0
  24. data/vendor/jsdoc/app/lib/JSDOC/Lang.js +144 -0
  25. data/vendor/jsdoc/app/lib/JSDOC/Parser.js +109 -0
  26. data/vendor/jsdoc/app/lib/JSDOC/PluginManager.js +33 -0
  27. data/vendor/jsdoc/app/lib/JSDOC/Symbol.js +681 -0
  28. data/vendor/jsdoc/app/lib/JSDOC/SymbolSet.js +226 -0
  29. data/vendor/jsdoc/app/lib/JSDOC/TextStream.js +41 -0
  30. data/vendor/jsdoc/app/lib/JSDOC/Token.js +18 -0
  31. data/vendor/jsdoc/app/lib/JSDOC/TokenReader.js +332 -0
  32. data/vendor/jsdoc/app/lib/JSDOC/TokenStream.js +133 -0
  33. data/vendor/jsdoc/app/lib/JSDOC/Util.js +32 -0
  34. data/vendor/jsdoc/app/lib/JSDOC/Walker.js +453 -0
  35. data/vendor/jsdoc/app/lib/JSDOC.js +98 -0
  36. data/vendor/jsdoc/app/main.js +74 -0
  37. data/vendor/jsdoc/app/plugins/commentSrcJson.js +19 -0
  38. data/vendor/jsdoc/app/plugins/frameworkPrototype.js +16 -0
  39. data/vendor/jsdoc/app/plugins/functionCall.js +10 -0
  40. data/vendor/jsdoc/app/plugins/publishSrcHilite.js +62 -0
  41. data/vendor/jsdoc/app/plugins/sproutcoreTags.js +26 -0
  42. data/vendor/jsdoc/app/plugins/symbolLink.js +9 -0
  43. data/vendor/jsdoc/app/plugins/tagParamConfig.js +31 -0
  44. data/vendor/jsdoc/app/plugins/tagSynonyms.js +43 -0
  45. data/vendor/jsdoc/app/run.js +346 -0
  46. data/vendor/jsdoc/app/t/TestDoc.js +144 -0
  47. data/vendor/jsdoc/app/t/runner.js +13 -0
  48. data/vendor/jsdoc/app/test/addon.js +24 -0
  49. data/vendor/jsdoc/app/test/anon_inner.js +14 -0
  50. data/vendor/jsdoc/app/test/augments.js +31 -0
  51. data/vendor/jsdoc/app/test/augments2.js +26 -0
  52. data/vendor/jsdoc/app/test/borrows.js +41 -0
  53. data/vendor/jsdoc/app/test/borrows2.js +23 -0
  54. data/vendor/jsdoc/app/test/config.js +22 -0
  55. data/vendor/jsdoc/app/test/constructs.js +18 -0
  56. data/vendor/jsdoc/app/test/encoding.js +10 -0
  57. data/vendor/jsdoc/app/test/encoding_other.js +12 -0
  58. data/vendor/jsdoc/app/test/functions_anon.js +39 -0
  59. data/vendor/jsdoc/app/test/functions_nested.js +33 -0
  60. data/vendor/jsdoc/app/test/global.js +13 -0
  61. data/vendor/jsdoc/app/test/globals.js +25 -0
  62. data/vendor/jsdoc/app/test/ignore.js +10 -0
  63. data/vendor/jsdoc/app/test/inner.js +16 -0
  64. data/vendor/jsdoc/app/test/jsdoc_test.js +477 -0
  65. data/vendor/jsdoc/app/test/lend.js +33 -0
  66. data/vendor/jsdoc/app/test/memberof.js +20 -0
  67. data/vendor/jsdoc/app/test/memberof_constructor.js +15 -0
  68. data/vendor/jsdoc/app/test/name.js +19 -0
  69. data/vendor/jsdoc/app/test/namespace_nested.js +23 -0
  70. data/vendor/jsdoc/app/test/nocode.js +13 -0
  71. data/vendor/jsdoc/app/test/oblit_anon.js +20 -0
  72. data/vendor/jsdoc/app/test/overview.js +20 -0
  73. data/vendor/jsdoc/app/test/param_inline.js +37 -0
  74. data/vendor/jsdoc/app/test/params_optional.js +8 -0
  75. data/vendor/jsdoc/app/test/prototype.js +17 -0
  76. data/vendor/jsdoc/app/test/prototype_nested.js +9 -0
  77. data/vendor/jsdoc/app/test/prototype_oblit.js +13 -0
  78. data/vendor/jsdoc/app/test/prototype_oblit_constructor.js +24 -0
  79. data/vendor/jsdoc/app/test/public.js +10 -0
  80. data/vendor/jsdoc/app/test/shared.js +42 -0
  81. data/vendor/jsdoc/app/test/shared2.js +2 -0
  82. data/vendor/jsdoc/app/test/shortcuts.js +22 -0
  83. data/vendor/jsdoc/app/test/static_this.js +13 -0
  84. data/vendor/jsdoc/app/test/synonyms.js +23 -0
  85. data/vendor/jsdoc/app/test/tosource.js +23 -0
  86. data/vendor/jsdoc/app/test/variable_redefine.js +14 -0
  87. data/vendor/jsdoc/app/test.js +304 -0
  88. data/vendor/jsdoc/changes.txt +47 -0
  89. data/vendor/jsdoc/conf/sample.conf +31 -0
  90. data/vendor/jsdoc/java/build.xml +36 -0
  91. data/vendor/jsdoc/java/build_1.4.xml +36 -0
  92. data/vendor/jsdoc/java/classes/js.jar +0 -0
  93. data/vendor/jsdoc/java/src/JsDebugRun.java +21 -0
  94. data/vendor/jsdoc/java/src/JsRun.java +21 -0
  95. data/vendor/jsdoc/jsdebug.jar +0 -0
  96. data/vendor/jsdoc/jsrun.jar +0 -0
  97. data/vendor/jsdoc/t/TestDoc.js +144 -0
  98. data/vendor/jsdoc/t/runner.js +13 -0
  99. data/vendor/jsdoc/templates/jsdoc/publish.js +166 -0
  100. data/vendor/jsdoc/templates/jsdoc/static/default.css +162 -0
  101. data/vendor/jsdoc/templates/jsdoc/static/header.html +2 -0
  102. data/vendor/jsdoc/templates/jsdoc/static/index.html +19 -0
  103. data/vendor/jsdoc/templates/sproutcore/publish.js +333 -0
  104. data/vendor/jsdoc/templates/sproutcore/static/default.css +212 -0
  105. data/vendor/jsdoc/templates/sproutcore/static/header.html +2 -0
  106. data/vendor/jsdoc/templates/sproutcore/static/index.html +19 -0
  107. data/vendor/jsdoc/test/addon.js +24 -0
  108. data/vendor/jsdoc/test/anon_inner.js +14 -0
  109. data/vendor/jsdoc/test/augments.js +31 -0
  110. data/vendor/jsdoc/test/augments2.js +26 -0
  111. data/vendor/jsdoc/test/borrows.js +41 -0
  112. data/vendor/jsdoc/test/borrows2.js +23 -0
  113. data/vendor/jsdoc/test/config.js +22 -0
  114. data/vendor/jsdoc/test/constructs.js +18 -0
  115. data/vendor/jsdoc/test/encoding.js +10 -0
  116. data/vendor/jsdoc/test/encoding_other.js +12 -0
  117. data/vendor/jsdoc/test/functions_anon.js +39 -0
  118. data/vendor/jsdoc/test/functions_nested.js +33 -0
  119. data/vendor/jsdoc/test/global.js +13 -0
  120. data/vendor/jsdoc/test/globals.js +25 -0
  121. data/vendor/jsdoc/test/ignore.js +10 -0
  122. data/vendor/jsdoc/test/inner.js +16 -0
  123. data/vendor/jsdoc/test/jsdoc_test.js +477 -0
  124. data/vendor/jsdoc/test/lend.js +33 -0
  125. data/vendor/jsdoc/test/memberof.js +20 -0
  126. data/vendor/jsdoc/test/memberof_constructor.js +15 -0
  127. data/vendor/jsdoc/test/name.js +19 -0
  128. data/vendor/jsdoc/test/namespace_nested.js +23 -0
  129. data/vendor/jsdoc/test/nocode.js +13 -0
  130. data/vendor/jsdoc/test/oblit_anon.js +20 -0
  131. data/vendor/jsdoc/test/overview.js +20 -0
  132. data/vendor/jsdoc/test/param_inline.js +37 -0
  133. data/vendor/jsdoc/test/params_optional.js +8 -0
  134. data/vendor/jsdoc/test/prototype.js +17 -0
  135. data/vendor/jsdoc/test/prototype_nested.js +9 -0
  136. data/vendor/jsdoc/test/prototype_oblit.js +13 -0
  137. data/vendor/jsdoc/test/prototype_oblit_constructor.js +24 -0
  138. data/vendor/jsdoc/test/public.js +10 -0
  139. data/vendor/jsdoc/test/shared.js +42 -0
  140. data/vendor/jsdoc/test/shared2.js +2 -0
  141. data/vendor/jsdoc/test/shortcuts.js +22 -0
  142. data/vendor/jsdoc/test/static_this.js +13 -0
  143. data/vendor/jsdoc/test/synonyms.js +23 -0
  144. data/vendor/jsdoc/test/tosource.js +23 -0
  145. data/vendor/jsdoc/test/variable_redefine.js +14 -0
  146. data/vendor/jsdoc/test.js +304 -0
  147. data/vendor/yui-compressor/yuicompressor-2.4.2.jar +0 -0
  148. metadata +170 -145
  149. data/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Preview.pdf +0 -0
  150. data/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Thumbnail.tiff +0 -0
  151. data/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/data.plist +0 -14378
  152. data/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image10.png +0 -0
  153. data/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image11.png +0 -0
  154. data/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image13.png +0 -0
  155. data/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image14.png +0 -0
  156. data/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image8.png +0 -0
  157. data/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image9.tiff +0 -0
  158. data/frameworks/sproutcore/design/CollectionView State Charts.graffle +0 -4848
  159. data/frameworks/sproutcore/design/Design Charts.graffle +0 -18232
  160. data/frameworks/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Preview.pdf +0 -0
  161. data/frameworks/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Thumbnail.tiff +0 -0
  162. data/frameworks/sproutcore/design/SproutCore Design Template.graffle/data.plist +0 -1452
  163. data/frameworks/sproutcore/design/SproutCore Design Template.graffle/image8.png +0 -0
  164. data/frameworks/sproutcore/design/TestRunner Design.graffle/QuickLook/Preview.pdf +0 -0
  165. data/frameworks/sproutcore/design/TestRunner Design.graffle/QuickLook/Thumbnail.tiff +0 -0
  166. data/frameworks/sproutcore/design/TestRunner Design.graffle/data.plist +0 -24187
  167. data/frameworks/sproutcore/design/TestRunner Design.graffle/image10.png +0 -0
  168. data/frameworks/sproutcore/design/TestRunner Design.graffle/image11.png +0 -0
  169. data/frameworks/sproutcore/design/TestRunner Design.graffle/image13.png +0 -0
  170. data/frameworks/sproutcore/design/TestRunner Design.graffle/image15.png +0 -0
  171. data/frameworks/sproutcore/design/TestRunner Design.graffle/image16.png +0 -0
  172. data/frameworks/sproutcore/design/TestRunner Design.graffle/image17.png +0 -0
  173. data/frameworks/sproutcore/design/TestRunner Design.graffle/image18.png +0 -0
  174. data/frameworks/sproutcore/design/TestRunner Design.graffle/image19.png +0 -0
  175. data/frameworks/sproutcore/design/TestRunner Design.graffle/image22.tiff +0 -0
  176. data/frameworks/sproutcore/design/TestRunner Design.graffle/image23.png +0 -0
  177. data/frameworks/sproutcore/design/TestRunner Design.graffle/image24.png +0 -0
  178. data/frameworks/sproutcore/design/TestRunner Design.graffle/image25.png +0 -0
  179. data/frameworks/sproutcore/design/TestRunner Design.graffle/image30.png +0 -0
  180. data/frameworks/sproutcore/design/TestRunner Design.graffle/image31.png +0 -0
  181. data/frameworks/sproutcore/design/TestRunner Design.graffle/image8.png +0 -0
  182. data/frameworks/sproutcore/design/TestRunner Design.graffle/image9.png +0 -0
  183. data/frameworks/sproutcore/frameworks/runtime/tests/core/inspect.js +0 -27
  184. data/frameworks/sproutcore/themes/standard_theme/Source/Panel.drawit/Data +0 -0
  185. data/frameworks/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Preview.jpg +0 -0
  186. data/frameworks/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Thumbnail.jpg +0 -0
  187. data/frameworks/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/Data +0 -0
  188. data/frameworks/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Preview.jpg +0 -0
  189. data/frameworks/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Thumbnail.jpg +0 -0
  190. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/10.png +0 -0
  191. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/100.png +0 -0
  192. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/102.png +0 -0
  193. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/110.png +0 -0
  194. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/120.png +0 -0
  195. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/127.png +0 -0
  196. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/18.png +0 -0
  197. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/19.png +0 -0
  198. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/2.png +0 -0
  199. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/24.png +0 -0
  200. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/26.png +0 -0
  201. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/27.png +0 -0
  202. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/28.png +0 -0
  203. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/29.png +0 -0
  204. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/30.png +0 -0
  205. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/31.png +0 -0
  206. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/33.png +0 -0
  207. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/37.png +0 -0
  208. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/41.png +0 -0
  209. data/frameworks/sproutcore/themes/standard_theme/Source/icons/16/99.png +0 -0
  210. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/10.png +0 -0
  211. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/100.png +0 -0
  212. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/102.png +0 -0
  213. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/110.png +0 -0
  214. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/120.png +0 -0
  215. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/127.png +0 -0
  216. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/18.png +0 -0
  217. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/19.png +0 -0
  218. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/2.png +0 -0
  219. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/24.png +0 -0
  220. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/26.png +0 -0
  221. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/27.png +0 -0
  222. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/28.png +0 -0
  223. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/29.png +0 -0
  224. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/30.png +0 -0
  225. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/31.png +0 -0
  226. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/33.png +0 -0
  227. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/37.png +0 -0
  228. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/41.png +0 -0
  229. data/frameworks/sproutcore/themes/standard_theme/Source/icons/24/99.png +0 -0
  230. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/10.png +0 -0
  231. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/100.png +0 -0
  232. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/102.png +0 -0
  233. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/110.png +0 -0
  234. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/120.png +0 -0
  235. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/127.png +0 -0
  236. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/18.png +0 -0
  237. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/19.png +0 -0
  238. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/2.png +0 -0
  239. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/24.png +0 -0
  240. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/26.png +0 -0
  241. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/27.png +0 -0
  242. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/28.png +0 -0
  243. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/29.png +0 -0
  244. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/30.png +0 -0
  245. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/31.png +0 -0
  246. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/33.png +0 -0
  247. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/37.png +0 -0
  248. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/41.png +0 -0
  249. data/frameworks/sproutcore/themes/standard_theme/Source/icons/32/99.png +0 -0
  250. data/frameworks/sproutcore/themes/standard_theme/Source/icons/48/10.png +0 -0
  251. data/frameworks/sproutcore/themes/standard_theme/Source/icons/48/18.png +0 -0
  252. data/frameworks/sproutcore/themes/standard_theme/Source/icons/48/19.png +0 -0
  253. data/frameworks/sproutcore/themes/standard_theme/Source/icons/48/2.png +0 -0
  254. data/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/Data +0 -0
  255. data/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Preview.jpg +0 -0
  256. data/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Thumbnail.jpg +0 -0
  257. data/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/Data +0 -0
  258. data/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Preview.jpg +0 -0
  259. data/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Thumbnail.jpg +0 -0
  260. data/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x-2.psd +0 -0
  261. data/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x.psd +0 -0
  262. data/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-sprite.psd +0 -0
  263. data/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-ysprite.psd +0 -0
  264. data/frameworks/sproutcore/themes/standard_theme/Source/shared-icons.psd +0 -0
  265. data/frameworks/sproutcore/themes/standard_theme/Source/sproutcore-logo.psd +0 -0
  266. data/frameworks/sproutcore/themes/standard_theme/Source/sticky-note.psd +0 -0
  267. data/lib/thor/.autotest +0 -7
  268. data/lib/thor/spec/fixtures/task.thor +0 -10
  269. data/lib/thor/spec/options_spec.rb +0 -271
  270. data/lib/thor/spec/ordered_hash_spec.rb +0 -84
  271. data/lib/thor/spec/spec.opts +0 -1
  272. data/lib/thor/spec/spec_helper.rb +0 -30
  273. data/lib/thor/spec/task_spec.rb +0 -11
  274. data/lib/thor/spec/tasks_spec.rb +0 -28
  275. data/lib/thor/spec/thor_runner_spec.rb +0 -194
  276. data/lib/thor/spec/thor_spec.rb +0 -206
  277. data/lib/thor/spec/util_spec.rb +0 -99
  278. data/lib/thor/thor.gemspec +0 -29
  279. data/spec/buildtasks/build/copy_spec.rb +0 -60
  280. data/spec/buildtasks/build/spec_helper.rb +0 -36
  281. data/spec/buildtasks/manifest/catalog_spec.rb +0 -48
  282. data/spec/buildtasks/manifest/hide_buildfiles_spec.rb +0 -125
@@ -0,0 +1,133 @@
1
+ if (typeof JSDOC == "undefined") JSDOC = {};
2
+
3
+ /**
4
+ @constructor
5
+ */
6
+ JSDOC.TokenStream = function(tokens) {
7
+ this.tokens = (tokens || []);
8
+ this.rewind();
9
+ }
10
+
11
+ /**
12
+ @constructor
13
+ @private
14
+ */
15
+ function VoidToken(/**String*/type) {
16
+ this.toString = function() {return "<VOID type=\""+type+"\">"};
17
+ this.is = function(){return false;}
18
+ }
19
+
20
+ JSDOC.TokenStream.prototype.rewind = function() {
21
+ this.cursor = -1;
22
+ }
23
+
24
+ /**
25
+ @type JSDOC.Token
26
+ */
27
+ JSDOC.TokenStream.prototype.look = function(/**Number*/n, /**Boolean*/considerWhitespace) {
28
+ if (typeof n == "undefined") n = 0;
29
+
30
+ if (considerWhitespace == true) {
31
+ if (this.cursor+n < 0 || this.cursor+n > this.tokens.length) return {};
32
+ return this.tokens[this.cursor+n];
33
+ }
34
+ else {
35
+ var count = 0;
36
+ var i = this.cursor;
37
+
38
+ while (true) {
39
+ if (i < 0) return new JSDOC.Token("", "VOID", "START_OF_STREAM");
40
+ else if (i > this.tokens.length) return new JSDOC.Token("", "VOID", "END_OF_STREAM");
41
+
42
+ if (i != this.cursor && (this.tokens[i] === undefined || this.tokens[i].is("WHIT"))) {
43
+ if (n < 0) i--; else i++;
44
+ continue;
45
+ }
46
+
47
+ if (count == Math.abs(n)) {
48
+ return this.tokens[i];
49
+ }
50
+ count++;
51
+ (n < 0)? i-- : i++;
52
+ }
53
+
54
+ return new JSDOC.Token("", "VOID", "STREAM_ERROR"); // because null isn't an object and caller always expects an object
55
+ }
56
+ }
57
+
58
+ /**
59
+ @type JSDOC.Token|JSDOC.Token[]
60
+ */
61
+ JSDOC.TokenStream.prototype.next = function(/**Number*/howMany) {
62
+ if (typeof howMany == "undefined") howMany = 1;
63
+ if (howMany < 1) return null;
64
+ var got = [];
65
+
66
+ for (var i = 1; i <= howMany; i++) {
67
+ if (this.cursor+i >= this.tokens.length) {
68
+ return null;
69
+ }
70
+ got.push(this.tokens[this.cursor+i]);
71
+ }
72
+ this.cursor += howMany;
73
+
74
+ if (howMany == 1) {
75
+ return got[0];
76
+ }
77
+ else return got;
78
+ }
79
+
80
+ /**
81
+ @type JSDOC.Token[]
82
+ */
83
+ JSDOC.TokenStream.prototype.balance = function(/**String*/start, /**String*/stop) {
84
+ if (!stop) stop = JSDOC.Lang.matching(start);
85
+
86
+ var depth = 0;
87
+ var got = [];
88
+ var started = false;
89
+
90
+ while ((token = this.look())) {
91
+ if (token.is(start)) {
92
+ depth++;
93
+ started = true;
94
+ }
95
+
96
+ if (started) {
97
+ got.push(token);
98
+ }
99
+
100
+ if (token.is(stop)) {
101
+ depth--;
102
+ if (depth == 0) return got;
103
+ }
104
+ if (!this.next()) break;
105
+ }
106
+ }
107
+
108
+ JSDOC.TokenStream.prototype.getMatchingToken = function(/**String*/start, /**String*/stop) {
109
+ var depth = 0;
110
+ var cursor = this.cursor;
111
+
112
+ if (!start) {
113
+ start = JSDOC.Lang.matching(stop);
114
+ depth = 1;
115
+ }
116
+ if (!stop) stop = JSDOC.Lang.matching(start);
117
+
118
+ while ((token = this.tokens[cursor])) {
119
+ if (token.is(start)) {
120
+ depth++;
121
+ }
122
+
123
+ if (token.is(stop) && cursor) {
124
+ depth--;
125
+ if (depth == 0) return {index: cursor, matching: this.tokens[cursor]};
126
+ }
127
+ cursor++;
128
+ }
129
+ }
130
+
131
+ JSDOC.TokenStream.prototype.insertAhead = function(/**JSDOC.Token*/token) {
132
+ this.tokens.splice(this.cursor+1, 0, token);
133
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @namespace
3
+ * @deprecated Use {@link FilePath} instead.
4
+ */
5
+ JSDOC.Util = {
6
+ }
7
+
8
+ /**
9
+ * @deprecated Use {@link FilePath.fileName} instead.
10
+ */
11
+ JSDOC.Util.fileName = function(path) {
12
+ LOG.warn("JSDOC.Util.fileName is deprecated. Use FilePath.fileName instead.");
13
+ var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0);
14
+ return path.substring(nameStart);
15
+ }
16
+
17
+ /**
18
+ * @deprecated Use {@link FilePath.fileExtension} instead.
19
+ */
20
+ JSDOC.Util.fileExtension = function(filename) {
21
+ LOG.warn("JSDOC.Util.fileExtension is deprecated. Use FilePath.fileExtension instead.");
22
+ return filename.split(".").pop().toLowerCase();
23
+ };
24
+
25
+ /**
26
+ * @deprecated Use {@link FilePath.dir} instead.
27
+ */
28
+ JSDOC.Util.dir = function(path) {
29
+ LOG.warn("JSDOC.Util.dir is deprecated. Use FilePath.dir instead.");
30
+ var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0);
31
+ return path.substring(0, nameStart-1);
32
+ }
@@ -0,0 +1,453 @@
1
+ if (typeof JSDOC == "undefined") JSDOC = {};
2
+
3
+ /** @constructor */
4
+ JSDOC.Walker = function(/**JSDOC.TokenStream*/ts) {
5
+ this.init();
6
+ if (typeof ts != "undefined") {
7
+ this.walk(ts);
8
+ }
9
+ }
10
+
11
+ JSDOC.Walker.prototype.init = function() {
12
+ this.ts = null;
13
+
14
+ var globalSymbol = new JSDOC.Symbol("_global_", [], "GLOBAL", new JSDOC.DocComment(""), {});
15
+ globalSymbol.isNamespace = true;
16
+ globalSymbol.srcFile = "";
17
+ globalSymbol.isPrivate = false;
18
+ JSDOC.Parser.addSymbol(globalSymbol);
19
+ this.lastDoc = null;
20
+ this.token = null;
21
+
22
+ /**
23
+ The chain of symbols under which we are currently nested.
24
+ @type Array
25
+ */
26
+ this.namescope = [globalSymbol];
27
+ this.namescope.last = function(n){ if (!n) n = 0; return this[this.length-(1+n)] || "" };
28
+ }
29
+
30
+ JSDOC.Walker.prototype.walk = function(/**JSDOC.TokenStream*/ts) {
31
+ this.ts = ts;
32
+ while (this.token = this.ts.look()) {
33
+ if (this.token.popNamescope) {
34
+
35
+ var symbol = this.namescope.pop();
36
+ if (symbol.is("FUNCTION")) {
37
+ if (this.ts.look(1).is("LEFT_PAREN") && symbol.comment.getTag("function").length == 0) {
38
+ symbol.isa = "OBJECT";
39
+ }
40
+ }
41
+ }
42
+ this.step();
43
+ if (!this.ts.next()) break;
44
+ }
45
+ }
46
+
47
+ JSDOC.Walker.prototype.step = function() {
48
+ var opts = {isBinding: false, isObserver: false, bindingPath: '', observedProperties: []};
49
+ if (this.token.is("JSDOC")) { // it's a doc comment
50
+
51
+ var doc = new JSDOC.DocComment(this.token.data);
52
+
53
+ if (doc.getTag("lends").length > 0) { // it's a new namescope
54
+ var lends = doc.getTag("lends")[0];
55
+
56
+ var name = lends.desc
57
+ if (!name) throw "@lends tag requires a value.";
58
+
59
+ var symbol = new JSDOC.Symbol(name, [], "OBJECT", doc, opts);
60
+
61
+ this.namescope.push(symbol);
62
+
63
+ var matching = this.ts.getMatchingToken("LEFT_CURLY");
64
+ if (matching) matching.matching.popNamescope = name;
65
+ else LOG.warn("Mismatched } character. Can't parse code.");
66
+
67
+ this.lastDoc = null;
68
+ return true;
69
+ }
70
+ else if (doc.getTag("name").length > 0 && doc.getTag("overview").length == 0) { // it's a virtual symbol
71
+ var virtualName = doc.getTag("name")[0].desc;
72
+ if (!virtualName) throw "@name tag requires a value.";
73
+
74
+ var symbol = new JSDOC.Symbol(virtualName, [], "VIRTUAL", doc, opts);
75
+
76
+ JSDOC.Parser.addSymbol(symbol);
77
+
78
+ this.lastDoc = null;
79
+ return true;
80
+ }
81
+ else if (doc.meta) { // it's a meta doclet
82
+ if (doc.meta == "@+") JSDOC.DocComment.shared = doc.src;
83
+ else if (doc.meta == "@-") JSDOC.DocComment.shared = "";
84
+ else if (doc.meta == "nocode+") JSDOC.Parser.conf.ignoreCode = true;
85
+ else if (doc.meta == "nocode-") JSDOC.Parser.conf.ignoreCode = JSDOC.opt.n;
86
+ else throw "Unrecognized meta comment: "+doc.meta;
87
+
88
+ this.lastDoc = null;
89
+ return true;
90
+ }
91
+ else if (doc.getTag("overview").length > 0) { // it's a file overview
92
+ symbol = new JSDOC.Symbol("", [], "FILE", doc, opts);
93
+
94
+ JSDOC.Parser.addSymbol(symbol);
95
+
96
+ this.lastDoc = null;
97
+ return true;
98
+ }
99
+ else {
100
+ this.lastDoc = doc;
101
+ return false;
102
+ }
103
+ }
104
+ else if (!JSDOC.Parser.conf.ignoreCode) { // it's code
105
+ if (this.token.is("NAME")) {
106
+ var symbol;
107
+ var name = this.token.data;
108
+ var doc = null; if (this.lastDoc) doc = this.lastDoc;
109
+ var params = [];
110
+
111
+ // it's inside an anonymous object
112
+ if (this.ts.look(1).is("COLON") && this.ts.look(-1).is("LEFT_CURLY") && !(this.ts.look(-2).is("JSDOC") || this.namescope.last().comment.getTag("lends").length || this.ts.look(-2).is("ASSIGN") || this.ts.look(-2).is("COLON"))) {
113
+ name = "$anonymous";
114
+ name = this.namescope.last().alias+"-"+name
115
+
116
+ params = [];
117
+
118
+ symbol = new JSDOC.Symbol(name, params, "OBJECT", doc, opts);
119
+
120
+ JSDOC.Parser.addSymbol(symbol);
121
+
122
+ this.namescope.push(symbol);
123
+
124
+ var matching = this.ts.getMatchingToken(null, "RIGHT_CURLY");
125
+ if (matching) matching.matching.popNamescope = name;
126
+ else LOG.warn("Mismatched } character. Can't parse code.");
127
+ }
128
+ // function foo() {}
129
+ else if (this.ts.look(-1).is("FUNCTION") && this.ts.look(1).is("LEFT_PAREN")) {
130
+ var isInner;
131
+
132
+ if (this.lastDoc) doc = this.lastDoc;
133
+ name = this.namescope.last().alias+"-"+name;
134
+ if (!this.namescope.last().is("GLOBAL")) isInner = true;
135
+
136
+ params = JSDOC.Walker.onParamList(this.ts.balance("LEFT_PAREN"));
137
+
138
+ symbol = new JSDOC.Symbol(name, params, "FUNCTION", doc, opts);
139
+ if (isInner) symbol.isInner = true;
140
+
141
+
142
+ JSDOC.Parser.addSymbol(symbol);
143
+
144
+ this.namescope.push(symbol);
145
+
146
+ var matching = this.ts.getMatchingToken("LEFT_CURLY");
147
+ if (matching) matching.matching.popNamescope = name;
148
+ else LOG.warn("Mismatched } character. Can't parse code.");
149
+ }
150
+ // foo = function() {}
151
+ else if (this.ts.look(1).is("ASSIGN") && this.ts.look(2).is("FUNCTION")) {
152
+ var isInner;
153
+ if (this.ts.look(-1).is("VAR") || this.isInner) {
154
+ name = this.namescope.last().alias+"-"+name
155
+ if (!this.namescope.last().is("GLOBAL")) isInner = true;
156
+ }
157
+ else if (name.indexOf("this.") == 0) {
158
+ name = this.resolveThis(name);
159
+ }
160
+
161
+ if (this.lastDoc) doc = this.lastDoc;
162
+ params = JSDOC.Walker.onParamList(this.ts.balance("LEFT_PAREN"));
163
+
164
+ symbol = new JSDOC.Symbol(name, params, "FUNCTION", doc, opts);
165
+ if (isInner) symbol.isInner = true;
166
+
167
+ JSDOC.Parser.addSymbol(symbol);
168
+
169
+ this.namescope.push(symbol);
170
+
171
+ var matching = this.ts.getMatchingToken("LEFT_CURLY");
172
+ if (matching) matching.matching.popNamescope = name;
173
+ else LOG.warn("Mismatched } character. Can't parse code.");
174
+ }
175
+ // foo = new function() {}
176
+ else if (this.ts.look(1).is("ASSIGN") && this.ts.look(2).is("NEW") && this.ts.look(3).is("FUNCTION")) {
177
+ var isInner;
178
+ if (this.ts.look(-1).is("VAR") || this.isInner) {
179
+ name = this.namescope.last().alias+"-"+name
180
+ if (!this.namescope.last().is("GLOBAL")) isInner = true;
181
+ }
182
+ else if (name.indexOf("this.") == 0) {
183
+ name = this.resolveThis(name);
184
+ }
185
+
186
+ if (this.lastDoc) doc = this.lastDoc;
187
+ params = JSDOC.Walker.onParamList(this.ts.balance("LEFT_PAREN"));
188
+
189
+ symbol = new JSDOC.Symbol(name, params, "OBJECT", doc,opts);
190
+ if (isInner) symbol.isInner = true;
191
+
192
+
193
+ JSDOC.Parser.addSymbol(symbol);
194
+
195
+ symbol.scopeType = "INSTANCE";
196
+ this.namescope.push(symbol);
197
+
198
+ var matching = this.ts.getMatchingToken("LEFT_CURLY");
199
+ if (matching) matching.matching.popNamescope = name;
200
+ else LOG.warn("Mismatched } character. Can't parse code.");
201
+ }
202
+ // foo: function() {}
203
+ else if (this.ts.look(1).is("COLON") && this.ts.look(2).is("FUNCTION")) {
204
+ name = (this.namescope.last().alias+"."+name).replace("#.", "#");
205
+
206
+ if (this.lastDoc) doc = this.lastDoc;
207
+ params = JSDOC.Walker.onParamList(this.ts.balance("LEFT_PAREN"));
208
+
209
+ var matching = this.ts.getMatchingToken("LEFT_CURLY");
210
+
211
+ if(matching && name.indexOf('Observer') != -1)
212
+ {
213
+ LOG.warn("index: " + matching.index);
214
+ // LOG.warn(this.ts.next(15));
215
+
216
+ LOG.warn(this.ts.look(matching.index-2));
217
+ LOG.warn(this.ts.look(matching.index-1));
218
+ LOG.warn(this.ts.look(matching.index));
219
+ LOG.warn(this.ts.look(matching.index+1));
220
+ LOG.warn(this.ts.look(matching.index+2));
221
+ LOG.warn(this.ts.look(matching.index+3));
222
+ LOG.warn(this.ts.look(matching.index+4));
223
+ LOG.warn('===');
224
+ }
225
+ // LOG.warn(matching.index);
226
+
227
+
228
+ //var opts = {isBinding: false, isObserver: false, bindingPath: '', observedProperties: []};
229
+ // LOG.warn(this.ts.next(10));
230
+ if(name.indexOf('Binding') != -1)
231
+ {
232
+ opts.isBinding = true;
233
+ opts.bindingPath = this.ts.look(2);
234
+ }
235
+
236
+
237
+
238
+ if (doc && doc.getTag("constructs").length) {
239
+ name = name.replace(/\.prototype(\.|$)/, "#");
240
+
241
+ if (name.indexOf("#") > -1) name = name.match(/(^[^#]+)/)[0];
242
+ else name = this.namescope.last().alias;
243
+
244
+ symbol = new JSDOC.Symbol(name, params, "CONSTRUCTOR", doc, opts);
245
+ }
246
+ else {
247
+ symbol = new JSDOC.Symbol(name, params, "FUNCTION", doc, opts);
248
+ }
249
+
250
+
251
+ JSDOC.Parser.addSymbol(symbol);
252
+
253
+ this.namescope.push(symbol);
254
+
255
+ if (matching) matching.matching.popNamescope = name;
256
+ else LOG.warn("Mismatched } character. Can't parse code.");
257
+ }
258
+ // foo = {}
259
+ else if (this.ts.look(1).is("ASSIGN") && this.ts.look(2).is("LEFT_CURLY")) {
260
+ var isInner;
261
+ if (this.ts.look(-1).is("VAR") || this.isInner) {
262
+ name = this.namescope.last().alias+"-"+name
263
+ if (!this.namescope.last().is("GLOBAL")) isInner = true;
264
+ }
265
+ else if (name.indexOf("this.") == 0) {
266
+ name = this.resolveThis(name);
267
+ }
268
+
269
+ if (this.lastDoc) doc = this.lastDoc;
270
+
271
+ symbol = new JSDOC.Symbol(name, params, "OBJECT", doc, opts);
272
+ if (isInner) symbol.isInner = true;
273
+
274
+
275
+ if (doc) JSDOC.Parser.addSymbol(symbol);
276
+
277
+ this.namescope.push(symbol);
278
+
279
+ var matching = this.ts.getMatchingToken("LEFT_CURLY");
280
+ if (matching) matching.matching.popNamescope = name;
281
+ else LOG.warn("Mismatched } character. Can't parse code.");
282
+ }
283
+ // foo = x
284
+ else if (this.ts.look(1).is("ASSIGN")) {
285
+
286
+ var isInner;
287
+ if (this.ts.look(-1).is("VAR") || this.isInner) {
288
+ name = this.namescope.last().alias+"-"+name
289
+ if (!this.namescope.last().is("GLOBAL")) isInner = true;
290
+ }
291
+ else if (name.indexOf("this.") == 0) {
292
+ name = this.resolveThis(name);
293
+ }
294
+
295
+ if (this.lastDoc) doc = this.lastDoc;
296
+
297
+ symbol = new JSDOC.Symbol(name, params, "OBJECT", doc, opts);
298
+ if (isInner) symbol.isInner = true;
299
+
300
+
301
+ if (doc) JSDOC.Parser.addSymbol(symbol);
302
+ }
303
+ // foo: {}
304
+ else if (this.ts.look(1).is("COLON") && this.ts.look(2).is("LEFT_CURLY")) {
305
+ name = (this.namescope.last().alias+"."+name).replace("#.", "#");
306
+
307
+ if (this.lastDoc) doc = this.lastDoc;
308
+
309
+ symbol = new JSDOC.Symbol(name, params, "OBJECT", doc, opts);
310
+
311
+
312
+ if (doc) JSDOC.Parser.addSymbol(symbol);
313
+
314
+ this.namescope.push(symbol);
315
+
316
+ var matching = this.ts.getMatchingToken("LEFT_CURLY");
317
+ if (matching) matching.matching.popNamescope = name;
318
+ else LOG.warn("Mismatched } character. Can't parse code.");
319
+ }
320
+ // foo: x
321
+ else if (this.ts.look(1).is("COLON")) {
322
+ name = (this.namescope.last().alias+"."+name).replace("#.", "#");;
323
+
324
+ if (this.lastDoc) doc = this.lastDoc;
325
+
326
+ //var opts = {isBinding: false, isObserver: false, bindingPath: '', observedProperties: []};
327
+ //LOG.warn(this.ts.look(2));
328
+ // if(name.indexOf('Binding') != -1)
329
+ // {
330
+ // opts.isBinding = true;
331
+ // opts.bindingPath = this.ts.look(2);
332
+ // }
333
+
334
+ symbol = new JSDOC.Symbol(name, params, "OBJECT", doc, opts);
335
+
336
+
337
+ if (doc) JSDOC.Parser.addSymbol(symbol);
338
+ }
339
+ // foo(...)
340
+ else if (this.ts.look(1).is("LEFT_PAREN")) {
341
+ var functionCall = {name: name};
342
+ if (!this.ts.look(2).is("RIGHT_PAREN")) functionCall.arg1 = this.ts.look(2).data;
343
+
344
+ if (typeof JSDOC.PluginManager != "undefined") {
345
+ JSDOC.PluginManager.run("onFunctionCall", functionCall);
346
+ if (functionCall.doc) {
347
+ this.ts.insertAhead(new JSDOC.Token(functionCall.doc, "COMM", "JSDOC"));
348
+ }
349
+ }
350
+ }
351
+ this.lastDoc = null;
352
+ }
353
+ else if (this.token.is("FUNCTION")) { // it's an anonymous function
354
+ if (
355
+ (!this.ts.look(-1).is("COLON") || !this.ts.look(-1).is("ASSIGN"))
356
+ && !this.ts.look(1).is("NAME")
357
+ ) {
358
+ if (this.lastDoc) doc = this.lastDoc;
359
+
360
+ name = "$anonymous";
361
+ name = this.namescope.last().alias+"-"+name
362
+
363
+ params = JSDOC.Walker.onParamList(this.ts.balance("LEFT_PAREN"));
364
+
365
+ symbol = new JSDOC.Symbol(name, params, "FUNCTION", doc, opts);
366
+
367
+
368
+ JSDOC.Parser.addSymbol(symbol);
369
+
370
+ this.namescope.push(symbol);
371
+
372
+ var matching = this.ts.getMatchingToken("LEFT_CURLY");
373
+ if (matching) matching.matching.popNamescope = name;
374
+ else LOG.warn("Mismatched } character. Can't parse code.");
375
+ }
376
+ }
377
+ }
378
+ return true;
379
+ }
380
+
381
+ /**
382
+ Resolves what "this." means when it appears in a name.
383
+ @param name The name that starts with "this.".
384
+ @returns The name with "this." resolved.
385
+ */
386
+ JSDOC.Walker.prototype.resolveThis = function(name) {
387
+ name.match(/^this\.(.+)$/)
388
+ var nameFragment = RegExp.$1;
389
+ if (!nameFragment) return name;
390
+
391
+ var symbol = this.namescope.last();
392
+ var scopeType = symbol.scopeType || symbol.isa;
393
+
394
+ // if we are in a constructor function, `this` means the instance
395
+ if (scopeType == "CONSTRUCTOR") {
396
+ name = symbol.alias+"#"+nameFragment;
397
+ }
398
+
399
+ // if we are in an anonymous constructor function, `this` means the instance
400
+ else if (scopeType == "INSTANCE") {
401
+ name = symbol.alias+"."+nameFragment;
402
+ }
403
+
404
+ // if we are in a function, `this` means the container (possibly the global)
405
+ else if (scopeType == "FUNCTION") {
406
+ // in a method of a prototype, so `this` means the constructor
407
+ if (symbol.alias.match(/(^.*)[#.-][^#.-]+/)) {
408
+ var parentName = RegExp.$1;
409
+ var parent = JSDOC.Parser.symbols.getSymbol(parentName);
410
+
411
+ if (!parent) {
412
+ if (JSDOC.Lang.isBuiltin(parentName)) parent = JSDOC.Parser.addBuiltin(parentName);
413
+ else {
414
+ if (symbol.alias.indexOf("$anonymous") < 0) // these will be ignored eventually
415
+ LOG.warn("Can't document "+symbol.alias+" without first documenting "+parentName+".");
416
+ }
417
+ }
418
+ if (parent) name = parentName+(parent.is("CONSTRUCTOR")?"#":".")+nameFragment;
419
+ }
420
+ else {
421
+ parent = this.namescope.last(1);
422
+ name = parent.alias+(parent.is("CONSTRUCTOR")?"#":".")+nameFragment;
423
+ }
424
+ }
425
+ // otherwise it means the global
426
+ else {
427
+ name = nameFragment;
428
+ }
429
+
430
+ return name;
431
+ }
432
+
433
+ JSDOC.Walker.onParamList = function(/**Array*/paramTokens) {
434
+ if (!paramTokens) {
435
+ LOG.warn("Malformed parameter list. Can't parse code.");
436
+ return [];
437
+ }
438
+ var params = [];
439
+ for (var i = 0, l = paramTokens.length; i < l; i++) {
440
+ if (paramTokens[i].is("JSDOC")) {
441
+ var paramType = paramTokens[i].data.replace(/(^\/\*\* *| *\*\/$)/g, "");
442
+
443
+ if (paramTokens[i+1] && paramTokens[i+1].is("NAME")) {
444
+ i++;
445
+ params.push({type: paramType, name: paramTokens[i].data});
446
+ }
447
+ }
448
+ else if (paramTokens[i].is("NAME")) {
449
+ params.push({name: paramTokens[i].data});
450
+ }
451
+ }
452
+ return params;
453
+ }