namespaceSpan property
FileSpan?
get
namespaceSpan
override
The span containing this reference's namespace, null if namespace is null.
Implementation
FileSpan? get namespaceSpan {
if (namespace == null) return null;
var startSpan = span.text.startsWith('+')
? span.subspan(1).trimLeft()
: span.withoutInitialAtRule();
return startSpan.initialIdentifier();
}