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

Function verifyHostBindings

packages/compiler/src/render3/view/compiler.ts:582–595  ·  view source on GitHub ↗
(
  bindings: ParsedHostBindings,
  sourceSpan: ParseSourceSpan,
)

Source from the content-addressed store, hash-verified

580 * @returns array of errors associated with a given set of host bindings.
581 */
582export function verifyHostBindings(
583 bindings: ParsedHostBindings,
584 sourceSpan: ParseSourceSpan,
585): ParseError[] {
586 // TODO: abstract out host bindings verification logic and use it instead of
587 // creating events and properties ASTs to detect errors (FW-996)
588 const bindingParser = makeBindingParser();
589 bindingParser.createDirectiveHostEventAsts(bindings.listeners, sourceSpan);
590 bindingParser.createBoundHostProperties(bindings.properties, sourceSpan);
591
592 validateNoEventBindings(bindings, bindingParser, sourceSpan);
593
594 return bindingParser.errors;
595}
596
597/**
598 * Validates that there are no event attribute bindings in the host bindings.

Callers 2

extractHostBindingsFunction · 0.90

Calls 4

makeBindingParserFunction · 0.90
validateNoEventBindingsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…