scala.tools.nsc.typechecker.Typers.Typer
Check that type of given tree does not contain local or private components.
Check that type tree does not refer to private components unless itself is wrapped in something private (owner tells where the type occurs).
tree
owner
Check that type of given tree does not contain local or private components.