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
22// MIT-style license that can be found in the LICENSE file or at
33// https://opensource.org/licenses/MIT.
44
@@ -10,34 +10,42 @@ import 'util/nullable.dart';
1010
1111/// A deprecated feature in the language.
1212enum 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().
1421 callString ('call-string' ,
1522 deprecatedIn: '0.0.0' ,
1623 description: 'Passing a string directly to meta.call().' ),
1724
18- /// Deprecation for ` @elseif` .
25+ /// Deprecation for @elseif.
1926 elseif ('elseif' , deprecatedIn: '1.3.2' , description: '@elseif.' ),
2027
21- /// Deprecation for parsing ` @-moz-document` .
28+ /// Deprecation for @-moz-document.
2229 mozDocument ('moz-document' ,
2330 deprecatedIn: '1.7.2' , description: '@-moz-document.' ),
2431
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.' ),
2736
28- /// Deprecation for declaring new variables with ` !global` .
37+ /// Deprecation for declaring new variables with !global.
2938 newGlobal ('new-global' ,
3039 deprecatedIn: '1.17.2' ,
3140 description: 'Declaring new variables with !global.' ),
3241
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.
3543 colorModuleCompat ('color-module-compat' ,
3644 deprecatedIn: '1.23.0' ,
3745 description:
3846 'Using color module functions in place of plain CSS functions.' ),
3947
40- /// Deprecation for treating `/` as division.
48+ /// Deprecation for / operator for division.
4149 slashDiv ('slash-div' ,
4250 deprecatedIn: '1.33.0' , description: '/ operator for division.' ),
4351
@@ -46,46 +54,55 @@ enum Deprecation {
4654 deprecatedIn: '1.54.0' ,
4755 description: 'Leading, trailing, and repeated combinators.' ),
4856
49- /// Deprecation for ambiguous `+` and `-` operators.
57+ /// Deprecation for ambiguous + and - operators.
5058 strictUnary ('strict-unary' ,
5159 deprecatedIn: '1.55.0' , description: 'Ambiguous + and - operators.' ),
5260
53- /// Deprecation for passing invalid units to certain built-in functions.
61+ /// Deprecation for passing invalid units to built-in functions.
5462 functionUnits ('function-units' ,
5563 deprecatedIn: '1.56.0' ,
5664 description: 'Passing invalid units to built-in functions.' ),
5765
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' ,
6468 deprecatedIn: '1.62.0' ,
6569 description:
6670 'Using !default or !global multiple times for one variable.' ),
6771
72+ /// Deprecation for passing null as alpha in the ${isJS ? 'JS': 'Dart'} API.
6873 nullAlpha ('null-alpha' ,
6974 deprecatedIn: '1.62.3' ,
7075 description: 'Passing null as alpha in the ${isJS ? 'JS' : 'Dart' } API.' ),
7176
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.
7283 fsImporterCwd ('fs-importer-cwd' ,
7384 deprecatedIn: '1.73.0' ,
7485 description:
7586 'Using the current working directory as an implicit load path.' ),
7687
88+ /// Deprecation for function and mixin names beginning with --.
7789 cssFunctionMixin ('css-function-mixin' ,
7890 deprecatedIn: '1.76.0' ,
7991 description: 'Function and mixin names beginning with --.' ),
8092
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.
8594 import.future ('import' , description: '@import rules.' ),
8695
96+ // END AUTOGENERATED CODE
97+
8798 /// 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;
89106
90107 /// A unique ID for this deprecation in kebab case.
91108 ///
0 commit comments