Comments (2)
I don't think it should start from 7
. I'd prefer it to start from 12
where the parameter list starts (with (
). An assumption we can make is that under any node, all child nodes do not overlap. It will break this assumption if the function covers the property name.
from esprima.
ESLint makes the same assumption @ikarienator described regarding non-overlapping child nodes. My change in #1036 would make the range start at the opening paren for get
, set
, and shorthand property methods so that the key is adjacent to but does not overlap the FunctionExpression
node. If that's acceptable, I can amend #1036 to include this issue as well.
from esprima.
Related Issues (20)
- npm ERR! 404 Not Found - GET https://codeload.github.com/ariya/esprima/legacy.tar.gz/master HOT 1
- Merge fixes from Contrast-Security-Inc's Fork
- npm audit report 29 vulnerabilities HOT 1
- esprima-next -> fork for development and npm package HOT 1
- High Surrogate Unicode value is wrong. HOT 1
- Replace JSF CLA with OpenJS CLA HOT 1
- Unused packages detected in the esprima project on Tag: 4.0.1 HOT 1
- [feature] esprima cannot parse bigint HOT 1
- JSX Identify the problem HOT 3
- Fails to parse access to import.meta HOT 1
- Esprima fails to parse classes that have public fields HOT 2
- Static property fails to parse HOT 1
- Feature request: Optional chaining operator HOT 9
- syntax error by rest parameter of spread syntax HOT 4
- AST_CALL is not applied on dictionary argument in a function
- Invalid UpdateExpression's arguments
- Parsing `-999999984306749440;` turns into `999999984306749400` HOT 1
- Broken link in file `docs/syntax-tree-format.md`
- Unexpected Syntax Error
- Is this project abandoned? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esprima.