unified: stop `"!"` bleeding through · github/codeql@91a46f0 · GitHub
Skip to content

Commit 91a46f0

Browse files
committed
unified: stop "!" bleeding through
You know the drill. We just make an anonymous node named instead. In this case, however, we have to be a bit more clever about how to rewrite it. We turn the sequence of a type followed by an optional ! into a _choice_ between mere type or type followed by bang (the latter being our new named node).
1 parent 37e1e3c commit 91a46f0

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

‎unified/extractor/tree-sitter-swift/grammar.js‎

Lines changed: 3 additions & 1 deletion

‎unified/extractor/tree-sitter-swift/node-types.yml‎

Lines changed: 13 additions & 10 deletions

0 commit comments

Comments
 (0)