function getLocationContext(program, type): LocationContext
program
Program
type
DiagnosticTarget
LocationContext