ModuleScopeControl
Index
Constructors
constructor
Properties
_anonClassCntr
_anonMethodCntr
_report
_scopeStackClass
Stores the current class report scope stack which is lazily created in createScope
.}
_scopeStackMethod
Stores the current method report scope stack which is lazily created in createScope
.
_scopeStackNestedMethod
Stores the current nested method report scope stack which is lazily created in createScope
.
Methods
createScope
Creates a report scope when a class or method is entered.
Parameters
newScope: { lineEnd?: number; lineStart?: number; name?: string; paramNames?: string[]; superClassName?: string; type?: string } = {}
An object hash defining the new scope including:
(string) type - Type of report to create.
(string) name - Name of the class or method.
(number) lineStart - Start line of method.
(number) lineEnd - End line of method.
(Array<string>) paramNames - (For method scopes) An array of parameters names for method.
Returns any
getCurrentClassReport
Returns the current class report.
Returns default
getCurrentMethodReport
Returns the current method report.
Returns default | default
popScope
Pops a report scope.
Parameters
scope: { type?: string } = {}
An object hash defining the scope including:
(string) type - Type of report scope to pop off the stack.
Returns void
ModuleScopeControl