INNER CODE UNIT · Swift

apply

peripheryapp/periphery · Sources/Configuration/Configuration.swift:205

    public func apply<T: Equatable>(_ path: KeyPath<Configuration, Setting<T>>, _ value: T) {
        let setting = self[keyPath: path]

        if setting.defaultValue != value {
            setting.wrappedValue = value
        }
    }

    public func buildFilenameMatchers() {
        indexExcludeMatchers = buildFilenameMatchers(with: indexExclude)
        retainFilesMatchers = buildFilenameMatchers(with: retainFiles)
        reportExcludeMatchers = buildFilenameMatchers(with: reportExclude)
        reportIncludeMatchers = buildFilenameMatchers(with: reportInclude)
    }

    public var indexExcludeMatchers: [FilenameMatcher] = []
    public var retainFilesMatchers: [FilenameMatcher] = []
    public var reportExcludeMatchers: [FilenameMatcher] = []

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…