@@ -20,7 +20,7 @@ import {ClassDeclaration, isNamedClassDeclaration, ReflectionHost} from '../../r
2020import { ComponentScopeKind , ComponentScopeReader , TypeCheckScopeRegistry } from '../../scope' ;
2121import { isShim } from '../../shims' ;
2222import { getSourceFileOrNull , isSymbolWithValueDeclaration } from '../../util/src/typescript' ;
23- import { DirectiveInScope , ElementSymbol , FullTemplateMapping , GlobalCompletion , NgTemplateDiagnostic , OptimizeFor , PipeInScope , ProgramTypeCheckAdapter , Symbol , TcbLocation , TemplateDiagnostic , TemplateId , TemplateSymbol , TemplateTypeChecker , TypeCheckableDirectiveMeta , TypeCheckingConfig } from '../api' ;
23+ import { ElementSymbol , FullTemplateMapping , GlobalCompletion , NgTemplateDiagnostic , OptimizeFor , PipeInScope , PotentialDirective , ProgramTypeCheckAdapter , Symbol , TcbLocation , TemplateDiagnostic , TemplateId , TemplateSymbol , TemplateTypeChecker , TypeCheckableDirectiveMeta , TypeCheckingConfig } from '../api' ;
2424import { makeTemplateDiagnostic } from '../diagnostics' ;
2525
2626import { CompletionEngine } from './completion' ;
@@ -75,7 +75,7 @@ export class TemplateTypeCheckerImpl implements TemplateTypeChecker {
7575 * destroyed when the `ts.Program` changes and the `TemplateTypeCheckerImpl` as a whole is
7676 * destroyed and replaced.
7777 */
78- private elementTagCache = new Map < ts . ClassDeclaration , Map < string , DirectiveInScope | null > > ( ) ;
78+ private elementTagCache = new Map < ts . ClassDeclaration , Map < string , PotentialDirective | null > > ( ) ;
7979
8080 private isComplete = false ;
8181
@@ -549,7 +549,7 @@ export class TemplateTypeCheckerImpl implements TemplateTypeChecker {
549549 return builder ;
550550 }
551551
552- getDirectivesInScope ( component : ts . ClassDeclaration ) : DirectiveInScope [ ] | null {
552+ getDirectivesInScope ( component : ts . ClassDeclaration ) : PotentialDirective [ ] | null {
553553 const data = this . getScopeData ( component ) ;
554554 if ( data === null ) {
555555 return null ;
@@ -572,12 +572,12 @@ export class TemplateTypeCheckerImpl implements TemplateTypeChecker {
572572 return this . typeCheckScopeRegistry . getTypeCheckDirectiveMetadata ( new Reference ( dir ) ) ;
573573 }
574574
575- getPotentialElementTags ( component : ts . ClassDeclaration ) : Map < string , DirectiveInScope | null > {
575+ getPotentialElementTags ( component : ts . ClassDeclaration ) : Map < string , PotentialDirective | null > {
576576 if ( this . elementTagCache . has ( component ) ) {
577577 return this . elementTagCache . get ( component ) ! ;
578578 }
579579
580- const tagMap = new Map < string , DirectiveInScope | null > ( ) ;
580+ const tagMap = new Map < string , PotentialDirective | null > ( ) ;
581581
582582 for ( const tag of REGISTRY . allKnownElementNames ( ) ) {
583583 tagMap . set ( tag , null ) ;
@@ -886,7 +886,7 @@ class SingleShimTypeCheckingHost extends SingleFileTypeCheckingHost {
886886 * Cached scope information for a component.
887887 */
888888interface ScopeData {
889- directives : DirectiveInScope [ ] ;
889+ directives : PotentialDirective [ ] ;
890890 pipes : PipeInScope [ ] ;
891891 isPoisoned : boolean ;
892892}
0 commit comments