phpDocumentor / phpDocumentor/ReflectionDocBlock
Location information for tags
还没有人认领这个 Issue。
- 主要语言
- PHP
- 星标
- 9.4k
- 派生
- 137
- 平均合并
- 4 天 2 小时
- 30 天内合并 PR
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
Issue 中没有提到任何文件或测试。首先定位 @var 和其他 docblock 标签的解析方式,并将它们的元数据与 PHPParser 节点进行比较。定义应如何公开标签的起始和结束偏移量,然后验证类型标签能够提供可用的位置信息,同时不破坏现有的解析。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- php
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100