File tree 3 files changed +10
-8
lines changed 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ class SassFunction extends Value {
24
24
/// synchronous evaluate visitor will crash if this isn't a [Callable] .
25
25
final AsyncCallable callable;
26
26
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.
29
31
final Object ? _compileContext;
30
32
31
33
SassFunction (this .callable) : _compileContext = null ;
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ final class SassMixin extends Value {
26
26
@internal
27
27
final AsyncCallable callable;
28
28
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.
31
31
final Object ? _compileContext;
32
32
33
33
SassMixin (this .callable) : _compileContext = null ;
Original file line number Diff line number Diff line change @@ -136,10 +136,6 @@ final class _EvaluateVisitor
136
136
StatementVisitor <Future <Value ?>>,
137
137
ExpressionVisitor <Future <Value >>,
138
138
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
-
143
139
/// The import cache used to import other stylesheets.
144
140
final AsyncImportCache ? _importCache;
145
141
@@ -183,6 +179,10 @@ final class _EvaluateVisitor
183
179
/// Whether to track source map information.
184
180
final bool _sourceMap;
185
181
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
+
186
186
/// The current lexical environment.
187
187
AsyncEnvironment _environment;
188
188
You can’t perform that action at this time.
0 commit comments