diff --git a/packages/compiler/src/compiler.ts b/packages/compiler/src/compiler.ts index c400260081..7c351c3c29 100644 --- a/packages/compiler/src/compiler.ts +++ b/packages/compiler/src/compiler.ts @@ -85,7 +85,7 @@ export * from './schema/dom_element_schema_registry'; export * from './selector'; export * from './style_compiler'; export * from './template_parser/template_parser'; -export {ViewCompiler} from './view_compiler/view_compiler'; +export {ViewCompiler, findStaticQueryIds, staticViewQueryIds} from './view_compiler/view_compiler'; export {getParseErrors, isSyntaxError, syntaxError, Version} from './util'; export {SourceMap} from './output/source_map'; export * from './injectable_compiler_2'; diff --git a/packages/compiler/src/view_compiler/view_compiler.ts b/packages/compiler/src/view_compiler/view_compiler.ts index 5fe530bb04..e97e3291f6 100644 --- a/packages/compiler/src/view_compiler/view_compiler.ts +++ b/packages/compiler/src/view_compiler/view_compiler.ts @@ -1023,7 +1023,7 @@ interface StaticAndDynamicQueryIds { } -function findStaticQueryIds( +export function findStaticQueryIds( nodes: TemplateAst[], result = new Map()): Map { nodes.forEach((node) => { @@ -1056,7 +1056,7 @@ function findStaticQueryIds( return result; } -function staticViewQueryIds(nodeStaticQueryIds: Map): +export function staticViewQueryIds(nodeStaticQueryIds: Map): StaticAndDynamicQueryIds { const staticQueryIds = new Set(); const dynamicQueryIds = new Set();