marko 2.11.1 → 2.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. package/package.json +2 -2
  2. package/.npmignore +0 -1
  3. package/coverage/coverage.json +0 -1
  4. package/coverage/lcov-report/base.css +0 -213
  5. package/coverage/lcov-report/index.html +0 -496
  6. package/coverage/lcov-report/marko-v4/bin/index.html +0 -93
  7. package/coverage/lcov-report/marko-v4/bin/markoc.js.html +0 -1160
  8. package/coverage/lcov-report/marko-v4/browser-refresh/index.html +0 -93
  9. package/coverage/lcov-report/marko-v4/browser-refresh/index.js.html +0 -191
  10. package/coverage/lcov-report/marko-v4/compiler/Builder.js.html +0 -1859
  11. package/coverage/lcov-report/marko-v4/compiler/CodeGenerator.js.html +0 -998
  12. package/coverage/lcov-report/marko-v4/compiler/CodeWriter.js.html +0 -851
  13. package/coverage/lcov-report/marko-v4/compiler/CompileContext.js.html +0 -1955
  14. package/coverage/lcov-report/marko-v4/compiler/CompileError.js.html +0 -206
  15. package/coverage/lcov-report/marko-v4/compiler/Compiler.js.html +0 -473
  16. package/coverage/lcov-report/marko-v4/compiler/HtmlJsParser.js.html +0 -341
  17. package/coverage/lcov-report/marko-v4/compiler/InlineCompiler.js.html +0 -317
  18. package/coverage/lcov-report/marko-v4/compiler/Parser.js.html +0 -1271
  19. package/coverage/lcov-report/marko-v4/compiler/Walker.js.html +0 -521
  20. package/coverage/lcov-report/marko-v4/compiler/ast/ArrayContainer.js.html +0 -653
  21. package/coverage/lcov-report/marko-v4/compiler/ast/ArrayExpression.js.html +0 -278
  22. package/coverage/lcov-report/marko-v4/compiler/ast/Assignment.js.html +0 -299
  23. package/coverage/lcov-report/marko-v4/compiler/ast/AttributePlaceholder.js.html +0 -173
  24. package/coverage/lcov-report/marko-v4/compiler/ast/BinaryExpression.js.html +0 -428
  25. package/coverage/lcov-report/marko-v4/compiler/ast/Code.js.html +0 -149
  26. package/coverage/lcov-report/marko-v4/compiler/ast/ConditionalExpression.js.html +0 -239
  27. package/coverage/lcov-report/marko-v4/compiler/ast/Container.js.html +0 -101
  28. package/coverage/lcov-report/marko-v4/compiler/ast/ContainerNode.js.html +0 -122
  29. package/coverage/lcov-report/marko-v4/compiler/ast/CustomTag.js.html +0 -1250
  30. package/coverage/lcov-report/marko-v4/compiler/ast/Declaration.js.html +0 -146
  31. package/coverage/lcov-report/marko-v4/compiler/ast/DocumentType.js.html +0 -146
  32. package/coverage/lcov-report/marko-v4/compiler/ast/Else.js.html +0 -161
  33. package/coverage/lcov-report/marko-v4/compiler/ast/ElseIf.js.html +0 -152
  34. package/coverage/lcov-report/marko-v4/compiler/ast/Expression.js.html +0 -152
  35. package/coverage/lcov-report/marko-v4/compiler/ast/ForEach.js.html +0 -314
  36. package/coverage/lcov-report/marko-v4/compiler/ast/ForEachProp.js.html +0 -290
  37. package/coverage/lcov-report/marko-v4/compiler/ast/ForRange.js.html +0 -374
  38. package/coverage/lcov-report/marko-v4/compiler/ast/ForStatement.js.html +0 -245
  39. package/coverage/lcov-report/marko-v4/compiler/ast/FunctionCall.js.html +0 -374
  40. package/coverage/lcov-report/marko-v4/compiler/ast/FunctionDeclaration.js.html +0 -296
  41. package/coverage/lcov-report/marko-v4/compiler/ast/Html.js.html +0 -311
  42. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/html/generateCode.js.html +0 -473
  43. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/html/index.html +0 -93
  44. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/index.html +0 -93
  45. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/index.js.html +0 -317
  46. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/vdom/generateCode.js.html +0 -128
  47. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttribute/vdom/index.html +0 -93
  48. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlAttributeCollection.js.html +0 -521
  49. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlComment.js.html +0 -182
  50. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/html/EndTag.js.html +0 -131
  51. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/html/StartTag.js.html +0 -227
  52. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/html/generateCode.js.html +0 -299
  53. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/html/index.html +0 -119
  54. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/index.html +0 -93
  55. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/index.js.html +0 -578
  56. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/vdom/EndElementVDOM.js.html +0 -104
  57. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/vdom/HtmlElementVDOM.js.html +0 -620
  58. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/vdom/generateCode.js.html +0 -326
  59. package/coverage/lcov-report/marko-v4/compiler/ast/HtmlElement/vdom/index.html +0 -119
  60. package/coverage/lcov-report/marko-v4/compiler/ast/Identifier.js.html +0 -137
  61. package/coverage/lcov-report/marko-v4/compiler/ast/If.js.html +0 -347
  62. package/coverage/lcov-report/marko-v4/compiler/ast/InvokeMacro.js.html +0 -425
  63. package/coverage/lcov-report/marko-v4/compiler/ast/Literal.js.html +0 -320
  64. package/coverage/lcov-report/marko-v4/compiler/ast/LogicalExpression.js.html +0 -359
  65. package/coverage/lcov-report/marko-v4/compiler/ast/Macro.js.html +0 -176
  66. package/coverage/lcov-report/marko-v4/compiler/ast/MemberExpression.js.html +0 -308
  67. package/coverage/lcov-report/marko-v4/compiler/ast/NewExpression.js.html +0 -395
  68. package/coverage/lcov-report/marko-v4/compiler/ast/Node.js.html +0 -1235
  69. package/coverage/lcov-report/marko-v4/compiler/ast/ObjectExpression.js.html +0 -290
  70. package/coverage/lcov-report/marko-v4/compiler/ast/Program.js.html +0 -134
  71. package/coverage/lcov-report/marko-v4/compiler/ast/Property.js.html +0 -257
  72. package/coverage/lcov-report/marko-v4/compiler/ast/Return.js.html +0 -170
  73. package/coverage/lcov-report/marko-v4/compiler/ast/Scriptlet.js.html +0 -152
  74. package/coverage/lcov-report/marko-v4/compiler/ast/SelfInvokingFunction.js.html +0 -155
  75. package/coverage/lcov-report/marko-v4/compiler/ast/TemplateRoot.js.html +0 -344
  76. package/coverage/lcov-report/marko-v4/compiler/ast/Text/html/generateCode.js.html +0 -245
  77. package/coverage/lcov-report/marko-v4/compiler/ast/Text/html/index.html +0 -93
  78. package/coverage/lcov-report/marko-v4/compiler/ast/Text/index.html +0 -93
  79. package/coverage/lcov-report/marko-v4/compiler/ast/Text/index.js.html +0 -215
  80. package/coverage/lcov-report/marko-v4/compiler/ast/Text/vdom/TextVDOM.js.html +0 -407
  81. package/coverage/lcov-report/marko-v4/compiler/ast/Text/vdom/generateCode.js.html +0 -179
  82. package/coverage/lcov-report/marko-v4/compiler/ast/Text/vdom/index.html +0 -106
  83. package/coverage/lcov-report/marko-v4/compiler/ast/ThisExpression.js.html +0 -131
  84. package/coverage/lcov-report/marko-v4/compiler/ast/UnaryExpression.js.html +0 -365
  85. package/coverage/lcov-report/marko-v4/compiler/ast/UpdateExpression.js.html +0 -341
  86. package/coverage/lcov-report/marko-v4/compiler/ast/VariableDeclarator.js.html +0 -221
  87. package/coverage/lcov-report/marko-v4/compiler/ast/Vars.js.html +0 -290
  88. package/coverage/lcov-report/marko-v4/compiler/ast/WhileStatement.js.html +0 -173
  89. package/coverage/lcov-report/marko-v4/compiler/ast/index.html +0 -678
  90. package/coverage/lcov-report/marko-v4/compiler/config.js.html +0 -194
  91. package/coverage/lcov-report/marko-v4/compiler/index.html +0 -236
  92. package/coverage/lcov-report/marko-v4/compiler/index.js.html +0 -695
  93. package/coverage/lcov-report/marko-v4/compiler/taglib-finder/index-browser.js.html +0 -158
  94. package/coverage/lcov-report/marko-v4/compiler/taglib-finder/index.html +0 -106
  95. package/coverage/lcov-report/marko-v4/compiler/taglib-finder/index.js.html +0 -632
  96. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/DependencyChain.js.html +0 -113
  97. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Attribute.js.html +0 -155
  98. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/ImportedVariable.js.html +0 -140
  99. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/NestedVariable.js.html +0 -134
  100. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Property.js.html +0 -140
  101. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Tag.js.html +0 -797
  102. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Taglib.js.html +0 -440
  103. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/Transformer.js.html +0 -236
  104. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/index.html +0 -184
  105. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/Taglib/index.js.html +0 -65
  106. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/handleAttributes.js.html +0 -161
  107. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/index.html +0 -236
  108. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/index.js.html +0 -191
  109. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/json-file-reader-browser.js.html +0 -143
  110. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/json-file-reader.js.html +0 -155
  111. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/loader-attribute.js.html +0 -659
  112. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/loader-tag.js.html +0 -1931
  113. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/loader-taglib.js.html +0 -1010
  114. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/loader.js.html +0 -119
  115. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/scanTagsDir-browser.js.html +0 -119
  116. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/scanTagsDir.js.html +0 -548
  117. package/coverage/lcov-report/marko-v4/compiler/taglib-loader/tag-def-from-code.js.html +0 -287
  118. package/coverage/lcov-report/marko-v4/compiler/taglib-lookup/TaglibLookup.js.html +0 -1205
  119. package/coverage/lcov-report/marko-v4/compiler/taglib-lookup/index.html +0 -106
  120. package/coverage/lcov-report/marko-v4/compiler/taglib-lookup/index.js.html +0 -302
  121. package/coverage/lcov-report/marko-v4/compiler/util/PosInfo.js.html +0 -140
  122. package/coverage/lcov-report/marko-v4/compiler/util/UniqueVars.js.html +0 -227
  123. package/coverage/lcov-report/marko-v4/compiler/util/adjustIndent.js.html +0 -272
  124. package/coverage/lcov-report/marko-v4/compiler/util/deresolve-browser.js.html +0 -119
  125. package/coverage/lcov-report/marko-v4/compiler/util/deresolve.js.html +0 -113
  126. package/coverage/lcov-report/marko-v4/compiler/util/fingerprint.js.html +0 -83
  127. package/coverage/lcov-report/marko-v4/compiler/util/index.html +0 -366
  128. package/coverage/lcov-report/marko-v4/compiler/util/isCompoundExpression.js.html +0 -92
  129. package/coverage/lcov-report/marko-v4/compiler/util/isJavaScriptReservedWord.js.html +0 -80
  130. package/coverage/lcov-report/marko-v4/compiler/util/isValidJavaScriptIdentifier.js.html +0 -80
  131. package/coverage/lcov-report/marko-v4/compiler/util/isValidJavaScriptVarName.js.html +0 -95
  132. package/coverage/lcov-report/marko-v4/compiler/util/javaScriptReservedWords.js.html +0 -260
  133. package/coverage/lcov-report/marko-v4/compiler/util/macros.js.html +0 -326
  134. package/coverage/lcov-report/marko-v4/compiler/util/parseExpression.js.html +0 -77
  135. package/coverage/lcov-report/marko-v4/compiler/util/parseJavaScript.js.html +0 -833
  136. package/coverage/lcov-report/marko-v4/compiler/util/parseJavaScriptArgs.js.html +0 -101
  137. package/coverage/lcov-report/marko-v4/compiler/util/parseStatement.js.html +0 -77
  138. package/coverage/lcov-report/marko-v4/compiler/util/removeComments.js.html +0 -221
  139. package/coverage/lcov-report/marko-v4/compiler/util/removeDashes.js.html +0 -77
  140. package/coverage/lcov-report/marko-v4/compiler/util/resolve-browser.js.html +0 -125
  141. package/coverage/lcov-report/marko-v4/compiler/util/resolve.js.html +0 -128
  142. package/coverage/lcov-report/marko-v4/compiler/util/safeVarName.js.html +0 -116
  143. package/coverage/lcov-report/marko-v4/compiler/util/tokenizer.js.html +0 -173
  144. package/coverage/lcov-report/marko-v4/compiler/util/vdom/VDOMOptimizer.js.html +0 -560
  145. package/coverage/lcov-report/marko-v4/compiler/util/vdom/index.html +0 -119
  146. package/coverage/lcov-report/marko-v4/compiler/util/vdom/index.js.html +0 -119
  147. package/coverage/lcov-report/marko-v4/compiler/util/vdom/isStaticValue.js.html +0 -212
  148. package/coverage/lcov-report/marko-v4/defineRenderer.js.html +0 -206
  149. package/coverage/lcov-report/marko-v4/express.js.html +0 -161
  150. package/coverage/lcov-report/marko-v4/helpers/empty.js.html +0 -77
  151. package/coverage/lcov-report/marko-v4/helpers/index.html +0 -106
  152. package/coverage/lcov-report/marko-v4/helpers/notEmpty.js.html +0 -95
  153. package/coverage/lcov-report/marko-v4/hot-reload/index.html +0 -93
  154. package/coverage/lcov-report/marko-v4/hot-reload/index.js.html +0 -524
  155. package/coverage/lcov-report/marko-v4/index.html +0 -158
  156. package/coverage/lcov-report/marko-v4/node-require-browser.js.html +0 -113
  157. package/coverage/lcov-report/marko-v4/node-require.js.html +0 -434
  158. package/coverage/lcov-report/marko-v4/runtime/deprecate.js.html +0 -131
  159. package/coverage/lcov-report/marko-v4/runtime/forEachPropStatusVar.js.html +0 -158
  160. package/coverage/lcov-report/marko-v4/runtime/helpers.js.html +0 -839
  161. package/coverage/lcov-report/marko-v4/runtime/html/helpers.js.html +0 -506
  162. package/coverage/lcov-report/marko-v4/runtime/html/index.html +0 -106
  163. package/coverage/lcov-report/marko-v4/runtime/html/index.js.html +0 -914
  164. package/coverage/lcov-report/marko-v4/runtime/index.html +0 -145
  165. package/coverage/lcov-report/marko-v4/runtime/inline.js.html +0 -65
  166. package/coverage/lcov-report/marko-v4/runtime/loader/index-browser-dynamic.js.html +0 -128
  167. package/coverage/lcov-report/marko-v4/runtime/loader/index-browser.js.html +0 -119
  168. package/coverage/lcov-report/marko-v4/runtime/loader/index.html +0 -119
  169. package/coverage/lcov-report/marko-v4/runtime/loader/index.js.html +0 -548
  170. package/coverage/lcov-report/marko-v4/runtime/stream.js.html +0 -224
  171. package/coverage/lcov-report/marko-v4/runtime/vdom/helpers.js.html +0 -350
  172. package/coverage/lcov-report/marko-v4/runtime/vdom/index.html +0 -106
  173. package/coverage/lcov-report/marko-v4/runtime/vdom/index.js.html +0 -893
  174. package/coverage/lcov-report/marko-v4/stream.js.html +0 -98
  175. package/coverage/lcov-report/marko-v4/taglibs/async/async-fragment-to-await-transformer.js.html +0 -221
  176. package/coverage/lcov-report/marko-v4/taglibs/async/await-nested-tag-transformer.js.html +0 -140
  177. package/coverage/lcov-report/marko-v4/taglibs/async/await-reorderer-tag.js.html +0 -278
  178. package/coverage/lcov-report/marko-v4/taglibs/async/await-tag-transformer.js.html +0 -353
  179. package/coverage/lcov-report/marko-v4/taglibs/async/await-tag.js.html +0 -779
  180. package/coverage/lcov-report/marko-v4/taglibs/async/client-reorder-browser.js.html +0 -65
  181. package/coverage/lcov-report/marko-v4/taglibs/async/client-reorder-runtime.js.html +0 -167
  182. package/coverage/lcov-report/marko-v4/taglibs/async/client-reorder-runtime.min.js.html +0 -65
  183. package/coverage/lcov-report/marko-v4/taglibs/async/client-reorder.js.html +0 -98
  184. package/coverage/lcov-report/marko-v4/taglibs/async/index.html +0 -197
  185. package/coverage/lcov-report/marko-v4/taglibs/cache/cached-fragment-tag-transformer.js.html +0 -89
  186. package/coverage/lcov-report/marko-v4/taglibs/cache/cached-fragment-tag.js.html +0 -266
  187. package/coverage/lcov-report/marko-v4/taglibs/cache/default-cache-manager.js.html +0 -173
  188. package/coverage/lcov-report/marko-v4/taglibs/cache/index.html +0 -119
  189. package/coverage/lcov-report/marko-v4/taglibs/core/assign-tag.js.html +0 -116
  190. package/coverage/lcov-report/marko-v4/taglibs/core/core-transformer.js.html +0 -683
  191. package/coverage/lcov-report/marko-v4/taglibs/core/else-if-tag.js.html +0 -140
  192. package/coverage/lcov-report/marko-v4/taglibs/core/else-tag.js.html +0 -170
  193. package/coverage/lcov-report/marko-v4/taglibs/core/for-tag.js.html +0 -131
  194. package/coverage/lcov-report/marko-v4/taglibs/core/if-tag.js.html +0 -140
  195. package/coverage/lcov-report/marko-v4/taglibs/core/include-html-tag-browser.js.html +0 -113
  196. package/coverage/lcov-report/marko-v4/taglibs/core/include-html-tag.js.html +0 -152
  197. package/coverage/lcov-report/marko-v4/taglibs/core/include-tag.js.html +0 -248
  198. package/coverage/lcov-report/marko-v4/taglibs/core/include-text-tag-browser.js.html +0 -113
  199. package/coverage/lcov-report/marko-v4/taglibs/core/include-text-tag.js.html +0 -152
  200. package/coverage/lcov-report/marko-v4/taglibs/core/index.html +0 -314
  201. package/coverage/lcov-report/marko-v4/taglibs/core/invoke-tag.js.html +0 -116
  202. package/coverage/lcov-report/marko-v4/taglibs/core/macro-body-tag.js.html +0 -83
  203. package/coverage/lcov-report/marko-v4/taglibs/core/macro-tag.js.html +0 -131
  204. package/coverage/lcov-report/marko-v4/taglibs/core/marko-preserve-whitespace-tag.js.html +0 -71
  205. package/coverage/lcov-report/marko-v4/taglibs/core/unless-tag.js.html +0 -143
  206. package/coverage/lcov-report/marko-v4/taglibs/core/util/createLoopNode.js.html +0 -128
  207. package/coverage/lcov-report/marko-v4/taglibs/core/util/index.html +0 -119
  208. package/coverage/lcov-report/marko-v4/taglibs/core/util/parseFor.js.html +0 -1145
  209. package/coverage/lcov-report/marko-v4/taglibs/core/util/parseJavaScriptIdentifier.js.html +0 -131
  210. package/coverage/lcov-report/marko-v4/taglibs/core/var-tag.js.html +0 -152
  211. package/coverage/lcov-report/marko-v4/taglibs/core/while-tag.js.html +0 -95
  212. package/coverage/lcov-report/marko-v4/taglibs/html/html-comment-tag.js.html +0 -146
  213. package/coverage/lcov-report/marko-v4/taglibs/html/index.html +0 -93
  214. package/coverage/lcov-report/marko-v4/taglibs/layout/index.html +0 -132
  215. package/coverage/lcov-report/marko-v4/taglibs/layout/placeholder-tag.js.html +0 -107
  216. package/coverage/lcov-report/marko-v4/taglibs/layout/put-tag.js.html +0 -77
  217. package/coverage/lcov-report/marko-v4/taglibs/layout/use-tag-transformer.js.html +0 -137
  218. package/coverage/lcov-report/marko-v4/taglibs/layout/use-tag.js.html +0 -134
  219. package/coverage/lcov-report/marko-v4/vdom.js.html +0 -65
  220. package/coverage/lcov-report/prettify.css +0 -1
  221. package/coverage/lcov-report/prettify.js +0 -1
  222. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  223. package/coverage/lcov-report/sorter.js +0 -158
  224. package/coverage/lcov.info +0 -13662
@@ -1,176 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <title>Code coverage report for marko-v4/compiler/ast/Macro.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/ast/</a> Macro.js
20
- </h1>
21
- <div class='clearfix'>
22
- <div class='fl pad1y space-right2'>
23
- <span class="strong">88.89% </span>
24
- <span class="quiet">Statements</span>
25
- <span class='fraction'>16/18</span>
26
- </div>
27
- <div class='fl pad1y space-right2'>
28
- <span class="strong">50% </span>
29
- <span class="quiet">Branches</span>
30
- <span class='fraction'>2/4</span>
31
- </div>
32
- <div class='fl pad1y space-right2'>
33
- <span class="strong">66.67% </span>
34
- <span class="quiet">Functions</span>
35
- <span class='fraction'>2/3</span>
36
- </div>
37
- <div class='fl pad1y space-right2'>
38
- <span class="strong">88.89% </span>
39
- <span class="quiet">Lines</span>
40
- <span class='fraction'>16/18</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</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
84
- <span class="cline-any cline-neutral">&nbsp;</span>
85
- <span class="cline-any cline-yes">1×</span>
86
- <span class="cline-any cline-yes">1×</span>
87
- <span class="cline-any cline-neutral">&nbsp;</span>
88
- <span class="cline-any cline-neutral">&nbsp;</span>
89
- <span class="cline-any cline-neutral">&nbsp;</span>
90
- <span class="cline-any cline-yes">28×</span>
91
- <span class="cline-any cline-yes">28×</span>
92
- <span class="cline-any cline-yes">28×</span>
93
- <span class="cline-any cline-yes">28×</span>
94
- <span class="cline-any cline-neutral">&nbsp;</span>
95
- <span class="cline-any cline-yes">28×</span>
96
- <span class="cline-any cline-no">&nbsp;</span>
97
- <span class="cline-any cline-neutral">&nbsp;</span>
98
- <span class="cline-any cline-yes">28×</span>
99
- <span class="cline-any cline-neutral">&nbsp;</span>
100
- <span class="cline-any cline-neutral">&nbsp;</span>
101
- <span class="cline-any cline-neutral">&nbsp;</span>
102
- <span class="cline-any cline-neutral">&nbsp;</span>
103
- <span class="cline-any cline-yes">28×</span>
104
- <span class="cline-any cline-yes">28×</span>
105
- <span class="cline-any cline-yes">28×</span>
106
- <span class="cline-any cline-yes">28×</span>
107
- <span class="cline-any cline-yes">28×</span>
108
- <span class="cline-any cline-neutral">&nbsp;</span>
109
- <span class="cline-any cline-neutral">&nbsp;</span>
110
- <span class="cline-any cline-yes">28×</span>
111
- <span class="cline-any cline-neutral">&nbsp;</span>
112
- <span class="cline-any cline-yes">28×</span>
113
- <span class="cline-any cline-neutral">&nbsp;</span>
114
- <span class="cline-any cline-neutral">&nbsp;</span>
115
- <span class="cline-any cline-neutral">&nbsp;</span>
116
- <span class="cline-any cline-no">&nbsp;</span>
117
- <span class="cline-any cline-neutral">&nbsp;</span>
118
- <span class="cline-any cline-neutral">&nbsp;</span>
119
- <span class="cline-any cline-neutral">&nbsp;</span>
120
- <span class="cline-any cline-yes">1×</span></td><td class="text"><pre class="prettyprint lang-js">'use strict';
121
- &nbsp;
122
- var Node = require('./Node');
123
- var ok = require('assert').ok;
124
- &nbsp;
125
- class Macro extends Node {
126
- constructor(def) {
127
- super('Macro');
128
- this.name = def.name;
129
- this.params = def.params;
130
- this.body = this.makeContainer(def.body);
131
- &nbsp;
132
- <span class="missing-if-branch" title="if path not taken" >I</span>if (this.params == null) {
133
- <span class="cstat-no" title="statement not covered" > this.params = [];</span>
134
- } else {
135
- ok(Array.isArray(this.params), '"params" should be an array');
136
- }
137
- }
138
- &nbsp;
139
- generateCode(codegen) {
140
- var name = this.name;
141
- var params = this.params || <span class="branch-1 cbranch-no" title="branch not covered" >[];</span>
142
- var builder = codegen.builder;
143
- var macroDef = codegen.context.registerMacro(name, params);
144
- var functionName = macroDef.functionName;
145
- &nbsp;
146
- // Walk the body after registering the macro
147
- var body = codegen.generateCode(this.body);
148
- &nbsp;
149
- return builder.functionDeclaration(functionName, macroDef.params, body);
150
- }
151
- &nbsp;
152
- walk<span class="fstat-no" title="function not covered" >(walker) {</span>
153
- <span class="cstat-no" title="statement not covered" > this.body = walker.walk(this.body);</span>
154
- }
155
- }
156
- &nbsp;
157
- module.exports = Macro;</pre></td></tr>
158
- </table></pre>
159
- <div class='push'></div><!-- for sticky footer -->
160
- </div><!-- /wrapper -->
161
- <div class='footer quiet pad2 space-top1 center small'>
162
- Code coverage
163
- generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 18 2016 14:11:32 GMT-0700 (PDT)
164
- </div>
165
- </div>
166
- <script src="../../../prettify.js"></script>
167
- <script>
168
- window.onload = function () {
169
- if (typeof prettyPrint === 'function') {
170
- prettyPrint();
171
- }
172
- };
173
- </script>
174
- <script src="../../../sorter.js"></script>
175
- </body>
176
- </html>
@@ -1,308 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <title>Code coverage report for marko-v4/compiler/ast/MemberExpression.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/ast/</a> MemberExpression.js
20
- </h1>
21
- <div class='clearfix'>
22
- <div class='fl pad1y space-right2'>
23
- <span class="strong">97.44% </span>
24
- <span class="quiet">Statements</span>
25
- <span class='fraction'>38/39</span>
26
- </div>
27
- <div class='fl pad1y space-right2'>
28
- <span class="strong">87.5% </span>
29
- <span class="quiet">Branches</span>
30
- <span class='fraction'>7/8</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'>6/6</span>
36
- </div>
37
- <div class='fl pad1y space-right2'>
38
- <span class="strong">97.44% </span>
39
- <span class="quiet">Lines</span>
40
- <span class='fraction'>38/39</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</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
128
- <span class="cline-any cline-neutral">&nbsp;</span>
129
- <span class="cline-any cline-yes">1×</span>
130
- <span class="cline-any cline-yes">1×</span>
131
- <span class="cline-any cline-yes">1×</span>
132
- <span class="cline-any cline-neutral">&nbsp;</span>
133
- <span class="cline-any cline-neutral">&nbsp;</span>
134
- <span class="cline-any cline-neutral">&nbsp;</span>
135
- <span class="cline-any cline-yes">4125×</span>
136
- <span class="cline-any cline-yes">4125×</span>
137
- <span class="cline-any cline-yes">4125×</span>
138
- <span class="cline-any cline-yes">4125×</span>
139
- <span class="cline-any cline-neutral">&nbsp;</span>
140
- <span class="cline-any cline-yes">4125×</span>
141
- <span class="cline-any cline-yes">4125×</span>
142
- <span class="cline-any cline-neutral">&nbsp;</span>
143
- <span class="cline-any cline-neutral">&nbsp;</span>
144
- <span class="cline-any cline-neutral">&nbsp;</span>
145
- <span class="cline-any cline-yes">2732×</span>
146
- <span class="cline-any cline-yes">2732×</span>
147
- <span class="cline-any cline-yes">2732×</span>
148
- <span class="cline-any cline-neutral">&nbsp;</span>
149
- <span class="cline-any cline-neutral">&nbsp;</span>
150
- <span class="cline-any cline-neutral">&nbsp;</span>
151
- <span class="cline-any cline-yes">3662×</span>
152
- <span class="cline-any cline-yes">3662×</span>
153
- <span class="cline-any cline-yes">3662×</span>
154
- <span class="cline-any cline-neutral">&nbsp;</span>
155
- <span class="cline-any cline-yes">3662×</span>
156
- <span class="cline-any cline-neutral">&nbsp;</span>
157
- <span class="cline-any cline-yes">3662×</span>
158
- <span class="cline-any cline-yes">653×</span>
159
- <span class="cline-any cline-neutral">&nbsp;</span>
160
- <span class="cline-any cline-neutral">&nbsp;</span>
161
- <span class="cline-any cline-yes">3662×</span>
162
- <span class="cline-any cline-neutral">&nbsp;</span>
163
- <span class="cline-any cline-yes">3662×</span>
164
- <span class="cline-any cline-yes">653×</span>
165
- <span class="cline-any cline-neutral">&nbsp;</span>
166
- <span class="cline-any cline-neutral">&nbsp;</span>
167
- <span class="cline-any cline-yes">3662×</span>
168
- <span class="cline-any cline-yes">4×</span>
169
- <span class="cline-any cline-yes">4×</span>
170
- <span class="cline-any cline-yes">4×</span>
171
- <span class="cline-any cline-neutral">&nbsp;</span>
172
- <span class="cline-any cline-yes">3658×</span>
173
- <span class="cline-any cline-yes">3658×</span>
174
- <span class="cline-any cline-neutral">&nbsp;</span>
175
- <span class="cline-any cline-neutral">&nbsp;</span>
176
- <span class="cline-any cline-neutral">&nbsp;</span>
177
- <span class="cline-any cline-neutral">&nbsp;</span>
178
- <span class="cline-any cline-yes">950×</span>
179
- <span class="cline-any cline-neutral">&nbsp;</span>
180
- <span class="cline-any cline-neutral">&nbsp;</span>
181
- <span class="cline-any cline-neutral">&nbsp;</span>
182
- <span class="cline-any cline-neutral">&nbsp;</span>
183
- <span class="cline-any cline-neutral">&nbsp;</span>
184
- <span class="cline-any cline-neutral">&nbsp;</span>
185
- <span class="cline-any cline-neutral">&nbsp;</span>
186
- <span class="cline-any cline-neutral">&nbsp;</span>
187
- <span class="cline-any cline-yes">312×</span>
188
- <span class="cline-any cline-yes">312×</span>
189
- <span class="cline-any cline-neutral">&nbsp;</span>
190
- <span class="cline-any cline-neutral">&nbsp;</span>
191
- <span class="cline-any cline-neutral">&nbsp;</span>
192
- <span class="cline-any cline-yes">732×</span>
193
- <span class="cline-any cline-yes">732×</span>
194
- <span class="cline-any cline-yes">732×</span>
195
- <span class="cline-any cline-neutral">&nbsp;</span>
196
- <span class="cline-any cline-yes">732×</span>
197
- <span class="cline-any cline-neutral">&nbsp;</span>
198
- <span class="cline-any cline-yes">732×</span>
199
- <span class="cline-any cline-no">&nbsp;</span>
200
- <span class="cline-any cline-neutral">&nbsp;</span>
201
- <span class="cline-any cline-yes">732×</span>
202
- <span class="cline-any cline-neutral">&nbsp;</span>
203
- <span class="cline-any cline-neutral">&nbsp;</span>
204
- <span class="cline-any cline-yes">732×</span>
205
- <span class="cline-any cline-neutral">&nbsp;</span>
206
- <span class="cline-any cline-neutral">&nbsp;</span>
207
- <span class="cline-any cline-neutral">&nbsp;</span>
208
- <span class="cline-any cline-yes">1×</span></td><td class="text"><pre class="prettyprint lang-js">'use strict';
209
- &nbsp;
210
- var Node = require('./Node');
211
- var isCompoundExpression = require('../util/isCompoundExpression');
212
- var ok = require('assert').ok;
213
- &nbsp;
214
- class MemberExpression extends Node {
215
- constructor(def) {
216
- super('MemberExpression');
217
- this.object = def.object;
218
- this.property = def.property;
219
- this.computed = def.computed;
220
- &nbsp;
221
- ok(this.object, '"object" is required');
222
- ok(this.property, '"property" is required');
223
- }
224
- &nbsp;
225
- generateCode(codegen) {
226
- this.object = codegen.generateCode(this.object);
227
- this.property = codegen.generateCode(this.property);
228
- return this;
229
- }
230
- &nbsp;
231
- writeCode(writer) {
232
- var object = this.object;
233
- var property = this.property;
234
- var computed = this.computed;
235
- &nbsp;
236
- var wrapWithParens = isCompoundExpression(object);
237
- &nbsp;
238
- if (wrapWithParens) {
239
- writer.write('(');
240
- }
241
- &nbsp;
242
- writer.write(object);
243
- &nbsp;
244
- if (wrapWithParens) {
245
- writer.write(')');
246
- }
247
- &nbsp;
248
- if (computed) {
249
- writer.write('[');
250
- writer.write(property);
251
- writer.write(']');
252
- } else {
253
- writer.write('.');
254
- writer.write(property);
255
- }
256
- }
257
- &nbsp;
258
- toJSON() {
259
- return {
260
- type: 'MemberExpression',
261
- object: this.object,
262
- property: this.property,
263
- computed: this.computed
264
- };
265
- }
266
- &nbsp;
267
- walk(walker) {
268
- this.object = walker.walk(this.object);
269
- this.property = walker.walk(this.property);
270
- }
271
- &nbsp;
272
- toString() {
273
- var object = this.object;
274
- var property = this.property;
275
- var computed = this.computed;
276
- &nbsp;
277
- var result = object.toString();
278
- &nbsp;
279
- <span class="missing-if-branch" title="if path not taken" >I</span>if (computed) {
280
- <span class="cstat-no" title="statement not covered" > result += '[' + property + ']';</span>
281
- } else {
282
- result += '.' + property;
283
- }
284
- &nbsp;
285
- return result;
286
- }
287
- }
288
- &nbsp;
289
- module.exports = MemberExpression;</pre></td></tr>
290
- </table></pre>
291
- <div class='push'></div><!-- for sticky footer -->
292
- </div><!-- /wrapper -->
293
- <div class='footer quiet pad2 space-top1 center small'>
294
- Code coverage
295
- generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Tue Oct 18 2016 14:11:32 GMT-0700 (PDT)
296
- </div>
297
- </div>
298
- <script src="../../../prettify.js"></script>
299
- <script>
300
- window.onload = function () {
301
- if (typeof prettyPrint === 'function') {
302
- prettyPrint();
303
- }
304
- };
305
- </script>
306
- <script src="../../../sorter.js"></script>
307
- </body>
308
- </html>