org.scalamacros.paradise.typechecker.Implicits
Prune ImplicitInfos down to either all the eligible ones or the best one.
Computes from a list of lists of implicit infos a map which takes
infos which are applicable for given expected type pt
to their attributed trees.
Computes from a list of lists of implicit infos a map which takes
infos which are applicable for given expected type pt
to their attributed trees.
The given list of lists of implicit infos
Is implicit definition visible without prefix? If this is the case then symbols in preceding lists shadow symbols of the same name in succeeding lists.
map from infos to search results
The result of the implicit search: First search implicits visible in current context.
The result of the implicit search:
First search implicits visible in current context.
If that fails, search implicits in expected type pt
.
todo. the following lines should be deleted after we migrate delegate tag materialization to implicit macros
If that fails, and pt
is an instance of a ClassTag, try to construct a class tag.
If that fails, and pt
is an instance of a TypeTag, try to construct a type tag.
If that fails, and pt
is an instance of a ClassManifest, try to construct a class manifest.
If that fails, and pt
is an instance of a Manifest, try to construct a manifest.
If that fails, and pt
is an instance of a OptManifest, try to construct a class manifest and return NoManifest if construction fails.
If all fails return SearchFailure
Is implicit info info1
better than implicit info info2
?
Is implicit info info1
better than implicit info info2
?
Should implicit definition symbol sym
be considered for applicability testing?
This is the case if one of the following holds:
Should implicit definition symbol sym
be considered for applicability testing?
This is the case if one of the following holds:
Search list of implicit info lists for one matching prototype pt
.
Search list of implicit info lists for one matching prototype pt
.
If found return a search result with a tree from found implicit info
which is typed with expected type pt
. Otherwise return SearchFailure.
The given list of lists of implicit infos
Is implicit definition visible without prefix? If this is the case then symbols in preceding lists shadow symbols of the same name in succeeding lists.