google-code-export / esprima

Automatically exported from code.google.com/p/esprima
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

[ES6] Method Definition #620

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Support method definition.

Original issue reported on code.google.com by ariya.hi...@gmail.com on 12 Jan 2015 at 3:39

GoogleCodeExporter commented 9 years ago
Per Rev 30 (Dec 24 2014) of the draft spec, the relevant grammar is:

Section 14.3

    MethodDefinition[Yield] :
        PropertyName[?Yield] ( StrictFormalParameters ) { FunctionBody }

    GeneratorMethod[?Yield]

    get PropertyName[?Yield] ( ) { FunctionBody }

    set PropertyName[?Yield] ( PropertySetParameterList ) { FunctionBody }

    PropertySetParameterList :
        FormalParameter

Original comment by ariya.hi...@gmail.com on 12 Jan 2015 at 3:41

GoogleCodeExporter commented 9 years ago
See also 
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-method-definitions.

Original comment by ariya.hi...@gmail.com on 12 Jan 2015 at 3:41

GoogleCodeExporter commented 9 years ago
ES6 method definition.
https://github.com/ariya/esprima/commit/a86646d3b0

ES6 method definition: update baseline syntax for the parsing corpus.
https://github.com/ariya/esprima/commit/1fb64605f2

Original comment by ariya.hi...@gmail.com on 13 Jan 2015 at 4:16