nameSpan property

FileSpan nameSpan
override

The span containing this reference's name.

For variables, this should include the $.

Implementation

FileSpan get nameSpan {
  var startSpan = span.text.startsWith('+')
      ? span.subspan(1).trimLeft()
      : span.withoutInitialAtRule();
  if (namespace != null) startSpan = startSpan.withoutNamespace();
  return startSpan.initialIdentifier();
}