@@ -11,7 +11,7 @@ import {CompilePipeline} from './pipeline/compile_pipeline';
1111import { CompileElement } from './pipeline/compile_element' ;
1212import { createDefaultSteps } from './pipeline/default_steps' ;
1313import { TemplateLoader } from './template_loader' ;
14- import { AnnotatedType } from './annotated_type ' ;
14+ import { DirectiveMetadata } from './directive_metadata ' ;
1515import { Component } from '../annotations/annotations' ;
1616
1717/**
@@ -59,12 +59,12 @@ export class Compiler {
5959 this . _compilerCache = cache ;
6060 }
6161
62- createSteps ( component :AnnotatedType ) :List < CompileStep > {
62+ createSteps ( component :DirectiveMetadata ) :List < CompileStep > {
6363 var annotation : Component = component . annotation ;
6464 var directives = annotation . template . directives ;
6565 var annotatedDirectives = ListWrapper . create ( ) ;
6666 for ( var i = 0 ; i < directives . length ; i ++ ) {
67- ListWrapper . push ( annotatedDirectives , this . _reader . annotatedType ( directives [ i ] ) ) ;
67+ ListWrapper . push ( annotatedDirectives , this . _reader . read ( directives [ i ] ) ) ;
6868 }
6969 return createDefaultSteps ( this . _parser , component , annotatedDirectives ) ;
7070 }
@@ -75,12 +75,12 @@ export class Compiler {
7575 // transitively via the _templateLoader and store them in templateCache
7676
7777 return PromiseWrapper . resolve ( this . compileAllLoaded (
78- templateCache , this . _reader . annotatedType ( component ) , templateRoot )
78+ templateCache , this . _reader . read ( component ) , templateRoot )
7979 ) ;
8080 }
8181
8282 // public so that we can compile in sync in performance tests.
83- compileAllLoaded ( templateCache , component :AnnotatedType , templateRoot :Element = null ) :ProtoView {
83+ compileAllLoaded ( templateCache , component :DirectiveMetadata , templateRoot :Element = null ) :ProtoView {
8484 var rootProtoView = this . _compilerCache . get ( component . type ) ;
8585 if ( isPresent ( rootProtoView ) ) {
8686 return rootProtoView ;
0 commit comments