Attachment
dotty.tools.dotc.util.Attachment
object Attachment
A class inheriting from Attachment.Container supports adding, removing and lookup of attachments. Attachments are typed key/value pairs.
Attachments whose key is an instance of StickyKey
will be kept when the attachments are copied using withAttachmentsFrom
.
Attributes
- Graph
-
- Supertypes
- Self type
-
Attachment.type
Members list
Type members
Classlikes
trait Container extends LinkSource
A trait for objects that can contain attachments
A trait for objects that can contain attachments
Attributes
- Supertypes
- Known subtypes
-
class Tree[T]class Block[T]class XMLBlockclass CaseDef[T]class DenotingTree[T]trait DefTree[T]class NamedDefTree[T]class Bind[T]class MemberDef[T]class TypeDef[T]class ValOrDefDef[T]class DefDef[T]class ValDef[T]class EmptyValDef[T]trait ValOrTypeDef[T]class ModuleDefclass Template[T]class DerivingTemplateclass ImportOrExport[T]class Export[T]class Import[T]class NameTree[T]class Labeled[T]class RefTree[T]class Ident[T]class SearchFailureIdent[T]object EmptyTypeIdentclass Select[T]class SelectWithSig[T]class SingletonTypeTree[T]class This[T]class TypeTree[T]class InferredTypeTree[T]class DerivedTypeTreeclass DerivedFromParamTreeclass SetterParamTreeclass TermRefTreeclass TypeRefTreeclass Hole[T]class Inlined[T]class Literal[T]class NamedArg[T]class New[T]trait PatternTree[T]class Alternative[T]class QuotePattern[T]class UnApply[T]class ProxyTree[T]class Annotated[T]class AppliedTypeTree[T]class GenericApply[T]class Apply[T]class TypeApply[T]class PackageDef[T]class RefinedTypeTree[T]class Super[T]class Typed[T]class Parensclass TypedSpliceclass SeqLiteral[T]class JavaSeqLiteral[T]trait TermTree[T]class Assign[T]class Closure[T]class If[T]class InlineIf[T]class Match[T]class InlineMatch[T]class Quote[T]class Return[T]class Splice[T]class SplicePattern[T]class Try[T]class WhileDo[T]class Thicket[T]class EmptyTree[T]trait TypTree[T]class ByNameTypeTree[T]class LambdaTypeTree[T]class MatchTypeTree[T]class TermLambdaTypeTree[T]class TypeBoundsTree[T]trait WithoutTypeOrPos[T]class ExtMethodsclass Functionclass FunctionWithModsclass WildcardFunctionclass GenAliasclass GenFromclass ImportSelectorclass InLambdaTypeTreeclass Intoclass MacroTreeclass OpTreeclass InfixOpclass PostfixOpclass PrefixOpclass PolyFunctionclass TupleShow all
trait LinkSource
An implementation trait for attachments. Clients should inherit from Container instead.
An implementation trait for attachments. Clients should inherit from Container instead.
Attributes
- Supertypes
- Known subtypes
-
trait Containerclass Tree[T]class Block[T]class XMLBlockclass CaseDef[T]class DenotingTree[T]trait DefTree[T]class NamedDefTree[T]class Bind[T]class MemberDef[T]class TypeDef[T]class ValOrDefDef[T]class DefDef[T]class ValDef[T]class EmptyValDef[T]trait ValOrTypeDef[T]class ModuleDefclass Template[T]class DerivingTemplateclass ImportOrExport[T]class Export[T]class Import[T]class NameTree[T]class Labeled[T]class RefTree[T]class Ident[T]class SearchFailureIdent[T]object EmptyTypeIdentclass Select[T]class SelectWithSig[T]class SingletonTypeTree[T]class This[T]class TypeTree[T]class InferredTypeTree[T]class DerivedTypeTreeclass DerivedFromParamTreeclass SetterParamTreeclass TermRefTreeclass TypeRefTreeclass Hole[T]class Inlined[T]class Literal[T]class NamedArg[T]class New[T]trait PatternTree[T]class Alternative[T]class QuotePattern[T]class UnApply[T]class ProxyTree[T]class Annotated[T]class AppliedTypeTree[T]class GenericApply[T]class Apply[T]class TypeApply[T]class PackageDef[T]class RefinedTypeTree[T]class Super[T]class Typed[T]class Parensclass TypedSpliceclass SeqLiteral[T]class JavaSeqLiteral[T]trait TermTree[T]class Assign[T]class Closure[T]class If[T]class InlineIf[T]class Match[T]class InlineMatch[T]class Quote[T]class Return[T]class Splice[T]class SplicePattern[T]class Try[T]class WhileDo[T]class Thicket[T]class EmptyTree[T]trait TypTree[T]class ByNameTypeTree[T]class LambdaTypeTree[T]class MatchTypeTree[T]class TermLambdaTypeTree[T]class TypeBoundsTree[T]trait WithoutTypeOrPos[T]class ExtMethodsclass Functionclass FunctionWithModsclass WildcardFunctionclass GenAliasclass GenFromclass ImportSelectorclass InLambdaTypeTreeclass Intoclass MacroTreeclass OpTreeclass InfixOpclass PostfixOpclass PrefixOpclass PolyFunctionclass TupleShow all
In this article