@@ -23,12 +23,12 @@ module td.converter
2323 /**
2424 * The project that is currently processed.
2525 */
26- project :ProjectReflection ;
26+ project :models . ProjectReflection ;
2727
2828 /**
2929 * The scope or parent reflection that is currently processed.
3030 */
31- scope :Reflection ;
31+ scope :models . Reflection ;
3232
3333 /**
3434 * Is the current source file marked as being external?
@@ -43,12 +43,12 @@ module td.converter
4343 /**
4444 * The currently set type parameters.
4545 */
46- typeParameters :ts . Map < Type > ;
46+ typeParameters :ts . Map < models . Type > ;
4747
4848 /**
4949 * The currently set type arguments.
5050 */
51- typeArguments :Type [ ] ;
51+ typeArguments :models . Type [ ] ;
5252
5353 /**
5454 * Is the converter in inheritance mode?
@@ -89,7 +89,7 @@ module td.converter
8989 this . fileNames = fileNames ;
9090 this . checker = checker ;
9191
92- var project = new ProjectReflection ( this . getOptions ( ) . name ) ;
92+ var project = new models . ProjectReflection ( this . getOptions ( ) . name ) ;
9393 this . project = project ;
9494 this . scope = project ;
9595
@@ -153,7 +153,7 @@ module td.converter
153153 * @param node The node the given reflection was resolved from.
154154 * @param symbol The symbol the given reflection was resolved from.
155155 */
156- registerReflection ( reflection :Reflection , node :ts . Node , symbol ?:ts . Symbol ) {
156+ registerReflection ( reflection :models . Reflection , node :ts . Node , symbol ?:ts . Symbol ) {
157157 this . project . reflections [ reflection . id ] = reflection ;
158158
159159 var id = this . getSymbolID ( symbol ? symbol : node . symbol ) ;
@@ -172,7 +172,7 @@ module td.converter
172172 * @param reflection The triggering reflection.
173173 * @param node The triggering TypeScript node if available.
174174 */
175- trigger ( name :string , reflection :Reflection , node ?:ts . Node ) {
175+ trigger ( name :string , reflection :models . Reflection , node ?:ts . Node ) {
176176 this . converter . dispatch ( name , this , reflection , node ) ;
177177 }
178178
@@ -218,27 +218,27 @@ module td.converter
218218 /**
219219 * @param callback The callback function that should be executed with the changed context.
220220 */
221- public withScope ( scope :Reflection , callback :Function ) ;
221+ public withScope ( scope :models . Reflection , callback :Function ) ;
222222
223223 /**
224224 * @param parameters An array of type parameters that should be set on the context while the callback is invoked.
225225 * @param callback The callback function that should be executed with the changed context.
226226 */
227- public withScope ( scope :Reflection , parameters :ts . NodeArray < ts . TypeParameterDeclaration > , callback :Function ) ;
227+ public withScope ( scope :models . Reflection , parameters :ts . NodeArray < ts . TypeParameterDeclaration > , callback :Function ) ;
228228
229229 /**
230230 * @param parameters An array of type parameters that should be set on the context while the callback is invoked.
231231 * @param preserve Should the currently set type parameters of the context be preserved?
232232 * @param callback The callback function that should be executed with the changed context.
233233 */
234- public withScope ( scope :Reflection , parameters :ts . NodeArray < ts . TypeParameterDeclaration > , preserve :boolean , callback :Function ) ;
234+ public withScope ( scope :models . Reflection , parameters :ts . NodeArray < ts . TypeParameterDeclaration > , preserve :boolean , callback :Function ) ;
235235
236236 /**
237237 * Run the given callback with the scope of the context set to the given reflection.
238238 *
239239 * @param scope The reflection that should be set as the scope of the context while the callback is invoked.
240240 */
241- public withScope ( scope :Reflection , ...args ) {
241+ public withScope ( scope :models . Reflection , ...args ) {
242242 if ( ! scope || ! args . length ) return ;
243243 var callback = args . pop ( ) ;
244244 var parameters = args . shift ( ) ;
@@ -266,7 +266,7 @@ module td.converter
266266 * @param typeArguments The type arguments that apply while inheriting the given node.
267267 * @return The resulting reflection / the current scope.
268268 */
269- inherit ( baseNode :ts . Node , typeArguments ?:ts . NodeArray < ts . TypeNode > ) :Reflection {
269+ inherit ( baseNode :ts . Node , typeArguments ?:ts . NodeArray < ts . TypeNode > ) :models . Reflection {
270270 var wasInherit = this . isInherit ;
271271 var oldInherited = this . inherited ;
272272 var oldInheritParent = this . inheritParent ;
@@ -275,8 +275,8 @@ module td.converter
275275 this . inheritParent = baseNode ;
276276 this . inherited = [ ] ;
277277
278- var target = < ContainerReflection > this . scope ;
279- if ( ! ( target instanceof ContainerReflection ) ) {
278+ var target = < models . ContainerReflection > this . scope ;
279+ if ( ! ( target instanceof models . ContainerReflection ) ) {
280280 throw new Error ( 'Expected container reflection' ) ;
281281 }
282282
@@ -309,8 +309,8 @@ module td.converter
309309 * @param preserve Should the currently set type parameters of the context be preserved?
310310 * @returns The resulting type mapping.
311311 */
312- private extractTypeParameters ( parameters :ts . NodeArray < ts . TypeParameterDeclaration > , preserve ?:boolean ) :ts . Map < Type > {
313- var typeParameters :ts . Map < Type > = { } ;
312+ private extractTypeParameters ( parameters :ts . NodeArray < ts . TypeParameterDeclaration > , preserve ?:boolean ) :ts . Map < models . Type > {
313+ var typeParameters :ts . Map < models . Type > = { } ;
314314
315315 if ( preserve ) {
316316 for ( var key in this . typeParameters ) {
0 commit comments