withSpan method
A copy with a different span.
Implementation
Token withSpan(SourceSpan span) =>
Token(kind, text, span, noexpand: noexpand, incomplete: incomplete);
A copy with a different span.
Token withSpan(SourceSpan span) =>
Token(kind, text, span, noexpand: noexpand, incomplete: incomplete);