[07] [Parse] Lexer build backtick trivia around espaced identifier token - omochi/swift GitHub Wiki
There was a logic that build backtick trivia before and after of escaped identifier token at two places.
First is at swift::tokenizeWithTrivia
in Parser.cpp
.
Second is at SyntaxParsingContext::addToken
in SyntaxParsingContext.cpp
.
This PR moves this logic into Lexer and makes them common.
First commit is adding of testcase for existing.
To check first case, it runs swift-syntax-test -dump-full-tokens
.
To check second case, it runs swift-syntax-test -serialize-raw-tree
.
Second commit is actual patch.