Fixes #1401 and #1414. Adds `Dependency`, `SassDeclaration`, and `SassReference` interfaces, which expose some getters that multiple AST nodes have in common with a single type. These also add getters for common subspans (URL, name, and namespace) to the interfaces.
1.1 KiB
1.0.0-beta.4
-
UseRule
,ForwardRule
, andDynamicImport
now share a commonDependency
interface that exposes aurl
getter and aurlSpan
getter. -
VariableDeclaration
,MixinRule
,FunctionRule
,Argument
, andConfiguredVariable
now share a commonSassDeclaration
interface that exposes aname
getter (with underscores converted to hyphens) and anameSpan
getter. -
Function calls with interpolation have now been split into their own AST node:
InterpolatedFunctionExpression
.FunctionExpression.name
is now always a string (with underscores converted to hyphens).FunctionExpression
also now has anoriginalName
getter, which leaves underscores as-is. -
VariableExpression
,IncludeRule
, andFunctionExpression
now share a commonSassReference
interface that exposes anamespace
getter and aname
getter (with underscores converted to hyphens), as well as correspondingnamespaceSpan
andnameSpan
getters.
1.0.0-beta.3
- No user-visible changes.
1.0.0-beta.2
- No user-visible changes.
1.0.0-beta.1
- Initial beta release.