tryNamespaceInference

fun Pass<*>.tryNamespaceInference(name: Name, locationHint: Node?): NamespaceDeclaration?

Tries to infer a NamespaceDeclaration from a Name. This will return null, if inference was not possible, or if it was turned off in the InferenceConfiguration.