@angular/compiler
Version:
Angular - the compiler library
19 lines (18 loc) • 925 B
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { EmitterVisitorContext, OutputEmitter } from './abstract_emitter';
import * as o from './output_ast';
export declare function debugOutputAstAsTypeScript(ast: o.Statement | o.Expression | o.Type | any[]): string;
export declare type ReferenceFilter = (reference: o.ExternalReference) => boolean;
export declare class TypeScriptEmitter implements OutputEmitter {
emitStatementsAndContext(genFilePath: string, stmts: o.Statement[], preamble?: string, emitSourceMaps?: boolean, referenceFilter?: ReferenceFilter, importFilter?: ReferenceFilter): {
sourceText: string;
context: EmitterVisitorContext;
};
emitStatements(genFilePath: string, stmts: o.Statement[], preamble?: string): string;
}