Skip to content

Commit 7816348

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

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
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

lib/src/visitor/evaluate.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// DO NOT EDIT. This file was generated from async_evaluate.dart.
66
// See tool/grind/synchronize.dart for details.
77
//
8-
// Checksum: 29a7ac15a527ca0f702f3440f51613a812811f8a
8+
// Checksum: 303cd172dc9de38a8051a4ad70fa321d63b2669e
99
//
1010
// ignore_for_file: unused_import
1111

@@ -144,10 +144,6 @@ final class _EvaluateVisitor
144144
StatementVisitor<Value?>,
145145
ExpressionVisitor<Value>,
146146
CssVisitor<void> {
147-
/// The unique compile context for tracking if SassFunction and SassMixin
148-
/// belongs to current compilation or not.
149-
final Object _compileContext = Object();
150-
151147
/// The import cache used to import other stylesheets.
152148
final ImportCache? _importCache;
153149

@@ -191,6 +187,10 @@ final class _EvaluateVisitor
191187
/// Whether to track source map information.
192188
final bool _sourceMap;
193189

190+
/// The unique compile context for tracking if [SassFunction]s and
191+
/// [SassMixin]s belongs to the current compilation or not.
192+
final Object _compileContext = Object();
193+
194194
/// The current lexical environment.
195195
Environment _environment;
196196

0 commit comments

Comments
 (0)