Skip to content

Commit 2547c76

Browse files
committed
Minor style/documentation changes
1 parent 6613196 commit 2547c76

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

lib/src/value/function.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ class SassFunction extends Value {
2424
/// synchronous evaluate visitor will crash if this isn't a [Callable].
2525
final AsyncCallable callable;
2626

27-
/// The unique compile context for tracking if SassFunction and SassMixin
28-
/// belongs to current compilation or not.
27+
/// The unique compile context for tracking if this [SassFunction] belongs to
28+
/// the current compilation or not.
29+
///
30+
/// This is `null` for functions defined in plugins' Dart code.
2931
final Object? _compileContext;
3032

3133
SassFunction(this.callable) : _compileContext = null;

lib/src/value/mixin.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ final class SassMixin extends Value {
2626
@internal
2727
final AsyncCallable callable;
2828

29-
/// The unique compile context for tracking if SassFunction and SassMixin
30-
/// belongs to current compilation or not.
29+
/// The unique compile context for tracking if this [SassMixin] belongs to the
30+
/// current compilation or not.
3131
final Object? _compileContext;
3232

3333
SassMixin(this.callable) : _compileContext = null;

lib/src/visitor/async_evaluate.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ final class _EvaluateVisitor
136136
StatementVisitor<Future<Value?>>,
137137
ExpressionVisitor<Future<Value>>,
138138
CssVisitor<Future<void>> {
139-
/// The unique compile context for tracking if SassFunction and SassMixin
140-
/// belongs to current compilation or not.
141-
final Object _compileContext = Object();
142-
143139
/// The import cache used to import other stylesheets.
144140
final AsyncImportCache? _importCache;
145141

@@ -183,6 +179,10 @@ final class _EvaluateVisitor
183179
/// Whether to track source map information.
184180
final bool _sourceMap;
185181

182+
/// The unique compile context for tracking if [SassFunction]s and
183+
/// [SassMixin]s belongs to the current compilation or not.
184+
final Object _compileContext = Object();
185+
186186
/// The current lexical environment.
187187
AsyncEnvironment _environment;
188188

0 commit comments

Comments
 (0)