(ast: html.Block, visitor: html.Visitor)
| 249 | } |
| 250 | |
| 251 | function parseErrorBlock(ast: html.Block, visitor: html.Visitor): t.DeferredBlockError { |
| 252 | if (ast.parameters.length > 0) { |
| 253 | throw new Error(`@error block cannot have parameters`); |
| 254 | } |
| 255 | |
| 256 | return new t.DeferredBlockError( |
| 257 | html.visitAll(visitor, ast.children, ast.children), |
| 258 | ast.nameSpan, |
| 259 | ast.sourceSpan, |
| 260 | ast.startSourceSpan, |
| 261 | ast.endSourceSpan, |
| 262 | ast.i18n, |
| 263 | ); |
| 264 | } |
| 265 | |
| 266 | function parsePrimaryTriggers( |
| 267 | ast: html.Block, |
no test coverage detected
searching dependent graphs…