Modifier

@objcMembers
public class Modifier : NSObject, AutoCoding, AutoEquatable, AutoDiffable, AutoJSExport, Diffable
extension Modifier: NSCoding

modifier can be thing like private, class, nonmutating if a declaration has modifier like private(set) it’s name will be private and detail will be set

  • The declaration modifier name.

    Declaration

    Swift

    public let name: String
  • The modifier detail, if any.

    Declaration

    Swift

    public let detail: String?
  • Declaration

    Swift

    public init(name: String, detail: String? = nil)
  • Declaration

    Swift

    public var asSource: String { get }
  • Declaration

    Swift

    public func diffAgainst(_ object: Any?) -> DiffableResult