Definition

public protocol Definition : AnyObject

Describes that the object is defined in a context of some Type

  • Reference to type name where the object is defined, nil if defined outside of any enum, struct, class etc

    Declaration

    Swift

    var definedInTypeName: TypeName? { get }
  • Reference to actual type where the object is defined, nil if defined outside of any enum, struct, class etc or type is unknown

    Declaration

    Swift

    var definedInType: Type? { get }
  • Reference to actual type name where the method is defined if declaration uses typealias, otherwise just a definedInTypeName

    Declaration

    Swift

    var actualDefinedInTypeName: TypeName? { get }