|
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: 05cb957cd0c7698d8ad648f31d862dc91f0daa7b |
| 8 | +// Checksum: 135bf44f65efcbebb4a55b38ada86c754fcdb86b |
9 | 9 | // |
10 | 10 | // ignore_for_file: unused_import |
11 | 11 |
|
@@ -1321,6 +1321,9 @@ final class _EvaluateVisitor |
1321 | 1321 | if (_declarationName != null) { |
1322 | 1322 | throw _exception( |
1323 | 1323 | "At-rules may not be used within nested declarations.", node.span); |
| 1324 | + } else if (_inKeyframes && _parent is CssKeyframeBlock) { |
| 1325 | + throw _exception( |
| 1326 | + "At-rules may not be used within keyframe blocks.", node.span); |
1324 | 1327 | } |
1325 | 1328 |
|
1326 | 1329 | var name = _interpolationToValue(node.name); |
@@ -1887,6 +1890,9 @@ final class _EvaluateVisitor |
1887 | 1890 | if (_declarationName != null) { |
1888 | 1891 | throw _exception( |
1889 | 1892 | "Media rules may not be used within nested declarations.", node.span); |
| 1893 | + } else if (_inKeyframes && _parent is CssKeyframeBlock) { |
| 1894 | + throw _exception( |
| 1895 | + "At-rules may not be used within keyframe blocks.", node.span); |
1890 | 1896 | } |
1891 | 1897 |
|
1892 | 1898 | var queries = _visitMediaQueries(node.query); |
@@ -1975,6 +1981,9 @@ final class _EvaluateVisitor |
1975 | 1981 | if (_declarationName != null) { |
1976 | 1982 | throw _exception( |
1977 | 1983 | "Style rules may not be used within nested declarations.", node.span); |
| 1984 | + } else if (_inKeyframes && _parent is CssKeyframeBlock) { |
| 1985 | + throw _exception( |
| 1986 | + "Style rules may not be used within keyframe blocks.", node.span); |
1978 | 1987 | } |
1979 | 1988 |
|
1980 | 1989 | var (selectorText, selectorMap) = |
@@ -2102,6 +2111,9 @@ final class _EvaluateVisitor |
2102 | 2111 | throw _exception( |
2103 | 2112 | "Supports rules may not be used within nested declarations.", |
2104 | 2113 | node.span); |
| 2114 | + } else if (_inKeyframes && _parent is CssKeyframeBlock) { |
| 2115 | + throw _exception( |
| 2116 | + "At-rules may not be used within keyframe blocks.", node.span); |
2105 | 2117 | } |
2106 | 2118 |
|
2107 | 2119 | var condition = |
@@ -3240,6 +3252,9 @@ final class _EvaluateVisitor |
3240 | 3252 | if (_declarationName != null) { |
3241 | 3253 | throw _exception( |
3242 | 3254 | "At-rules may not be used within nested declarations.", node.span); |
| 3255 | + } else if (_inKeyframes && _parent is CssKeyframeBlock) { |
| 3256 | + throw _exception( |
| 3257 | + "At-rules may not be used within keyframe blocks.", node.span); |
3243 | 3258 | } |
3244 | 3259 |
|
3245 | 3260 | if (node.isChildless) { |
@@ -3323,6 +3338,9 @@ final class _EvaluateVisitor |
3323 | 3338 | if (_declarationName != null) { |
3324 | 3339 | throw _exception( |
3325 | 3340 | "Media rules may not be used within nested declarations.", node.span); |
| 3341 | + } else if (_inKeyframes && _parent is CssKeyframeBlock) { |
| 3342 | + throw _exception( |
| 3343 | + "At-rules may not be used within keyframe blocks.", node.span); |
3326 | 3344 | } |
3327 | 3345 |
|
3328 | 3346 | var mergedQueries = _mediaQueries.andThen( |
@@ -3369,6 +3387,9 @@ final class _EvaluateVisitor |
3369 | 3387 | if (_declarationName != null) { |
3370 | 3388 | throw _exception( |
3371 | 3389 | "Style rules may not be used within nested declarations.", node.span); |
| 3390 | + } else if (_inKeyframes && _parent is CssKeyframeBlock) { |
| 3391 | + throw _exception( |
| 3392 | + "Style rules may not be used within keyframe blocks.", node.span); |
3372 | 3393 | } |
3373 | 3394 |
|
3374 | 3395 | var styleRule = _styleRule; |
|
0 commit comments