( bindings: ParsedHostBindings, sourceSpan: ParseSourceSpan, )
| 580 | * @returns array of errors associated with a given set of host bindings. |
| 581 | */ |
| 582 | export 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. |
no test coverage detected
searching dependent graphs…