InlineInfo

dotty.tools.backend.jvm.opt.InlineInfo
See theInlineInfo companion object
final case class InlineInfo(isEffectivelyFinal: Boolean, sam: Option[String], methodInfos: SortedMap[(String, String), MethodInlineInfo], warning: Option[ClassInlineInfoWarning], isAccessible: Boolean)

Metadata about a ClassBType, used by the inliner.

More information may be added in the future to enable more elaborate inline heuristics. Note that this class should contain information that can only be obtained from the ClassSymbol. Information that can be computed from the ClassNode should be added to the call graph instead.

Value parameters

isAccessible

Whether this class's internals can be inlined into callsites, i.e., it is exported from a public module.

isEffectivelyFinal

True if the class cannot have subclasses: final classes, module classes.

methodInfos

The MethodInlineInfos for the methods declared in this class. The map is indexed by the string s"$name$descriptor" (to disambiguate overloads).

sam

If this class is a SAM type, the SAM's "$name$descriptor".

warning

Contains a warning message if an error occurred when building this InlineInfo, for example if some classfile could not be found on the classpath. This warning can be reported later by the inliner.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product

Concrete fields