span property
FileSpan
get
span
override
The source span associated with the node.
This indicates where in the source Sass or SCSS stylesheet the node was defined.
Implementation
FileSpan get span {
// Avoid creating a bunch of intermediate spans for multiple binary
// expressions in a row by moving to the left- and right-most expressions.
var left = this.left;
while (left is BinaryOperationExpression) {
left = left.left;
}
var right = this.right;
while (right is BinaryOperationExpression) {
right = right.right;
}
return left.span.expand(right.span);
}