copy method

  1. @override
LanguageVersionToken copy()

Return a newly created token that is a copy of this tokens including any preceedingComment tokens, but that is not a part of any token stream.

Implementation

@override
LanguageVersionToken copy() =>
    new LanguageVersionToken.from(lexeme, offset, major, minor);