UNPKG

1.25 kBTypeScriptView 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 */
8/**
9 * Extract i18n messages from source code
10 */
11import 'reflect-metadata';
12import * as compiler from '@angular/compiler';
13import * as tsc from '@angular/tsc-wrapped';
14import * as ts from 'typescript';
15import { ReflectorHost } from './reflector_host';
16import { StaticReflector } from './static_reflector';
17export declare class Extractor {
18 private options;
19 private program;
20 host: ts.CompilerHost;
21 private staticReflector;
22 private messageBundle;
23 private reflectorHost;
24 private metadataResolver;
25 constructor(options: tsc.AngularCompilerOptions, program: ts.Program, host: ts.CompilerHost, staticReflector: StaticReflector, messageBundle: compiler.MessageBundle, reflectorHost: ReflectorHost, metadataResolver: compiler.CompileMetadataResolver);
26 extract(): Promise<compiler.MessageBundle>;
27 static create(options: tsc.AngularCompilerOptions, translationsFormat: string, program: ts.Program, compilerHost: ts.CompilerHost, resourceLoader: compiler.ResourceLoader, reflectorHost?: ReflectorHost): Extractor;
28}