StringTokenImpl.fromString constructor
StringTokenImpl.fromString(})
Creates a non-lazy string token. If canonicalize
is true, the string
is canonicalized before the token is created.
Implementation
StringTokenImpl.fromString(TokenType type, String value, int charOffset,
{bool canonicalize = false, CommentToken? precedingComments})
: valueOrLazySubstring =
canonicalize ? canonicalizedString(value) : value,
super(type, charOffset, precedingComments);