Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Handle object destructuring assignments in getFullName

  • Loading branch information...
commit a60bd085acf0943fa1616eb247a24b6589f4139c 1 parent dcece8f
@grncdr authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/helpers.coffee
View
3  src/helpers.coffee
@@ -25,6 +25,9 @@ exports.getFullName = (variable) ->
name = variable.base.value
if variable.properties.length > 0
name += '.' + (p.name.value for p in variable.properties).join('.')
+ if not name
+ names = variable.base.properties.map((p) -> p.base.value)
+ return "{#{names.join(', ')}}"
return name
exports.getAttr = (node, path) ->
Please sign in to comment.
Something went wrong with that request. Please try again.