|
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: fbffa0dbe5a1af846dc83752457d39fb2984d280 |
| 8 | +// Checksum: afc541c7e8bbec53a7a076341b1afff290cb0e45 |
9 | 9 | //
|
10 | 10 | // ignore_for_file: unused_import
|
11 | 11 |
|
@@ -2437,7 +2437,8 @@ final class _EvaluateVisitor
|
2437 | 2437 | (node.namespace == null &&
|
2438 | 2438 | const {
|
2439 | 2439 | "calc", "clamp", "hypot", "sin", "cos", "tan", "asin", "acos", //
|
2440 |
| - "atan", "sqrt", "exp", "sign", "mod", "rem", "atan2", "pow", "log" |
| 2440 | + "atan", "sqrt", "exp", "sign", "mod", "rem", "atan2", "pow", // |
| 2441 | + "log", "calc-size" |
2441 | 2442 | }.contains(node.name.toLowerCase()) &&
|
2442 | 2443 | _environment.getFunction(node.name) == null);
|
2443 | 2444 |
|
@@ -2556,7 +2557,8 @@ final class _EvaluateVisitor
|
2556 | 2557 | "rem" ||
|
2557 | 2558 | "atan2" ||
|
2558 | 2559 | "pow" ||
|
2559 |
| - "log": |
| 2560 | + "log" || |
| 2561 | + "calc-size": |
2560 | 2562 | return _visitCalculation(node);
|
2561 | 2563 | }
|
2562 | 2564 |
|
@@ -2649,6 +2651,8 @@ final class _EvaluateVisitor
|
2649 | 2651 | _warn(message, node.span, deprecation)),
|
2650 | 2652 | "clamp" => SassCalculation.clamp(arguments[0],
|
2651 | 2653 | arguments.elementAtOrNull(1), arguments.elementAtOrNull(2)),
|
| 2654 | + "calc-size" => |
| 2655 | + SassCalculation.calcSize(arguments[0], arguments.elementAtOrNull(1)), |
2652 | 2656 | _ => throw UnsupportedError('Unknown calculation name "${node.name}".')
|
2653 | 2657 | };
|
2654 | 2658 | } on SassScriptException catch (error, stackTrace) {
|
@@ -2696,7 +2700,7 @@ final class _EvaluateVisitor
|
2696 | 2700 | check(1);
|
2697 | 2701 | case "min" || "max" || "hypot":
|
2698 | 2702 | check();
|
2699 |
| - case "pow" || "atan2" || "log" || "mod" || "rem": |
| 2703 | + case "pow" || "atan2" || "log" || "mod" || "rem" || "calc-size": |
2700 | 2704 | check(2);
|
2701 | 2705 | case "round" || "clamp":
|
2702 | 2706 | check(3);
|
|
0 commit comments