|
5 | 5 | // DO NOT EDIT. This file was generated from async_environment.dart. |
6 | 6 | // See tool/grind/synchronize.dart for details. |
7 | 7 | // |
8 | | -// Checksum: 6d84948495bad10a2416f6d51fd568322523c5e6 |
| 8 | +// Checksum: 7b9b411c85ad6da89891b089912cc52c673fc801 |
9 | 9 | // |
10 | 10 | // ignore_for_file: unused_import |
11 | 11 |
|
@@ -449,7 +449,7 @@ final class Environment { |
449 | 449 | /// Throws a [SassScriptException] if there is no module named [namespace], or |
450 | 450 | /// if multiple global modules expose variables named [name]. |
451 | 451 | Value? getVariable(String name, {String? namespace}) { |
452 | | - if (namespace != null) return _getModule(namespace).variables[name]; |
| 452 | + if (namespace != null) return getModule(namespace).variables[name]; |
453 | 453 |
|
454 | 454 | if (_lastVariableName == name) { |
455 | 455 | return _variables[_lastVariableIndex!][name] ?? |
@@ -488,7 +488,7 @@ final class Environment { |
488 | 488 | /// required, since some nodes need to do real work to manufacture a source |
489 | 489 | /// span. |
490 | 490 | AstNode? getVariableNode(String name, {String? namespace}) { |
491 | | - if (namespace != null) return _getModule(namespace).variableNodes[name]; |
| 491 | + if (namespace != null) return getModule(namespace).variableNodes[name]; |
492 | 492 |
|
493 | 493 | if (_lastVariableName == name) { |
494 | 494 | return _variableNodes[_lastVariableIndex!][name] ?? |
@@ -537,7 +537,7 @@ final class Environment { |
537 | 537 | /// if multiple global modules expose functions named [name]. |
538 | 538 | bool globalVariableExists(String name, {String? namespace}) { |
539 | 539 | if (namespace != null) { |
540 | | - return _getModule(namespace).variables.containsKey(name); |
| 540 | + return getModule(namespace).variables.containsKey(name); |
541 | 541 | } |
542 | 542 | if (_variables.first.containsKey(name)) return true; |
543 | 543 | return _getVariableFromGlobalModule(name) != null; |
@@ -578,7 +578,7 @@ final class Environment { |
578 | 578 | bool global = false, |
579 | 579 | }) { |
580 | 580 | if (namespace != null) { |
581 | | - _getModule(namespace).setVariable(name, value, nodeWithSpan); |
| 581 | + getModule(namespace).setVariable(name, value, nodeWithSpan); |
582 | 582 | return; |
583 | 583 | } |
584 | 584 |
|
@@ -674,7 +674,7 @@ final class Environment { |
674 | 674 | /// Throws a [SassScriptException] if there is no module named [namespace], or |
675 | 675 | /// if multiple global modules expose functions named [name]. |
676 | 676 | Callable? getFunction(String name, {String? namespace}) { |
677 | | - if (namespace != null) return _getModule(namespace).functions[name]; |
| 677 | + if (namespace != null) return getModule(namespace).functions[name]; |
678 | 678 |
|
679 | 679 | if (_functionIndices[name] case var index?) { |
680 | 680 | return _functions[index][name] ?? _getFunctionFromGlobalModule(name); |
@@ -721,7 +721,7 @@ final class Environment { |
721 | 721 | /// Throws a [SassScriptException] if there is no module named [namespace], or |
722 | 722 | /// if multiple global modules expose mixins named [name]. |
723 | 723 | Callable? getMixin(String name, {String? namespace}) { |
724 | | - if (namespace != null) return _getModule(namespace).mixins[name]; |
| 724 | + if (namespace != null) return getModule(namespace).mixins[name]; |
725 | 725 |
|
726 | 726 | if (_mixinIndices[name] case var index?) { |
727 | 727 | return _mixins[index][name] ?? _getMixinFromGlobalModule(name); |
@@ -902,10 +902,10 @@ final class Environment { |
902 | 902 |
|
903 | 903 | /// Returns the module with the given [namespace], or throws a |
904 | 904 | /// [SassScriptException] if none exists. |
905 | | - Module<Callable> _getModule(String namespace) { |
| 905 | + Module<Callable> getModule(String namespace) { |
906 | 906 | if (_modules[namespace] case var module?) return module; |
907 | 907 | throw SassScriptException( |
908 | | - 'There is no module with the namespace "$namespace".', |
| 908 | + 'There is no module with namespace "$namespace".', |
909 | 909 | ); |
910 | 910 | } |
911 | 911 |
|
|
0 commit comments