getModeForFileReference

external fun getModeForFileReference(ref: String, containingFileMode: ResolutionMode): ResolutionMode(source)

Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.