MCPcopy Index your code
hub / github.com/angular/angular / parseErrorBlock

Function parseErrorBlock

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

Source from the content-addressed store, hash-verified

249}
250
251function 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
266function parsePrimaryTriggers(
267 ast: html.Block,

Callers 1

parseConnectedBlocksFunction · 0.85

Calls 1

visitAllMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…