MCPcopy Create free account
hub / github.com/angular/angular / parseErrorBlock

Function parseErrorBlock

packages/compiler/src/render3/r3_deferred_blocks.ts:255–268  ·  view source on GitHub ↗
(ast: html.Block, visitor: html.Visitor)

Source from the content-addressed store, hash-verified

253}
254
255function parseErrorBlock(ast: html.Block, visitor: html.Visitor): t.DeferredBlockError {
256 if (ast.parameters.length > 0) {
257 throw new Error(`@error block cannot have parameters`);
258 }
259
260 return new t.DeferredBlockError(
261 html.visitAll(visitor, ast.children, ast.children),
262 ast.nameSpan,
263 ast.sourceSpan,
264 ast.startSourceSpan,
265 ast.endSourceSpan,
266 ast.i18n,
267 );
268}
269
270function parsePrimaryTriggers(
271 ast: html.Block,

Callers 1

parseConnectedBlocksFunction · 0.85

Calls 1

visitAllMethod · 0.45

Tested by

no test coverage detected