Skip to content
Commit ef81c54e authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Add line numbers to auto-detected configs.

The simplest way to implement this was to use the loc:true option of
EsprimaJS which includes line and column number data to each AST node.
Unfortunately the data is rather large, especially when you compare it
to the compact "range" data:

    {
        "type": "SomeNode",
        "loc": {
            "start": {"line": 2, "column": 5},
            "end": {"line": 8, "column": 12}
        },
	"range": [28, 16]
    }

Sadly, having this enabled drags down performance quite drastically.
Parsing full src/ dir of Sencha Touch before and after this change:

before: 4.5 seconds
after:  7.9 seconds
parent d2daf1de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment