MCPcopy
hub / github.com/angular/angular / SwitchBlock

Class SwitchBlock

packages/compiler/src/render3/r3_ast.ts:415–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415export class SwitchBlock extends BlockNode implements Node {
416 constructor(
417 public expression: AST,
418 public groups: SwitchBlockCaseGroup[],
419 /**
420 * These blocks are only captured to allow for autocompletion in the language service. They
421 * aren't meant to be processed in any other way.
422 */
423 public unknownBlocks: UnknownBlock[],
424 public exhaustiveCheck: SwitchExhaustiveCheck | null,
425 sourceSpan: ParseSourceSpan,
426 startSourceSpan: ParseSourceSpan,
427 endSourceSpan: ParseSourceSpan | null,
428 nameSpan: ParseSourceSpan,
429 ) {
430 super(nameSpan, sourceSpan, startSourceSpan, endSourceSpan);
431 }
432
433 visit<Result>(visitor: Visitor<Result>): Result {
434 return visitor.visitSwitchBlock(this);
435 }
436}
437
438export class SwitchBlockCase extends BlockNode implements Node {
439 constructor(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…