Skip to content

Commit d1320ae

Browse files
committed
Add comments
1 parent 96c2b08 commit d1320ae

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lib/src/value/function.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ class SassFunction extends Value {
3939

4040
SassFunction assertFunction([String? name]) => this;
4141

42+
/// Asserts that this SassFunction belongs to [compileContext] and returns it.
43+
///
44+
/// It's checked before evaluating a SassFunction to prevent execution of
45+
/// SassFunction across different compilations.
4246
@internal
4347
SassFunction assertCompileContext(Object compileContext) {
4448
if (_compileContext != null && _compileContext != compileContext) {

lib/src/value/mixin.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ final class SassMixin extends Value {
4141

4242
SassMixin assertMixin([String? name]) => this;
4343

44+
/// Asserts that this SassMixin belongs to [compileContext] and returns it.
45+
///
46+
/// It's checked before evaluating a SassMixin to prevent execution of
47+
/// SassMixin across different compilations.
4448
@internal
4549
SassMixin assertCompileContext(Object compileContext) {
4650
if (_compileContext != null && _compileContext != compileContext) {

0 commit comments

Comments
 (0)