Skip to content

[F] getLocationContext

function getLocationContext(program, type): LocationContext;

Identify whether a diagnostic target comes from the project, a library, or a synthetic location.

ParameterType
programProgram
typeDiagnosticTarget

LocationContext