The PEG tokenizer adds a quote token's string value as a ".value" attribute after-the-fact instead of stuffing it as an attribute of the token.
Consequently, the QuoteTransformer uses ".value" instead of token.getAttribute('value').
Presumably, this was either an oversight or a premature performance optimization (see T205479: Fix token datastructure to fix potential perfomance issue).
This should be fixed.