@@ -10,7 +10,7 @@ import {NgCompiler} from '@angular/compiler-cli/src/ngtsc/core';
1010import { absoluteFrom , absoluteFromSourceFile , AbsoluteFsPath } from '@angular/compiler-cli/src/ngtsc/file_system' ;
1111import { isExternalResource } from '@angular/compiler-cli/src/ngtsc/metadata' ;
1212import { DeclarationNode } from '@angular/compiler-cli/src/ngtsc/reflection' ;
13- import { DirectiveSymbol , PotentialDirective , TemplateTypeChecker } from '@angular/compiler-cli/src/ngtsc/typecheck/api' ;
13+ import { DirectiveSymbol , TemplateTypeChecker } from '@angular/compiler-cli/src/ngtsc/typecheck/api' ;
1414import * as e from '@angular/compiler/src/expression_parser/ast' ; // e for expression AST
1515import * as t from '@angular/compiler/src/render3/r3_ast' ; // t for template AST
1616import ts from 'typescript' ;
@@ -224,7 +224,7 @@ function difference<T>(left: Set<T>, right: Set<T>): Set<T> {
224224 * @returns The list of directives matching the tag name via the strategy described above.
225225 */
226226// TODO(atscott): Add unit tests for this and the one for attributes
227- export function getDirectiveMatchesForElementTag < T extends { selector : string } > (
227+ export function getDirectiveMatchesForElementTag < T extends { selector : string | null } > (
228228 element : t . Template | t . Element , directives : T [ ] ) : Set < T > {
229229 const attributes = getAttributes ( element ) ;
230230 const allAttrs = attributes . map ( toAttributeCssSelector ) ;
@@ -269,7 +269,7 @@ export function getDirectiveMatchesForAttribute(
269269 * Given a list of directives and a text to use as a selector, returns the directives which match
270270 * for the selector.
271271 */
272- function getDirectiveMatchesForSelector < T extends { selector : string } > (
272+ function getDirectiveMatchesForSelector < T extends { selector : string | null } > (
273273 directives : T [ ] , selector : string ) : Set < T > {
274274 try {
275275 const selectors = CssSelector . parse ( selector ) ;
0 commit comments