Skip to main content
Version: Next 🚧

[F] getSourceLocation

getSourceLocation(target, options)

function getSourceLocation(target, options?): SourceLocation

Parameters

ParameterType
targetDiagnosticTarget
options?SourceLocationOptions

Returns

SourceLocation

getSourceLocation(target, options)

function getSourceLocation(target, options?): undefined

Parameters

ParameterType
targetundefined | typeof NoTarget
options?SourceLocationOptions

Returns

undefined

getSourceLocation(target, options)

function getSourceLocation(target, options?): SourceLocation | undefined

Parameters

ParameterType
targetundefined | DiagnosticTarget | typeof NoTarget
options?SourceLocationOptions

Returns

SourceLocation | undefined