Hwaro::Assets::Sass::Environment
Constructors
Instance methods
Assignment semantics (dart-sass-flavored):
!globalwrites the root scope (skipped by!defaultwhen set).!defaultis a no-op when the name resolves anywhere in scope to a non-null value; a null still takes the default (dart-sass: the$map: null !default; @if ... { $map: (...) !default; }guard idiom depends on it).- Otherwise the innermost non-root scope already declaring the name is updated; failing that, the name is declared here — which shadows a root/global variable rather than mutating it.
- Exception: when every frame between here and the root is a flow-control scope, a root declaration is assigned, not shadowed (dart-sass flow-control scoping).
flow_control?
Flow-control scopes (@if/@each/@for/@while bodies) don't shadow
outer variables — they assign through to them, global included
(dart-sass flow-control scoping). That is what makes
@while $i < 4 { $i: $i + 1; } terminate.
functions
Sourcemixins
Sourceparent
Sourceroot
Sourceroot?
Sourcevariables
Source