Skip to content

Comments

update pyjsparser.__version__ to 2.5.2#20

Open
qwIvan wants to merge 7 commits intoPiotrDabkowski:masterfrom
qwIvan:patch-1
Open

update pyjsparser.__version__ to 2.5.2#20
qwIvan wants to merge 7 commits intoPiotrDabkowski:masterfrom
qwIvan:patch-1

Conversation

@qwIvan
Copy link

@qwIvan qwIvan commented Jan 11, 2018

No description provided.

xmo-odoo and others added 7 commits July 14, 2017 14:59
Follows the Recast comment-attachment structure[0], though only
implements a small subset in a straightforwardly hacky manner, and
does not come close to implementing the entire comment-attachment
structure or algorithm:

* comments preceding (some) nodes are extracted and set on the
  `comments` key of the host node
* does not extract the location
* only does leading comments (I don't think it'll mis-attach trailing
  comments but that's not impossible)
* may not work for all node types
* the comments key may be missing entirely
* uses esprima's type (Block/Line) rather than Babel's

[0] dev's reasoning about some comments being ambiguous in Esprima's
    structure/extension makes sense to me:
    jquery/esprima#1024 (comment)
    benjamn/recast#159 (comment)
Add basic comments support to the AST
@qwIvan
Copy link
Author

qwIvan commented Jan 17, 2018

@PiotrDabkowski
The version number is wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants