From 059085b9433fb28a98b595fea5d9f2c8636432e6 Mon Sep 17 00:00:00 2001 From: mgechev Date: Sun, 5 Feb 2017 14:22:06 -0800 Subject: [PATCH] docs(compiler): incorrect method reference (#14314) PR Close #14314 --- modules/@angular/compiler/src/jit/compiler.ts | 2 +- modules/@angular/compiler/src/metadata_resolver.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/@angular/compiler/src/jit/compiler.ts b/modules/@angular/compiler/src/jit/compiler.ts index 84ad9a4e6c..f37de6eab0 100644 --- a/modules/@angular/compiler/src/jit/compiler.ts +++ b/modules/@angular/compiler/src/jit/compiler.ts @@ -114,7 +114,7 @@ export class JitCompiler implements Compiler { // Note: the loadingPromise for a module only includes the loading of the exported directives // of imported modules. // However, for runtime compilation, we want to transitively compile all modules, - // so we also need to call loadNgModuleMetadata for all nested modules. + // so we also need to call loadNgModuleDirectiveAndPipeMetadata for all nested modules. ngModule.transitiveModule.modules.forEach((localModuleMeta) => { loadingPromises.push(this._metadataResolver.loadNgModuleDirectiveAndPipeMetadata( localModuleMeta.reference, isSync)); diff --git a/modules/@angular/compiler/src/metadata_resolver.ts b/modules/@angular/compiler/src/metadata_resolver.ts index a898ad8ef0..2afda1f371 100644 --- a/modules/@angular/compiler/src/metadata_resolver.ts +++ b/modules/@angular/compiler/src/metadata_resolver.ts @@ -294,14 +294,14 @@ export class CompileMetadataResolver { /** * Gets the metadata for the given directive. - * This assumes `loadNgModuleMetadata` has been called first. + * This assumes `loadNgModuleDirectiveAndPipeMetadata` has been called first. */ getDirectiveMetadata(directiveType: any): cpl.CompileDirectiveMetadata { const dirMeta = this._directiveCache.get(directiveType); if (!dirMeta) { this._reportError( new SyntaxError( - `Illegal state: getDirectiveMetadata can only be called after loadNgModuleMetadata for a module that declares it. Directive ${stringifyType(directiveType)}.`), + `Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive ${stringifyType(directiveType)}.`), directiveType); } return dirMeta; @@ -648,14 +648,14 @@ export class CompileMetadataResolver { /** * Gets the metadata for the given pipe. - * This assumes `loadNgModuleMetadata` has been called first. + * This assumes `loadNgModuleDirectiveAndPipeMetadata` has been called first. */ getPipeMetadata(pipeType: any): cpl.CompilePipeMetadata { const pipeMeta = this._pipeCache.get(pipeType); if (!pipeMeta) { this._reportError( new SyntaxError( - `Illegal state: getPipeMetadata can only be called after loadNgModuleMetadata for a module that declares it. Pipe ${stringifyType(pipeType)}.`), + `Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe ${stringifyType(pipeType)}.`), pipeType); } return pipeMeta;