Home Reference Source Repository
import {Symbol} from 'ngast/dist-docs/lib/symbol.js'
public class | source

Symbol

Direct Subclass:

DirectiveSymbol, dist-docs/lib/module-symbol.js~ModuleSymbol, PipeSymbol

Base class which provides primitive for the DirectiveSymbol and PipeSymbol. It contains some functionality common between these classes.

Constructor Summary

Public Constructor
public

constructor(_program: ts.Program, _symbol: StaticSymbol)

Creates an instance of Symbol.

Member Summary

Public Members
public get

symbol: *

The wrapped StaticSymbol from @angular/compiler.

Method Summary

Public Methods
public

getNode(): ts.ClassDeclaration | undefined

Gets the ts.node which corresponds to the controller of the DirectiveSymbol or the implementation of the pipe.

Public Constructors

public constructor(_program: ts.Program, _symbol: StaticSymbol) source

Creates an instance of Symbol.

Params:

NameTypeAttributeDescription
_program ts.Program
_symbol StaticSymbol

Public Members

public get symbol: * source

The wrapped StaticSymbol from @angular/compiler.

Public Methods

public getNode(): ts.ClassDeclaration | undefined source

Gets the ts.node which corresponds to the controller of the DirectiveSymbol or the implementation of the pipe.

Return:

ts.ClassDeclaration | undefined