CallSite
sourceCaptures the call site by creating an Error object. Can be used to later evaluate the call site to a source location.
Constructors
new CallSite(): CallSite
Properties
error: Errorsource
Methods
Instance methods
getFrameExcludingFile(filename: string): undefined | CallFramesource
Returns the innermost call site that does not match the given filename.
getFrameInDirectory(directory: string): undefined | CallFramesource
Returns the innermost call site within the given ancestor directory, if one exists.
getFrameInSdlModel(): undefined | CallFramesource
Shorthand for getFrameInDirectory(sdlModelDir).
getFrames(): CallFrame[]source
Returns an array of stack frames, excluding the CallSite constructor.
toString(): stringsource