Info relating to an import clause
- Value Params
- isRootImport
true if this is one of the implicit imports of scala, java.lang, scala.Predef in the start context, false otherwise.
- qualifier
The import qualifier, or EmptyTree for root imports. Defined for all explicit imports from ident or select nodes.
- selectors
The selector clauses
- symf
A function that computes the import symbol defined by the clause
- Companion
- object
Value members
Concrete methods
The names that are excluded from any wildcard import
The names that are excluded from any wildcard import
Does this import clause or a preceding import clause enable feature?
Does this import clause or a preceding import clause enable feature?
- Value Params
- feature
a possibly quailified name, e.g. strictEquality experimental.genericNumberLiterals An excluded feature such as
strictEquality => _in a language import means that preceding imports are not considered and the feature is not imported.
The upper bound for given wildcards, or Nothing if there are none
The upper bound for given wildcards, or Nothing if there are none
The implicit references imported by this import clause
The implicit references imported by this import clause
Does the import clause have at least one given selector?
Does the import clause have at least one given selector?
Does the import clause contain wildcard selectors (both _ and given count)?
Does the import clause contain wildcard selectors (both _ and given count)?
Does this import clause enable or disable feature?
Does this import clause enable or disable feature?
- Value Params
- feature
See featureImported for a description
- Returns
Some(true) if
featureis imported Some(false) iffeatureis excluded None iffeatureis not mentioned, or this is not a language import
The (TermRef) type of the qualifier of the import clause
The (TermRef) type of the qualifier of the import clause
The root import symbol hidden by this symbol, or NoSymbol if no such symbol is hidden. Note: this computation needs to work even for un-initialized import infos, and is not allowed to force initialization.
The root import symbol hidden by this symbol, or NoSymbol if no such symbol is hidden. Note: this computation needs to work even for un-initialized import infos, and is not allowed to force initialization.
TODO: Once we have fully bootstrapped, I would prefer if we expressed
unimport with an override modifier, and generalized it to all imports.
I believe this would be more transparent than the current set of conditions. E.g.
override import Predef.{any2stringAdd => _, StringAdd => _, _} // disables String +
override import java.lang.{} // disables all imports
Inherited methods
A fallback text representation, if the pattern matching in Printers does not have a case for this showable element
A fallback text representation, if the pattern matching in Printers does not have a case for this showable element
- Inherited from
- Showable
The string representation of this showable element.
The string representation of this showable element.
- Inherited from
- Showable
The string representation with each line after the first one indented by the given given margin (in spaces).
The string representation with each line after the first one indented by the given given margin (in spaces).
- Inherited from
- Showable
The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.
The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.
- Inherited from
- Showable