the-simian / es6-plato

JavaScript source code visualization, static analysis, and complexity tool
MIT License
205 stars 40 forks source link

ES6 object shorthand function support #79

Open rookiePrgrmer opened 5 years ago

rookiePrgrmer commented 5 years ago

We found that es6-plato can't recognize es6 object shorthand function, for example:

const obj = {
    // recognized
    foo: function() {}
};
const obj = {
    // not recognize
    foo() {}
}

Is that true, or we used es6-plato in wrong way?

the-simian commented 5 years ago

@rookiePrgrmer I'll be updating the underlying parser that might fix this soon. I'll let you know when.