-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathClassDeclaration.ts
More file actions
40 lines (39 loc) · 1.37 KB
/
ClassDeclaration.ts
File metadata and controls
40 lines (39 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { AccessorDeclaration } from './AccessorDeclaration';
import { ConstructorDeclaration } from './ConstructorDeclaration';
import { AbstractDeclaration, ClassLikeDeclaration, ExportableDeclaration, GenericDeclaration,
} from './Declaration';
import { InterfaceDeclaration } from './InterfaceDeclaration';
import { MethodDeclaration } from './MethodDeclaration';
import { PropertyDeclaration } from './PropertyDeclaration';
/**
* Class declaration that contains methods, properties and a constructor
*
* @export
* @class ClassDeclaration
* @implements {ClassLikeDeclaration}
* @implements {ExportableDeclaration}
* @implements {GenericDeclaration}
* @implements {AbstractDeclaration}
*/
export class ClassDeclaration
implements
ClassLikeDeclaration,
ExportableDeclaration,
GenericDeclaration,
AbstractDeclaration
{
public ctor: ConstructorDeclaration | undefined;
public accessors: AccessorDeclaration[] = [];
public properties: PropertyDeclaration[] = [];
public methods: MethodDeclaration[] = [];
public typeParameters: string[] | undefined;
public isAbstract: boolean = false;
public implements: InterfaceDeclaration[] = [];
public extends: ClassDeclaration[] = [];
constructor(
public name: string,
public isExported: boolean,
public start?: number,
public end?: number,
) {}
}