graphql-python / graphql-python/graphql-core-legacy
Lex comments
- 主要言語
- Python
- スター
- 372
- フォーク
- 175
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Right now graphql-core in the lex pass completely omits comments. If you want to consume the content of comments in tooling, you are out of the luck.
Python graphql shoudl mimic graphql-js and do this. Lee Byron did this here https://github.com/graphql/graphql-js/commit/165b9d3a0b913d792501b0ce2829ad417d83122d by making the stream of lex tokens a doubly-linked list so you can "peek" backwards and inspect the contents of comments.
I'll submit a pull request at some point to do this but if someone feels like doing it go nuts!
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず graphql-core の lex pass を読み、トークンストリームをリンク先の graphql-js のコミットと比較します。この issue では、ツールがコメントを調査できるように、二重リンクされたトークンリストを通じてコメントを公開することを説明しています。完了とは、コメントの内容が省略されずに consumer から利用できることを意味します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- backend-api-design
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100