phpDocumentor / phpDocumentor/ReflectionDocBlock
Location information for tags
まだ誰も着手していません。
- 主要言語
- PHP
- スター
- 9.4k
- フォーク
- 137
- 平均マージ
- 4日 2時間
- マージ済み PR(30日)
- 1
説明
I am using this package in the open PHP language server, which provides static analysis for any IDE through the open language server protocol. One of these features is "Go to Definition". This is currently implemented for the actual PHP code through nikic's great PHPParser, where every node has a file start/end offset so I can calculate which node the user clicked. It would be nice to have this feature for types in docblock tags like @var too, but the tags don't have any start/end offset data. Would it be possible to add this?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue にはファイルやテストの名前がありません。まず、@var とその他の docblock タグがどのようにパースされるかを特定し、それらのメタデータを PHPParser ノードと比較します。タグの開始オフセットと終了オフセットをどのように公開するべきかを定義し、そのうえで、既存のパースを壊すことなく型タグが利用可能な位置情報を提供することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100