mirror of
https://github.com/sass/sass.git
synced 2024-09-21 10:37:22 +00:00
[Module System] Clean up another variable-declaration branch
This commit is contained in:
parent
0d48b428c3
commit
cb666d9074
@ -1160,21 +1160,20 @@ Given a source file `file`, a [configuration](#configuration) `config`, and an
|
||||
|
||||
* If `resolved` is not `null`:
|
||||
|
||||
* If `variable` has a `!default` flag and `resolved`'s value isn't `null`,
|
||||
do nothing.
|
||||
* If `declaration` has a `!default` flag and `resolved`'s value isn't
|
||||
`null`, do nothing.
|
||||
|
||||
* Otherwise, if `resolved` is a variable in another module:
|
||||
* Otherwise, let `value` be the result of evaluating `declaration`'s
|
||||
value.
|
||||
|
||||
* Set `resolved`'s value to `variable`'s value.
|
||||
|
||||
* Otherwise:
|
||||
|
||||
* If `variable`'s name *doesn't* begin with `-` or `_`, add `variable`
|
||||
to `module`.
|
||||
* If `name` *doesn't* begin with `-` or `_`, add a variable with name
|
||||
`name` and value `value` to `module`.
|
||||
|
||||
> This overrides the previous definition, if one exists.
|
||||
|
||||
* Add `variable` to `import`.
|
||||
* Add a variable with name `name` and value `value` to `import`.
|
||||
|
||||
> This also overrides the previous definition.
|
||||
|
||||
> This makes it possible to write
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user