marko 2.11.1 → 2.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. package/compiler/TemplateBuilder.js +1 -1
  2. package/compiler/TypeConverter.js +1 -1
  3. package/compiler/expression-parser.js +1 -1
  4. package/compiler/util/stringify.js +169 -0
  5. package/package.json +2 -3
  6. package/taglibs/core/ForNode.js +1 -1
  7. package/taglibs/core/IncludeNode.js +1 -1
  8. package/taglibs/core/TagHandlerNode.js +1 -1
  9. package/.npmignore +0 -1
  10. package/coverage/coverage.json +0 -1
  11. package/coverage/lcov-report/base.css +0 -213
  12. package/coverage/lcov-report/index.html +0 -496
  13. package/coverage/lcov-report/marko-v4/bin/index.html +0 -93
  14. package/coverage/lcov-report/marko-v4/bin/markoc.js.html +0 -1160
  15. package/coverage/lcov-report/marko-v4/browser-refresh/index.html +0 -93
  16. package/coverage/lcov-report/marko-v4/browser-refresh/index.js.html +0 -191
  17. package/coverage/lcov-report/marko-v4/compiler/Builder.js.html +0 -1859
  18. package/coverage/lcov-report/marko-v4/compiler/CodeGenerator.js.html +0 -998
  19. package/coverage/lcov-report/marko-v4/compiler/CodeWriter.js.html +0 -851
  20. package/coverage/lcov-report/marko-v4/compiler/CompileContext.js.html +0 -1955
  21. package/coverage/lcov-report/marko-v4/compiler/CompileError.js.html +0 -206
  22. package/coverage/lcov-report/marko-v4/compiler/Compiler.js.html +0 -473
  23. package/coverage/lcov-report/marko-v4/compiler/HtmlJsParser.js.html +0 -341
  24. package/coverage/lcov-report/marko-v4/compiler/InlineCompiler.js.html +0 -317
  25. package/coverage/lcov-report/marko-v4/compiler/Parser.js.html +0 -1271
  26. package/coverage/lcov-report/marko-v4/compiler/Walker.js.html +0 -521
  27. package/coverage/lcov-report/marko-v4/compiler/ast/ArrayContainer.js.html +0 -653
  28. package/coverage/lcov-report/marko-v4/compiler/ast/ArrayExpression.js.html +0 -278
  29. package/coverage/lcov-report/marko-v4/compiler/ast/Assignment.js.html +0 -299
  30. package/coverage/lcov-report/marko-v4/compiler/ast/AttributePlaceholder.js.html +0 -173
  31. package/coverage/lcov-report/marko-v4/compiler/ast/BinaryExpression.js.html +0 -428
  32. package/coverage/lcov-report/marko-v4/compiler/ast/Code.js.html +0 -149
  33. package/coverage/lcov-report/marko-v4/compiler/ast/ConditionalExpression.js.html +0 -239
  34. package/coverage/lcov-report/marko-v4/compiler/ast/Container.js.html +0 -101
  35. package/coverage/lcov-report/marko-v4/compiler/ast/ContainerNode.js.html +0 -122
  36. package/coverage/lcov-report/marko-v4/compiler/ast/CustomTag.js.html +0 -1250
  37. package/coverage/lcov-report/marko-v4/compiler/ast/Declaration.js.html +0 -146
  38. package/coverage/lcov-report/marko-v4/compiler/ast/DocumentType.js.html +0 -146
  39. package/coverage/lcov-report/marko-v4/compiler/ast/Else.js.html +0 -161
  40. package/coverage/lcov-report/marko-v4/compiler/ast/ElseIf.js.html +0 -152
  41. package/coverage/lcov-report/marko-v4/compiler/ast/Expression.js.html +0 -152
  42. package/coverage/lcov-report/marko-v4/compiler/ast/ForEach.js.html +0 -314
  43. package/coverage/lcov-report/marko-v4/compiler/ast/ForEachProp.js.html +0 -290
  44. package/coverage/lcov-report/marko-v4/compiler/ast/ForRange.js.html +0 -374
  45. package/coverage/lcov-report/marko-v4/compiler/ast/ForStatement.js.html +0 -245
  46. package/coverage/lcov-report/marko-v4/compiler/ast/FunctionCall.js.html +0 -374
  47. package/coverage/lcov-report/marko-v4/compiler/ast/FunctionDeclaration.js.html +0 -296
  48. package/coverage/lcov-report/marko-v4/compiler/ast/Html.js.html +0 -311
  49. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/html/generateCode.js.html +0 -473
  50. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/html/index.html +0 -93
  51. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/index.html +0 -93
  52. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/index.js.html +0 -317
  53. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/vdom/generateCode.js.html +0 -128
  54. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/vdom/index.html +0 -93
  55. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttributeCollection.js.html +0 -521
  56. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlComment.js.html +0 -182
  57. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/html/EndTag.js.html +0 -131
  58. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/html/StartTag.js.html +0 -227
  59. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/html/generateCode.js.html +0 -299
  60. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/html/index.html +0 -119
  61. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/index.html +0 -93
  62. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/index.js.html +0 -578
  63. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/vdom/EndElementVDOM.js.html +0 -104
  64. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/vdom/HtmlElementVDOM.js.html +0 -620
  65. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/vdom/generateCode.js.html +0 -326
  66. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/vdom/index.html +0 -119
  67. package/coverage/lcov-report/marko-v4/compiler/ast/Identifier.js.html +0 -137
  68. package/coverage/lcov-report/marko-v4/compiler/ast/If.js.html +0 -347
  69. package/coverage/lcov-report/marko-v4/compiler/ast/InvokeMacro.js.html +0 -425
  70. package/coverage/lcov-report/marko-v4/compiler/ast/Literal.js.html +0 -320
  71. package/coverage/lcov-report/marko-v4/compiler/ast/LogicalExpression.js.html +0 -359
  72. package/coverage/lcov-report/marko-v4/compiler/ast/Macro.js.html +0 -176
  73. package/coverage/lcov-report/marko-v4/compiler/ast/MemberExpression.js.html +0 -308
  74. package/coverage/lcov-report/marko-v4/compiler/ast/NewExpression.js.html +0 -395
  75. package/coverage/lcov-report/marko-v4/compiler/ast/Node.js.html +0 -1235
  76. package/coverage/lcov-report/marko-v4/compiler/ast/ObjectExpression.js.html +0 -290
  77. package/coverage/lcov-report/marko-v4/compiler/ast/Program.js.html +0 -134
  78. package/coverage/lcov-report/marko-v4/compiler/ast/Property.js.html +0 -257
  79. package/coverage/lcov-report/marko-v4/compiler/ast/Return.js.html +0 -170
  80. package/coverage/lcov-report/marko-v4/compiler/ast/Scriptlet.js.html +0 -152
  81. package/coverage/lcov-report/marko-v4/compiler/ast/SelfInvokingFunction.js.html +0 -155
  82. package/coverage/lcov-report/marko-v4/compiler/ast/TemplateRoot.js.html +0 -344
  83. package/coverage/lcov-report/marko-v4/compiler/ast/Text/html/generateCode.js.html +0 -245
  84. package/coverage/lcov-report/marko-v4/compiler/ast/Text/html/index.html +0 -93
  85. package/coverage/lcov-report/marko-v4/compiler/ast/Text/index.html +0 -93
  86. package/coverage/lcov-report/marko-v4/compiler/ast/Text/index.js.html +0 -215
  87. package/coverage/lcov-report/marko-v4/compiler/ast/Text/vdom/TextVDOM.js.html +0 -407
  88. package/coverage/lcov-report/marko-v4/compiler/ast/Text/vdom/generateCode.js.html +0 -179
  89. package/coverage/lcov-report/marko-v4/compiler/ast/Text/vdom/index.html +0 -106
  90. package/coverage/lcov-report/marko-v4/compiler/ast/ThisExpression.js.html +0 -131
  91. package/coverage/lcov-report/marko-v4/compiler/ast/UnaryExpression.js.html +0 -365
  92. package/coverage/lcov-report/marko-v4/compiler/ast/UpdateExpression.js.html +0 -341
  93. package/coverage/lcov-report/marko-v4/compiler/ast/VariableDeclarator.js.html +0 -221
  94. package/coverage/lcov-report/marko-v4/compiler/ast/Vars.js.html +0 -290
  95. package/coverage/lcov-report/marko-v4/compiler/ast/WhileStatement.js.html +0 -173
  96. package/coverage/lcov-report/marko-v4/compiler/ast/index.html +0 -678
  97. package/coverage/lcov-report/marko-v4/compiler/config.js.html +0 -194
  98. package/coverage/lcov-report/marko-v4/compiler/index.html +0 -236
  99. package/coverage/lcov-report/marko-v4/compiler/index.js.html +0 -695
  100. package/coverage/lcov-report/marko-v4/compiler/taglib-finder/index-browser.js.html +0 -158
  101. package/coverage/lcov-report/marko-v4/compiler/taglib-finder/index.html +0 -106
  102. package/coverage/lcov-report/marko-v4/compiler/taglib-finder/index.js.html +0 -632
  103. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/DependencyChain.js.html +0 -113
  104. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Attribute.js.html +0 -155
  105. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/ImportedVariable.js.html +0 -140
  106. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/NestedVariable.js.html +0 -134
  107. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Property.js.html +0 -140
  108. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Tag.js.html +0 -797
  109. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Taglib.js.html +0 -440
  110. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Transformer.js.html +0 -236
  111. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/index.html +0 -184
  112. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/index.js.html +0 -65
  113. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/handleAttributes.js.html +0 -161
  114. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/index.html +0 -236
  115. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/index.js.html +0 -191
  116. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/json-file-reader-browser.js.html +0 -143
  117. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/json-file-reader.js.html +0 -155
  118. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/loader-attribute.js.html +0 -659
  119. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/loader-tag.js.html +0 -1931
  120. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/loader-taglib.js.html +0 -1010
  121. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/loader.js.html +0 -119
  122. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/scanTagsDir-browser.js.html +0 -119
  123. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/scanTagsDir.js.html +0 -548
  124. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/tag-def-from-code.js.html +0 -287
  125. package/coverage/lcov-report/marko-v4/compiler/taglib-lookup/TaglibLookup.js.html +0 -1205
  126. package/coverage/lcov-report/marko-v4/compiler/taglib-lookup/index.html +0 -106
  127. package/coverage/lcov-report/marko-v4/compiler/taglib-lookup/index.js.html +0 -302
  128. package/coverage/lcov-report/marko-v4/compiler/util/PosInfo.js.html +0 -140
  129. package/coverage/lcov-report/marko-v4/compiler/util/UniqueVars.js.html +0 -227
  130. package/coverage/lcov-report/marko-v4/compiler/util/adjustIndent.js.html +0 -272
  131. package/coverage/lcov-report/marko-v4/compiler/util/deresolve-browser.js.html +0 -119
  132. package/coverage/lcov-report/marko-v4/compiler/util/deresolve.js.html +0 -113
  133. package/coverage/lcov-report/marko-v4/compiler/util/fingerprint.js.html +0 -83
  134. package/coverage/lcov-report/marko-v4/compiler/util/index.html +0 -366
  135. package/coverage/lcov-report/marko-v4/compiler/util/isCompoundExpression.js.html +0 -92
  136. package/coverage/lcov-report/marko-v4/compiler/util/isJavaScriptReservedWord.js.html +0 -80
  137. package/coverage/lcov-report/marko-v4/compiler/util/isValidJavaScriptIdentifier.js.html +0 -80
  138. package/coverage/lcov-report/marko-v4/compiler/util/isValidJavaScriptVarName.js.html +0 -95
  139. package/coverage/lcov-report/marko-v4/compiler/util/javaScriptReservedWords.js.html +0 -260
  140. package/coverage/lcov-report/marko-v4/compiler/util/macros.js.html +0 -326
  141. package/coverage/lcov-report/marko-v4/compiler/util/parseExpression.js.html +0 -77
  142. package/coverage/lcov-report/marko-v4/compiler/util/parseJavaScript.js.html +0 -833
  143. package/coverage/lcov-report/marko-v4/compiler/util/parseJavaScriptArgs.js.html +0 -101
  144. package/coverage/lcov-report/marko-v4/compiler/util/parseStatement.js.html +0 -77
  145. package/coverage/lcov-report/marko-v4/compiler/util/removeComments.js.html +0 -221
  146. package/coverage/lcov-report/marko-v4/compiler/util/removeDashes.js.html +0 -77
  147. package/coverage/lcov-report/marko-v4/compiler/util/resolve-browser.js.html +0 -125
  148. package/coverage/lcov-report/marko-v4/compiler/util/resolve.js.html +0 -128
  149. package/coverage/lcov-report/marko-v4/compiler/util/safeVarName.js.html +0 -116
  150. package/coverage/lcov-report/marko-v4/compiler/util/tokenizer.js.html +0 -173
  151. package/coverage/lcov-report/marko-v4/compiler/util/vdom/VDOMOptimizer.js.html +0 -560
  152. package/coverage/lcov-report/marko-v4/compiler/util/vdom/index.html +0 -119
  153. package/coverage/lcov-report/marko-v4/compiler/util/vdom/index.js.html +0 -119
  154. package/coverage/lcov-report/marko-v4/compiler/util/vdom/isStaticValue.js.html +0 -212
  155. package/coverage/lcov-report/marko-v4/defineRenderer.js.html +0 -206
  156. package/coverage/lcov-report/marko-v4/express.js.html +0 -161
  157. package/coverage/lcov-report/marko-v4/helpers/empty.js.html +0 -77
  158. package/coverage/lcov-report/marko-v4/helpers/index.html +0 -106
  159. package/coverage/lcov-report/marko-v4/helpers/notEmpty.js.html +0 -95
  160. package/coverage/lcov-report/marko-v4/hot-reload/index.html +0 -93
  161. package/coverage/lcov-report/marko-v4/hot-reload/index.js.html +0 -524
  162. package/coverage/lcov-report/marko-v4/index.html +0 -158
  163. package/coverage/lcov-report/marko-v4/node-require-browser.js.html +0 -113
  164. package/coverage/lcov-report/marko-v4/node-require.js.html +0 -434
  165. package/coverage/lcov-report/marko-v4/runtime/deprecate.js.html +0 -131
  166. package/coverage/lcov-report/marko-v4/runtime/forEachPropStatusVar.js.html +0 -158
  167. package/coverage/lcov-report/marko-v4/runtime/helpers.js.html +0 -839
  168. package/coverage/lcov-report/marko-v4/runtime/html/helpers.js.html +0 -506
  169. package/coverage/lcov-report/marko-v4/runtime/html/index.html +0 -106
  170. package/coverage/lcov-report/marko-v4/runtime/html/index.js.html +0 -914
  171. package/coverage/lcov-report/marko-v4/runtime/index.html +0 -145
  172. package/coverage/lcov-report/marko-v4/runtime/inline.js.html +0 -65
  173. package/coverage/lcov-report/marko-v4/runtime/loader/index-browser-dynamic.js.html +0 -128
  174. package/coverage/lcov-report/marko-v4/runtime/loader/index-browser.js.html +0 -119
  175. package/coverage/lcov-report/marko-v4/runtime/loader/index.html +0 -119
  176. package/coverage/lcov-report/marko-v4/runtime/loader/index.js.html +0 -548
  177. package/coverage/lcov-report/marko-v4/runtime/stream.js.html +0 -224
  178. package/coverage/lcov-report/marko-v4/runtime/vdom/helpers.js.html +0 -350
  179. package/coverage/lcov-report/marko-v4/runtime/vdom/index.html +0 -106
  180. package/coverage/lcov-report/marko-v4/runtime/vdom/index.js.html +0 -893
  181. package/coverage/lcov-report/marko-v4/stream.js.html +0 -98
  182. package/coverage/lcov-report/marko-v4/taglibs/async/async-fragment-to-await-transformer.js.html +0 -221
  183. package/coverage/lcov-report/marko-v4/taglibs/async/await-nested-tag-transformer.js.html +0 -140
  184. package/coverage/lcov-report/marko-v4/taglibs/async/await-reorderer-tag.js.html +0 -278
  185. package/coverage/lcov-report/marko-v4/taglibs/async/await-tag-transformer.js.html +0 -353
  186. package/coverage/lcov-report/marko-v4/taglibs/async/await-tag.js.html +0 -779
  187. package/coverage/lcov-report/marko-v4/taglibs/async/client-reorder-browser.js.html +0 -65
  188. package/coverage/lcov-report/marko-v4/taglibs/async/client-reorder-runtime.js.html +0 -167
  189. package/coverage/lcov-report/marko-v4/taglibs/async/client-reorder-runtime.min.js.html +0 -65
  190. package/coverage/lcov-report/marko-v4/taglibs/async/client-reorder.js.html +0 -98
  191. package/coverage/lcov-report/marko-v4/taglibs/async/index.html +0 -197
  192. package/coverage/lcov-report/marko-v4/taglibs/cache/cached-fragment-tag-transformer.js.html +0 -89
  193. package/coverage/lcov-report/marko-v4/taglibs/cache/cached-fragment-tag.js.html +0 -266
  194. package/coverage/lcov-report/marko-v4/taglibs/cache/default-cache-manager.js.html +0 -173
  195. package/coverage/lcov-report/marko-v4/taglibs/cache/index.html +0 -119
  196. package/coverage/lcov-report/marko-v4/taglibs/core/assign-tag.js.html +0 -116
  197. package/coverage/lcov-report/marko-v4/taglibs/core/core-transformer.js.html +0 -683
  198. package/coverage/lcov-report/marko-v4/taglibs/core/else-if-tag.js.html +0 -140
  199. package/coverage/lcov-report/marko-v4/taglibs/core/else-tag.js.html +0 -170
  200. package/coverage/lcov-report/marko-v4/taglibs/core/for-tag.js.html +0 -131
  201. package/coverage/lcov-report/marko-v4/taglibs/core/if-tag.js.html +0 -140
  202. package/coverage/lcov-report/marko-v4/taglibs/core/include-html-tag-browser.js.html +0 -113
  203. package/coverage/lcov-report/marko-v4/taglibs/core/include-html-tag.js.html +0 -152
  204. package/coverage/lcov-report/marko-v4/taglibs/core/include-tag.js.html +0 -248
  205. package/coverage/lcov-report/marko-v4/taglibs/core/include-text-tag-browser.js.html +0 -113
  206. package/coverage/lcov-report/marko-v4/taglibs/core/include-text-tag.js.html +0 -152
  207. package/coverage/lcov-report/marko-v4/taglibs/core/index.html +0 -314
  208. package/coverage/lcov-report/marko-v4/taglibs/core/invoke-tag.js.html +0 -116
  209. package/coverage/lcov-report/marko-v4/taglibs/core/macro-body-tag.js.html +0 -83
  210. package/coverage/lcov-report/marko-v4/taglibs/core/macro-tag.js.html +0 -131
  211. package/coverage/lcov-report/marko-v4/taglibs/core/marko-preserve-whitespace-tag.js.html +0 -71
  212. package/coverage/lcov-report/marko-v4/taglibs/core/unless-tag.js.html +0 -143
  213. package/coverage/lcov-report/marko-v4/taglibs/core/util/createLoopNode.js.html +0 -128
  214. package/coverage/lcov-report/marko-v4/taglibs/core/util/index.html +0 -119
  215. package/coverage/lcov-report/marko-v4/taglibs/core/util/parseFor.js.html +0 -1145
  216. package/coverage/lcov-report/marko-v4/taglibs/core/util/parseJavaScriptIdentifier.js.html +0 -131
  217. package/coverage/lcov-report/marko-v4/taglibs/core/var-tag.js.html +0 -152
  218. package/coverage/lcov-report/marko-v4/taglibs/core/while-tag.js.html +0 -95
  219. package/coverage/lcov-report/marko-v4/taglibs/html/html-comment-tag.js.html +0 -146
  220. package/coverage/lcov-report/marko-v4/taglibs/html/index.html +0 -93
  221. package/coverage/lcov-report/marko-v4/taglibs/layout/index.html +0 -132
  222. package/coverage/lcov-report/marko-v4/taglibs/layout/placeholder-tag.js.html +0 -107
  223. package/coverage/lcov-report/marko-v4/taglibs/layout/put-tag.js.html +0 -77
  224. package/coverage/lcov-report/marko-v4/taglibs/layout/use-tag-transformer.js.html +0 -137
  225. package/coverage/lcov-report/marko-v4/taglibs/layout/use-tag.js.html +0 -134
  226. package/coverage/lcov-report/marko-v4/vdom.js.html +0 -65
  227. package/coverage/lcov-report/prettify.css +0 -1
  228. package/coverage/lcov-report/prettify.js +0 -1
  229. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  230. package/coverage/lcov-report/sorter.js +0 -158
  231. package/coverage/lcov.info +0 -13662
@@ -1,548 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <title>Code coverage report for marko-v4/compiler/taglib-loader/scanTagsDir.js</title>
5
- <meta charset="utf-8" />
6
- <link rel="stylesheet" href="../../../prettify.css" />
7
- <link rel="stylesheet" href="../../../base.css" />
8
- <meta name="viewport" content="width=device-width, initial-scale=1">
9
- <style type='text/css'>
10
- .coverage-summary .sorter {
11
- background-image: url(../../../sort-arrow-sprite.png);
12
- }
13
- </style>
14
- </head>
15
- <body>
16
- <div class='wrapper'>
17
- <div class='pad1'>
18
- <h1>
19
- <a href="../../../index.html">all files</a> / <a href="index.html">marko-v4/compiler/taglib-loader/</a> scanTagsDir.js
20
- </h1>
21
- <div class='clearfix'>
22
- <div class='fl pad1y space-right2'>
23
- <span class="strong">89.29% </span>
24
- <span class="quiet">Statements</span>
25
- <span class='fraction'>75/84</span>
26
- </div>
27
- <div class='fl pad1y space-right2'>
28
- <span class="strong">84.62% </span>
29
- <span class="quiet">Branches</span>
30
- <span class='fraction'>44/52</span>
31
- </div>
32
- <div class='fl pad1y space-right2'>
33
- <span class="strong">100% </span>
34
- <span class="quiet">Functions</span>
35
- <span class='fraction'>3/3</span>
36
- </div>
37
- <div class='fl pad1y space-right2'>
38
- <span class="strong">89.29% </span>
39
- <span class="quiet">Lines</span>
40
- <span class='fraction'>75/84</span>
41
- </div>
42
- </div>
43
- </div>
44
- <div class='status-line high'></div>
45
- <pre><table class="coverage">
46
- <tr><td class="line-count quiet">1
47
- 2
48
- 3
49
- 4
50
- 5
51
- 6
52
- 7
53
- 8
54
- 9
55
- 10
56
- 11
57
- 12
58
- 13
59
- 14
60
- 15
61
- 16
62
- 17
63
- 18
64
- 19
65
- 20
66
- 21
67
- 22
68
- 23
69
- 24
70
- 25
71
- 26
72
- 27
73
- 28
74
- 29
75
- 30
76
- 31
77
- 32
78
- 33
79
- 34
80
- 35
81
- 36
82
- 37
83
- 38
84
- 39
85
- 40
86
- 41
87
- 42
88
- 43
89
- 44
90
- 45
91
- 46
92
- 47
93
- 48
94
- 49
95
- 50
96
- 51
97
- 52
98
- 53
99
- 54
100
- 55
101
- 56
102
- 57
103
- 58
104
- 59
105
- 60
106
- 61
107
- 62
108
- 63
109
- 64
110
- 65
111
- 66
112
- 67
113
- 68
114
- 69
115
- 70
116
- 71
117
- 72
118
- 73
119
- 74
120
- 75
121
- 76
122
- 77
123
- 78
124
- 79
125
- 80
126
- 81
127
- 82
128
- 83
129
- 84
130
- 85
131
- 86
132
- 87
133
- 88
134
- 89
135
- 90
136
- 91
137
- 92
138
- 93
139
- 94
140
- 95
141
- 96
142
- 97
143
- 98
144
- 99
145
- 100
146
- 101
147
- 102
148
- 103
149
- 104
150
- 105
151
- 106
152
- 107
153
- 108
154
- 109
155
- 110
156
- 111
157
- 112
158
- 113
159
- 114
160
- 115
161
- 116
162
- 117
163
- 118
164
- 119
165
- 120
166
- 121
167
- 122
168
- 123
169
- 124
170
- 125
171
- 126
172
- 127
173
- 128
174
- 129
175
- 130
176
- 131
177
- 132
178
- 133
179
- 134
180
- 135
181
- 136
182
- 137
183
- 138
184
- 139
185
- 140
186
- 141
187
- 142
188
- 143
189
- 144
190
- 145
191
- 146
192
- 147
193
- 148
194
- 149
195
- 150
196
- 151
197
- 152
198
- 153
199
- 154
200
- 155
201
- 156
202
- 157
203
- 158
204
- 159
205
- 160
206
- 161
207
- 162</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
208
- <span class="cline-any cline-neutral">&nbsp;</span>
209
- <span class="cline-any cline-neutral">&nbsp;</span>
210
- <span class="cline-any cline-neutral">&nbsp;</span>
211
- <span class="cline-any cline-neutral">&nbsp;</span>
212
- <span class="cline-any cline-neutral">&nbsp;</span>
213
- <span class="cline-any cline-neutral">&nbsp;</span>
214
- <span class="cline-any cline-neutral">&nbsp;</span>
215
- <span class="cline-any cline-neutral">&nbsp;</span>
216
- <span class="cline-any cline-neutral">&nbsp;</span>
217
- <span class="cline-any cline-neutral">&nbsp;</span>
218
- <span class="cline-any cline-neutral">&nbsp;</span>
219
- <span class="cline-any cline-neutral">&nbsp;</span>
220
- <span class="cline-any cline-neutral">&nbsp;</span>
221
- <span class="cline-any cline-neutral">&nbsp;</span>
222
- <span class="cline-any cline-neutral">&nbsp;</span>
223
- <span class="cline-any cline-neutral">&nbsp;</span>
224
- <span class="cline-any cline-yes">1×</span>
225
- <span class="cline-any cline-yes">1×</span>
226
- <span class="cline-any cline-yes">1×</span>
227
- <span class="cline-any cline-yes">1×</span>
228
- <span class="cline-any cline-yes">1×</span>
229
- <span class="cline-any cline-yes">1×</span>
230
- <span class="cline-any cline-yes">1×</span>
231
- <span class="cline-any cline-neutral">&nbsp;</span>
232
- <span class="cline-any cline-yes">1×</span>
233
- <span class="cline-any cline-yes">53×</span>
234
- <span class="cline-any cline-neutral">&nbsp;</span>
235
- <span class="cline-any cline-neutral">&nbsp;</span>
236
- <span class="cline-any cline-neutral">&nbsp;</span>
237
- <span class="cline-any cline-neutral">&nbsp;</span>
238
- <span class="cline-any cline-neutral">&nbsp;</span>
239
- <span class="cline-any cline-neutral">&nbsp;</span>
240
- <span class="cline-any cline-neutral">&nbsp;</span>
241
- <span class="cline-any cline-neutral">&nbsp;</span>
242
- <span class="cline-any cline-neutral">&nbsp;</span>
243
- <span class="cline-any cline-neutral">&nbsp;</span>
244
- <span class="cline-any cline-yes">1×</span>
245
- <span class="cline-any cline-neutral">&nbsp;</span>
246
- <span class="cline-any cline-yes">524×</span>
247
- <span class="cline-any cline-neutral">&nbsp;</span>
248
- <span class="cline-any cline-yes">524×</span>
249
- <span class="cline-any cline-yes">92×</span>
250
- <span class="cline-any cline-neutral">&nbsp;</span>
251
- <span class="cline-any cline-neutral">&nbsp;</span>
252
- <span class="cline-any cline-yes">432×</span>
253
- <span class="cline-any cline-yes">2592×</span>
254
- <span class="cline-any cline-neutral">&nbsp;</span>
255
- <span class="cline-any cline-yes">432×</span>
256
- <span class="cline-any cline-neutral">&nbsp;</span>
257
- <span class="cline-any cline-yes">2160×</span>
258
- <span class="cline-any cline-yes">2160×</span>
259
- <span class="cline-any cline-no">&nbsp;</span>
260
- <span class="cline-any cline-neutral">&nbsp;</span>
261
- <span class="cline-any cline-neutral">&nbsp;</span>
262
- <span class="cline-any cline-neutral">&nbsp;</span>
263
- <span class="cline-any cline-neutral">&nbsp;</span>
264
- <span class="cline-any cline-neutral">&nbsp;</span>
265
- <span class="cline-any cline-neutral">&nbsp;</span>
266
- <span class="cline-any cline-neutral">&nbsp;</span>
267
- <span class="cline-any cline-neutral">&nbsp;</span>
268
- <span class="cline-any cline-neutral">&nbsp;</span>
269
- <span class="cline-any cline-neutral">&nbsp;</span>
270
- <span class="cline-any cline-yes">1×</span>
271
- <span class="cline-any cline-yes">104×</span>
272
- <span class="cline-any cline-neutral">&nbsp;</span>
273
- <span class="cline-any cline-yes">104×</span>
274
- <span class="cline-any cline-no">&nbsp;</span>
275
- <span class="cline-any cline-no">&nbsp;</span>
276
- <span class="cline-any cline-neutral">&nbsp;</span>
277
- <span class="cline-any cline-neutral">&nbsp;</span>
278
- <span class="cline-any cline-yes">104×</span>
279
- <span class="cline-any cline-neutral">&nbsp;</span>
280
- <span class="cline-any cline-yes">104×</span>
281
- <span class="cline-any cline-neutral">&nbsp;</span>
282
- <span class="cline-any cline-neutral">&nbsp;</span>
283
- <span class="cline-any cline-yes">104×</span>
284
- <span class="cline-any cline-yes">104×</span>
285
- <span class="cline-any cline-yes">103×</span>
286
- <span class="cline-any cline-neutral">&nbsp;</span>
287
- <span class="cline-any cline-yes">103×</span>
288
- <span class="cline-any cline-yes">131×</span>
289
- <span class="cline-any cline-yes">131×</span>
290
- <span class="cline-any cline-yes">131×</span>
291
- <span class="cline-any cline-no">&nbsp;</span>
292
- <span class="cline-any cline-neutral">&nbsp;</span>
293
- <span class="cline-any cline-neutral">&nbsp;</span>
294
- <span class="cline-any cline-yes">131×</span>
295
- <span class="cline-any cline-yes">131×</span>
296
- <span class="cline-any cline-yes">131×</span>
297
- <span class="cline-any cline-yes">131×</span>
298
- <span class="cline-any cline-neutral">&nbsp;</span>
299
- <span class="cline-any cline-yes">131×</span>
300
- <span class="cline-any cline-yes">131×</span>
301
- <span class="cline-any cline-yes">131×</span>
302
- <span class="cline-any cline-yes">131×</span>
303
- <span class="cline-any cline-yes">131×</span>
304
- <span class="cline-any cline-yes">131×</span>
305
- <span class="cline-any cline-yes">131×</span>
306
- <span class="cline-any cline-yes">131×</span>
307
- <span class="cline-any cline-neutral">&nbsp;</span>
308
- <span class="cline-any cline-yes">131×</span>
309
- <span class="cline-any cline-yes">131×</span>
310
- <span class="cline-any cline-yes">78×</span>
311
- <span class="cline-any cline-neutral">&nbsp;</span>
312
- <span class="cline-any cline-yes">78×</span>
313
- <span class="cline-any cline-yes">78×</span>
314
- <span class="cline-any cline-neutral">&nbsp;</span>
315
- <span class="cline-any cline-no">&nbsp;</span>
316
- <span class="cline-any cline-neutral">&nbsp;</span>
317
- <span class="cline-any cline-neutral">&nbsp;</span>
318
- <span class="cline-any cline-yes">53×</span>
319
- <span class="cline-any cline-yes">53×</span>
320
- <span class="cline-any cline-neutral">&nbsp;</span>
321
- <span class="cline-any cline-neutral">&nbsp;</span>
322
- <span class="cline-any cline-yes">131×</span>
323
- <span class="cline-any cline-yes">74×</span>
324
- <span class="cline-any cline-yes">24×</span>
325
- <span class="cline-any cline-yes">50×</span>
326
- <span class="cline-any cline-yes">4×</span>
327
- <span class="cline-any cline-yes">46×</span>
328
- <span class="cline-any cline-yes">34×</span>
329
- <span class="cline-any cline-yes">12×</span>
330
- <span class="cline-any cline-no">&nbsp;</span>
331
- <span class="cline-any cline-yes">12×</span>
332
- <span class="cline-any cline-no">&nbsp;</span>
333
- <span class="cline-any cline-yes">12×</span>
334
- <span class="cline-any cline-yes">10×</span>
335
- <span class="cline-any cline-yes">2×</span>
336
- <span class="cline-any cline-no">&nbsp;</span>
337
- <span class="cline-any cline-neutral">&nbsp;</span>
338
- <span class="cline-any cline-yes">2×</span>
339
- <span class="cline-any cline-no">&nbsp;</span>
340
- <span class="cline-any cline-neutral">&nbsp;</span>
341
- <span class="cline-any cline-neutral">&nbsp;</span>
342
- <span class="cline-any cline-yes">2×</span>
343
- <span class="cline-any cline-neutral">&nbsp;</span>
344
- <span class="cline-any cline-neutral">&nbsp;</span>
345
- <span class="cline-any cline-neutral">&nbsp;</span>
346
- <span class="cline-any cline-neutral">&nbsp;</span>
347
- <span class="cline-any cline-yes">129×</span>
348
- <span class="cline-any cline-yes">49×</span>
349
- <span class="cline-any cline-yes">49×</span>
350
- <span class="cline-any cline-yes">49×</span>
351
- <span class="cline-any cline-yes">6×</span>
352
- <span class="cline-any cline-neutral">&nbsp;</span>
353
- <span class="cline-any cline-neutral">&nbsp;</span>
354
- <span class="cline-any cline-neutral">&nbsp;</span>
355
- <span class="cline-any cline-yes">129×</span>
356
- <span class="cline-any cline-neutral">&nbsp;</span>
357
- <span class="cline-any cline-yes">129×</span>
358
- <span class="cline-any cline-yes">78×</span>
359
- <span class="cline-any cline-neutral">&nbsp;</span>
360
- <span class="cline-any cline-yes">51×</span>
361
- <span class="cline-any cline-neutral">&nbsp;</span>
362
- <span class="cline-any cline-neutral">&nbsp;</span>
363
- <span class="cline-any cline-yes">129×</span>
364
- <span class="cline-any cline-yes">129×</span>
365
- <span class="cline-any cline-yes">129×</span>
366
- <span class="cline-any cline-neutral">&nbsp;</span>
367
- <span class="cline-any cline-neutral">&nbsp;</span>
368
- <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">/*
369
- * Copyright 2011 eBay Software Foundation
370
- *
371
- * Licensed under the Apache License, Version 2.0 (the "License");
372
- * you may not use this file except in compliance with the License.
373
- * You may obtain a copy of the License at
374
- *
375
- * http://www.apache.org/licenses/LICENSE-2.0
376
- *
377
- * Unless required by applicable law or agreed to in writing, software
378
- * distributed under the License is distributed on an "AS IS" BASIS,
379
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
380
- * See the License for the specific language governing permissions and
381
- * limitations under the License.
382
- */
383
- 'use strict';
384
- &nbsp;
385
- var nodePath = require('path');
386
- var fs = require('fs');
387
- var stripJsonComments = require('strip-json-comments');
388
- var tagDefFromCode = require('./tag-def-from-code');
389
- var loader = require('./loader');
390
- var fsReadOptions = { encoding: 'utf8' };
391
- var extend = require('raptor-util/extend');
392
- &nbsp;
393
- function createDefaultTagDef() {
394
- return {
395
- attributes: {
396
- '*': {
397
- type: 'string',
398
- targetProperty: null,
399
- preserveName: false
400
- }
401
- }
402
- };
403
- }
404
- &nbsp;
405
- function scanRequireExtensions(baseFilename) {
406
- // .js is the most common case so check that first
407
- var path = baseFilename + '.js';
408
- &nbsp;
409
- if (fs.existsSync(path)) {
410
- return path;
411
- }
412
- &nbsp;
413
- for (var extension in require.extensions) {
414
- if (extension === '.js') {
415
- // We already checked .js above
416
- continue;
417
- }
418
- path = baseFilename + extension;
419
- <span class="missing-if-branch" title="if path not taken" >I</span>if (fs.existsSync(path)) {
420
- <span class="cstat-no" title="statement not covered" > return path; </span>// short circuit loop
421
- }
422
- }
423
- }
424
- &nbsp;
425
- /**
426
- * @param {String} tagsConfigPath path to tag definition file
427
- * @param {String} tagsConfigDirname path to directory of tags config file (should be path.dirname(tagsConfigPath))
428
- * @param {String|Object} dir the path to directory to scan
429
- * @param {String} taglib the taglib that is being loaded
430
- */
431
- module.exports = function scanTagsDir(tagsConfigPath, tagsConfigDirname, dir, taglib, dependencyChain) {
432
- var prefix;
433
- &nbsp;
434
- <span class="missing-if-branch" title="if path not taken" >I</span>if (typeof dir === 'object') {
435
- <span class="cstat-no" title="statement not covered" > prefix = dir.prefix;</span>
436
- <span class="cstat-no" title="statement not covered" > dir = dir.path;</span>
437
- }
438
- &nbsp;
439
- <span class="missing-if-branch" title="else path not taken" >E</span>if (prefix == null) {
440
- // no prefix by default
441
- prefix = '';
442
- }
443
- &nbsp;
444
- dir = nodePath.resolve(tagsConfigDirname, dir);
445
- var children = fs.readdirSync(dir);
446
- var rendererJSFile;
447
- &nbsp;
448
- for (var i=0, len=children.length; i&lt;len; i++) {
449
- rendererJSFile = null;
450
- var childFilename = children[i];
451
- <span class="missing-if-branch" title="if path not taken" >I</span>if (childFilename === 'node_modules') {
452
- <span class="cstat-no" title="statement not covered" > continue;</span>
453
- }
454
- &nbsp;
455
- var tagName = prefix + childFilename;
456
- var tagDirname = nodePath.join(dir, childFilename);
457
- var tagFilePath = nodePath.join(tagDirname, 'marko-tag.json');
458
- var tag = null;
459
- &nbsp;
460
- var rendererFile = scanRequireExtensions(nodePath.join(tagDirname, 'renderer'));
461
- var indexFile = scanRequireExtensions(nodePath.join(tagDirname, 'index'));
462
- var templateFile = nodePath.join(tagDirname, 'template.marko');
463
- var templateFileAlt = nodePath.join(tagDirname, 'template.html');
464
- var templateFileAlt2 = nodePath.join(tagDirname, 'template.marko.html');
465
- var codeGeneratorFile = scanRequireExtensions(nodePath.join(tagDirname, 'code-generator'));
466
- var nodeFactoryFile = scanRequireExtensions(nodePath.join(tagDirname, 'node-factory'));
467
- var tagDef = null;
468
- &nbsp;
469
- var hasTagFile = false;
470
- if (fs.existsSync(tagFilePath)) {
471
- hasTagFile = true;
472
- // marko-tag.json exists in the directory, use that as the tag definition
473
- try {
474
- tagDef = JSON.parse(stripJsonComments(fs.readFileSync(tagFilePath, fsReadOptions)));
475
- } catch(e) {
476
- <span class="cstat-no" title="statement not covered" > throw new Error('Unable to parse JSON file at path "' + tagFilePath + '". Error: ' + e);</span>
477
- }
478
- } else {
479
- tagFilePath = null;
480
- tagDef = createDefaultTagDef();
481
- }
482
- &nbsp;
483
- if (!tagDef.renderer &amp;&amp; !tagDef.template &amp;&amp; !tagDef['code-generator'] &amp;&amp; !tagDef['node-factory'] &amp;&amp; !tagDef.transformer) {
484
- if (rendererFile) {
485
- tagDef.renderer = rendererFile;
486
- } else if (indexFile) {
487
- tagDef.renderer = indexFile;
488
- } else if (fs.existsSync(templateFile)) {
489
- tagDef.template = templateFile;
490
- } else <span class="missing-if-branch" title="if path not taken" >I</span>if (fs.existsSync(templateFileAlt)) {
491
- <span class="cstat-no" title="statement not covered" > tagDef.template = templateFileAlt;</span>
492
- } else <span class="missing-if-branch" title="if path not taken" >I</span>if (fs.existsSync(templateFileAlt2)) {
493
- <span class="cstat-no" title="statement not covered" > tagDef.template = templateFileAlt2;</span>
494
- } else if (fs.existsSync(codeGeneratorFile)) {
495
- tagDef['code-generator'] = codeGeneratorFile;
496
- } else <span class="missing-if-branch" title="if path not taken" >I</span>if (fs.existsSync(nodeFactoryFile)) {
497
- <span class="cstat-no" title="statement not covered" > tagDef['node-factory'] = nodeFactoryFile;</span>
498
- } else {
499
- <span class="missing-if-branch" title="if path not taken" >I</span>if (hasTagFile) {
500
- <span class="cstat-no" title="statement not covered" > throw new Error('Invalid tag file: ' + tagFilePath + '. Neither a renderer or a template was found for tag. ' + JSON.stringify(tagDef, null, 2));</span>
501
- } else {
502
- // Skip this directory... there doesn't appear to be anything in it
503
- continue;
504
- }
505
- }
506
- }
507
- &nbsp;
508
- if (!hasTagFile &amp;&amp; (tagDef.renderer || tagDef.template)) {
509
- let templateCode = fs.readFileSync(tagDef.renderer || tagDef.template, fsReadOptions);
510
- let extractedTagDef = tagDefFromCode.extractTagDef(templateCode);
511
- if (extractedTagDef) {
512
- extend(tagDef, extractedTagDef);
513
- }
514
- }
515
- &nbsp;
516
- let tagDependencyChain;
517
- &nbsp;
518
- if (tagFilePath) {
519
- tagDependencyChain = dependencyChain.append(tagFilePath);
520
- } else {
521
- tagDependencyChain = dependencyChain.append(tagDirname);
522
- }
523
- &nbsp;
524
- tag = loader.tagLoader.loadTag(tagDef, tagFilePath || tagDirname, tagDependencyChain);
525
- tag.name = tag.name || tagName;
526
- taglib.addTag(tag);
527
- }
528
- };
529
- &nbsp;</pre></td></tr>
530
- </table></pre>
531
- <div class='push'></div><!-- for sticky footer -->
532
- </div><!-- /wrapper -->
533
- <div class='footer quiet pad2 space-top1 center small'>
534
- Code coverage
535
- generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 18 2016 14:11:32 GMT-0700 (PDT)
536
- </div>
537
- </div>
538
- <script src="../../../prettify.js"></script>
539
- <script>
540
- window.onload = function () {
541
- if (typeof prettyPrint === 'function') {
542
- prettyPrint();
543
- }
544
- };
545
- </script>
546
- <script src="../../../sorter.js"></script>
547
- </body>
548
- </html>