Location information for tags

オープン
#87 コメント 7 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
tooling

調査の方向性

issue にはファイルやテストの名前がありません。まず、@var とその他の docblock タグがどのようにパースされるかを特定し、それらのメタデータを PHPParser ノードと比較します。タグの開始オフセットと終了オフセットをどのように公開するべきかを定義し、そのうえで、既存のパースを壊すことなく型タグが利用可能な位置情報を提供することを確認します。

索引モデルが issue の本文から書いたものです。

説明

help wanted in discussion

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?

主要言語
PHP
スター
9.4k
フォーク
137
平均マージ
4日 2時間
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

phpDocumentor/ReflectionDocBlock のほかの issue

phpDocumentor/ReflectionDocBlock の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。