1
- // Copyright 2022 Google LLC. Use of this source code is governed by an
1
+ // Copyright 2024 Google LLC. Use of this source code is governed by an
2
2
// MIT-style license that can be found in the LICENSE file or at
3
3
// https://opensource.org/licenses/MIT.
4
4
@@ -10,34 +10,42 @@ import 'util/nullable.dart';
10
10
11
11
/// A deprecated feature in the language.
12
12
enum Deprecation {
13
- /// Deprecation for passing a string to `call` instead of `get-function` .
13
+ // START AUTOGENERATED CODE
14
+ //
15
+ // DO NOT EDIT. This section was generated from the language repo.
16
+ // See tool/grind/generate_deprecations.dart for details.
17
+ //
18
+ // Checksum: 22d9bdbe92eb39b3c0d6d64ebe1879a431c0037e
19
+
20
+ /// Deprecation for passing a string directly to meta.call().
14
21
callString ('call-string' ,
15
22
deprecatedIn: '0.0.0' ,
16
23
description: 'Passing a string directly to meta.call().' ),
17
24
18
- /// Deprecation for ` @elseif` .
25
+ /// Deprecation for @elseif.
19
26
elseif ('elseif' , deprecatedIn: '1.3.2' , description: '@elseif.' ),
20
27
21
- /// Deprecation for parsing ` @-moz-document` .
28
+ /// Deprecation for @-moz-document.
22
29
mozDocument ('moz-document' ,
23
30
deprecatedIn: '1.7.2' , description: '@-moz-document.' ),
24
31
25
- /// Deprecation for importers using relative canonical URLs.
26
- relativeCanonical ('relative-canonical' , deprecatedIn: '1.14.2' ),
32
+ /// Deprecation for imports using relative canonical URLs.
33
+ relativeCanonical ('relative-canonical' ,
34
+ deprecatedIn: '1.14.2' ,
35
+ description: 'Imports using relative canonical URLs.' ),
27
36
28
- /// Deprecation for declaring new variables with ` !global` .
37
+ /// Deprecation for declaring new variables with !global.
29
38
newGlobal ('new-global' ,
30
39
deprecatedIn: '1.17.2' ,
31
40
description: 'Declaring new variables with !global.' ),
32
41
33
- /// Deprecation for certain functions in the color module matching the
34
- /// behavior of their global counterparts for compatiblity reasons.
42
+ /// Deprecation for using color module functions in place of plain CSS functions.
35
43
colorModuleCompat ('color-module-compat' ,
36
44
deprecatedIn: '1.23.0' ,
37
45
description:
38
46
'Using color module functions in place of plain CSS functions.' ),
39
47
40
- /// Deprecation for treating `/` as division.
48
+ /// Deprecation for / operator for division.
41
49
slashDiv ('slash-div' ,
42
50
deprecatedIn: '1.33.0' , description: '/ operator for division.' ),
43
51
@@ -46,46 +54,55 @@ enum Deprecation {
46
54
deprecatedIn: '1.54.0' ,
47
55
description: 'Leading, trailing, and repeated combinators.' ),
48
56
49
- /// Deprecation for ambiguous `+` and `-` operators.
57
+ /// Deprecation for ambiguous + and - operators.
50
58
strictUnary ('strict-unary' ,
51
59
deprecatedIn: '1.55.0' , description: 'Ambiguous + and - operators.' ),
52
60
53
- /// Deprecation for passing invalid units to certain built-in functions.
61
+ /// Deprecation for passing invalid units to built-in functions.
54
62
functionUnits ('function-units' ,
55
63
deprecatedIn: '1.56.0' ,
56
64
description: 'Passing invalid units to built-in functions.' ),
57
65
58
- /// Deprecation for passing percentages to the Sass abs() function.
59
- absPercent ('abs-percent' ,
60
- deprecatedIn: '1.65.0' ,
61
- description: 'Passing percentages to the Sass abs() function.' ),
62
-
63
- duplicateVariableFlags ('duplicate-var-flags' ,
66
+ /// Deprecation for using !default or !global multiple times for one variable.
67
+ duplicateVarFlags ('duplicate-var-flags' ,
64
68
deprecatedIn: '1.62.0' ,
65
69
description:
66
70
'Using !default or !global multiple times for one variable.' ),
67
71
72
+ /// Deprecation for passing null as alpha in the ${isJS ? 'JS': 'Dart'} API.
68
73
nullAlpha ('null-alpha' ,
69
74
deprecatedIn: '1.62.3' ,
70
75
description: 'Passing null as alpha in the ${isJS ? 'JS' : 'Dart' } API.' ),
71
76
77
+ /// Deprecation for passing percentages to the Sass abs() function.
78
+ absPercent ('abs-percent' ,
79
+ deprecatedIn: '1.65.0' ,
80
+ description: 'Passing percentages to the Sass abs() function.' ),
81
+
82
+ /// Deprecation for using the current working directory as an implicit load path.
72
83
fsImporterCwd ('fs-importer-cwd' ,
73
84
deprecatedIn: '1.73.0' ,
74
85
description:
75
86
'Using the current working directory as an implicit load path.' ),
76
87
88
+ /// Deprecation for function and mixin names beginning with --.
77
89
cssFunctionMixin ('css-function-mixin' ,
78
90
deprecatedIn: '1.76.0' ,
79
91
description: 'Function and mixin names beginning with --.' ),
80
92
81
- @Deprecated ('This deprecation name was never actually used.' )
82
- calcInterp ('calc-interp' , deprecatedIn: null ),
83
-
84
- /// Deprecation for `@import` rules.
93
+ /// Deprecation for @import rules.
85
94
import.future ('import' , description: '@import rules.' ),
86
95
96
+ // END AUTOGENERATED CODE
97
+
87
98
/// Used for deprecations coming from user-authored code.
88
- userAuthored ('user-authored' , deprecatedIn: null );
99
+ userAuthored ('user-authored' , deprecatedIn: null ),
100
+
101
+ @Deprecated ('This deprecation name was never actually used.' )
102
+ calcInterp ('calc-interp' , deprecatedIn: null );
103
+
104
+ @Deprecated ('Use duplicateVarFlags instead.' )
105
+ static const duplicateVariableFlags = duplicateVarFlags;
89
106
90
107
/// A unique ID for this deprecation in kebab case.
91
108
///
0 commit comments