|
5 | 5 | // DO NOT EDIT. This file was generated from async_evaluate.dart.
|
6 | 6 | // See tool/grind/synchronize.dart for details.
|
7 | 7 | //
|
8 |
| -// Checksum: 7788c21fd8c721992490ac01d0ef4783dddf3f1f |
| 8 | +// Checksum: 116b8079719577ac6e4dad4aebe403282136e611 |
9 | 9 | //
|
10 | 10 | // ignore_for_file: unused_import
|
11 | 11 |
|
@@ -1845,6 +1845,18 @@ final class _EvaluateVisitor
|
1845 | 1845 | Value? visitIncludeRule(IncludeRule node) {
|
1846 | 1846 | var mixin = _addExceptionSpan(node,
|
1847 | 1847 | () => _environment.getMixin(node.name, namespace: node.namespace));
|
| 1848 | + if (node.originalName.startsWith('--') && |
| 1849 | + mixin is UserDefinedCallable && |
| 1850 | + !mixin.declaration.originalName.startsWith('--')) { |
| 1851 | + _warn( |
| 1852 | + 'Sass @mixin names beginning with -- are deprecated for forward-' |
| 1853 | + 'compatibility with plain CSS mixins.\n' |
| 1854 | + '\n' |
| 1855 | + 'For details, see https://sass-lang.com/d/css-function-mixin', |
| 1856 | + node.nameSpan, |
| 1857 | + Deprecation.cssFunctionMixin); |
| 1858 | + } |
| 1859 | + |
1848 | 1860 | var contentCallable = node.content.andThen((content) => UserDefinedCallable(
|
1849 | 1861 | content, _environment.closure(),
|
1850 | 1862 | inDependency: _inDependency));
|
@@ -2486,6 +2498,19 @@ final class _EvaluateVisitor
|
2486 | 2498 | PlainCssCallable(node.originalName);
|
2487 | 2499 | }
|
2488 | 2500 |
|
| 2501 | + if (node.originalName.startsWith('--') && |
| 2502 | + function is UserDefinedCallable && |
| 2503 | + !function.declaration.originalName.startsWith('--')) { |
| 2504 | + _warn( |
| 2505 | + 'Sass @function names beginning with -- are deprecated for forward-' |
| 2506 | + 'compatibility with plain CSS functions.\n' |
| 2507 | + '\n' |
| 2508 | + 'For details, see https://sass-lang.com/d/css-function-mixin', |
| 2509 | + node.nameSpan, |
| 2510 | + Deprecation.cssFunctionMixin, |
| 2511 | + ); |
| 2512 | + } |
| 2513 | + |
2489 | 2514 | var oldInFunction = _inFunction;
|
2490 | 2515 | _inFunction = true;
|
2491 | 2516 | var result = _addErrorSpan(
|
|
0 commit comments