MCPcopy Create free account
hub / github.com/angular/angular / Component

Class Component

packages/compiler/src/ml_parser/ast.ts:162–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162export class Component extends NodeWithI18n {
163 constructor(
164 readonly componentName: string,
165 readonly tagName: string | null,
166 readonly fullName: string,
167 public attrs: Attribute[],
168 readonly directives: Directive[],
169 readonly children: Node[],
170 readonly isSelfClosing: boolean,
171 sourceSpan: ParseSourceSpan,
172 readonly startSourceSpan: ParseSourceSpan,
173 public endSourceSpan: ParseSourceSpan | null = null,
174 i18n?: I18nMeta,
175 public comments: StartTagComment[] = [],
176 ) {
177 super(sourceSpan, i18n);
178 }
179
180 override visit(visitor: Visitor, context: any): any {
181 return visitor.visitComponent(this, context);
182 }
183}
184
185export class Directive implements BaseNode {
186 constructor(

Callers 3

inline-styles.tsFile · 0.50
inline-template.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected