Migrate TrailingCommentCheck to Strongly typed AST#357
Conversation
8fac083 to
55e09ed
Compare
There was a problem hiding this comment.
Please inline it no need to have a public constant here. Thanks.
There was a problem hiding this comment.
This import is supsicious : we should not be requiring implementation.
There was a problem hiding this comment.
Checks should rely on PyToken rather than token.
There was a problem hiding this comment.
Why is an ignore list required ? if we are visiting the same token multiple times we probably have an issue into the visit of tokens
There was a problem hiding this comment.
Same remark, SSLR token should not leak from PyToken api.
IMO we should mark the token() method in PyToken as deprecated : this method is there for issue location but should not be used in checks to not leak SSLR API in checks.
There was a problem hiding this comment.
Same remark : why an ignore list ?
c19476b to
f14d814
Compare
68e1610 to
7d4f316
Compare
ac57ca1 to
762f6e6
Compare
b248d79 to
c7c80e2
Compare
There was a problem hiding this comment.
I think this test can be more robust by checking that this token should be equal to "firstToken" ( and same for "lastToken" )
37e2526 to
b363089
Compare
68bd01f to
ead763e
Compare
ead763e to
97b632e
Compare
…re exception handling (#357) GitOrigin-RevId: 6feb846c827dcf179a3bf627cb8f8063d122625b
No description provided.