UNPKG

1.04 kBTypeScriptView Raw
1import * as ts from 'typescript';
2import { StaticSymbol } from '@angular/compiler';
3/**
4 * Base class which provides primitive for the DirectiveSymbol and
5 * PipeSymbol. It contains some functionality common between these classes.
6 *
7 * @export
8 * @class Symbol
9 */
10export declare class Symbol {
11 protected _program: ts.Program;
12 protected _symbol: StaticSymbol;
13 /**
14 * Creates an instance of Symbol.
15 *
16 * @param {ts.Program} _program
17 * @param {StaticSymbol} _symbol
18 *
19 * @memberOf Symbol
20 */
21 constructor(_program: ts.Program, _symbol: StaticSymbol);
22 /**
23 * Gets the ts.node which corresponds to the controller of the DirectiveSymbol
24 * or the implementation of the pipe.
25 *
26 * @returns {(ts.ClassDeclaration | undefined)}
27 *
28 * @memberOf Symbol
29 */
30 getNode(): ts.ClassDeclaration | undefined;
31 /**
32 * The wrapped `StaticSymbol` from `@angular/compiler`.
33 *
34 * @readonly
35 *
36 * @memberOf Symbol
37 */
38 readonly symbol: StaticSymbol;
39}