Skip to content
This repository was archived by the owner on Dec 4, 2018. It is now read-only.
This repository was archived by the owner on Dec 4, 2018. It is now read-only.

Support node ranges and locations #89

Closed
Ramyromel/eslint-plugin-react
#3
@mrennie

Description

@mrennie

it would be very helpful if doctrine could support node ranges and locations. I imagine this would be the same infos that the Esprima parser provides, for example:

@param {Foo} one first param

parsed with options {loc:true, ranges:true} would yield something like:

{
    "description": "",
    "tags": [
        {
            "title": "param",
            "description": "first param",
            "type": {
                "type": "NameExpression",
                "name": "Foo"
            },
            "name": "one",
            "loc": {
                "start": { 
                     "line":1, 
                     "column": 0
                 }
                 "end": { 
                     "line": 1, 
                     "column": 30
                 }
            }
           "range": [0, 30]
        }
    ]
}

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions