DeprecationControl
public struct DeprecationControl: Sendable
A Compiler’s deprecation settings.
Indicates which Deprecations should be fatal, silenced, or eagerly adopted.
Topics
var fatal: Set<Deprecation>
var fatal: Set<Deprecation>
The set of deprecations to be treated as compiler errors.
Declaration
public let fatal: Set<Deprecation>
var silenced: Set<Deprecation>
var silenced: Set<Deprecation>
var future: Set<Deprecation>
var future: Set<Deprecation>
The set of future deprecations to be opted-in early.
Declaration
public let future: Set<Deprecation>
var fatalExcept: Set<Deprecation>
var fatalExcept: Set<Deprecation>
The set of deprecations to be ignored even when included in fatal.
This is useful if you include a version number in fatal but want to then disable a
subset of the specific deprecations enforced by that version.
Declaration
public let fatalExcept: Set<Deprecation>
init(fatal: any Sequence<Deprecation>, silenced: any Sequence<Deprecation>, future: any Sequence<Deprecation>, fatalExcept: any Sequence<Deprecation>)
init(fatal: any Sequence<Deprecation>, silenced: any Sequence<Deprecation>, future: any Sequence<Deprecation>, fatalExcept: any Sequence<Deprecation>)
Create a new DeprecationControl.
Making mistakes with these – for example passing an unknown deprecation string, or putting the same deprecation in multiple places in confusing ways – is reported through warnings from the Sass compiler when you compile a stylesheet.
It’s an error to set a fatalExcept missing from fatal and this prevents
the compiler from starting.
Declaration
public init(
fatal: any Sequence<Deprecation> = [],
silenced: any Sequence<Deprecation> = [],
future: any Sequence<Deprecation> = [],
fatalExcept: any Sequence<Deprecation> = [])