-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreferences.d.ts
125 lines (103 loc) · 2.64 KB
/
references.d.ts
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
interface IOptions {
newLine?: string;
extension?: string;
}
interface IDependencyMetadata {
name: string;
type: string;
}
interface IConfigFn {
(...args: any[]): void;
}
interface ITsFileRegex {
// //@NgModule('moduleName')
// module My.Great.Module {
moduleComment: RegExp;
moduleDeclaration: RegExp
// //@NgController('controllerName')
// class MyController implements IMyViewModel {
controllerComment: RegExp
controllerDeclaration: RegExp
// //@NgService('serviceName')
// class MyService implements IMyService {
serviceComment: RegExp
serviceDeclaration: RegExp
// //@NgDirective('directiveName')
// class MyDirective implements ng.IDirective {
directiveComment: RegExp
directiveDeclaration: RegExp
// //@NgFilter('filterName')
// function filter(input: string) {
filterComment: RegExp
filterDeclaration: RegExp
// constructor($window: ng.IWindowService) {
constructor: RegExp
closingBrace: RegExp
}
interface IStartupFnRegex {
dependencies: RegExp;
configFn: RegExp;
runFn: RegExp;
}
interface IStartupFnMatches {
dependencies?: RegExpMatchArray;
configFn?: RegExpMatchArray;
runFn?: RegExpMatchArray;
}
interface IModuleDefinition {
name?: string;
file?: any;
fileExisted: boolean;
dependencies: any[];
fnName?: string;
configFn?: IConfigFn;
runFn?: IConfigFn;
declarationLine?: number;
}
interface IClassDefinition {
name?: string;
module?: IModuleDefinition;
fnName?: string;
dependencies?: IArgumentDefinition[];
file?: string;
}
interface IControllerDefinition extends IClassDefinition {
ctorStartLine?: number;
ctorEndLine?: number;
startLine?: number;
endLine?: number;
}
interface IServiceDefinition extends IClassDefinition {
ctorStartLine?: number;
ctorEndLine?: number;
}
interface IDirectiveDefinition extends IClassDefinition {
classLine?: number;
ctorStartLine?: number;
ctorEndLine?: number;
}
interface IFilterDefinition extends IClassDefinition {
}
interface IArgumentDefinition {
name?: string;
type?: string;
}
interface IConstructorDefinition {
args?: IArgumentDefinition[];
startLine?: number;
endLine?: number;
}
interface IFileResult {
modules?: IModuleDefinition[];
controllers?: IControllerDefinition[];
services?: IServiceDefinition[];
directives?: IDirectiveDefinition[];
filters?: IFilterDefinition[];
fileTally?: number;
closingBraceLine?: number;
file?: any;
content?: string;
path?: string;
module?: IModuleDefinition;
error?: string;
}