UNPKG

886 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google Inc. All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { CompileInjectableMetadata } from './compile_metadata';
9import { CompileReflector } from './compile_reflector';
10import * as o from './output/output_ast';
11import { OutputContext } from './util';
12export declare class InjectableCompiler {
13 private reflector;
14 private alwaysGenerateDef;
15 private tokenInjector;
16 constructor(reflector: CompileReflector, alwaysGenerateDef: boolean);
17 private depsArray;
18 factoryFor(injectable: CompileInjectableMetadata, ctx: OutputContext): o.Expression;
19 injectableDef(injectable: CompileInjectableMetadata, ctx: OutputContext): o.Expression;
20 compile(injectable: CompileInjectableMetadata, ctx: OutputContext): void;
21}