Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO #1

Open
31 of 37 tasks
othree opened this issue May 12, 2018 · 2 comments
Open
31 of 37 tasks

TODO #1

othree opened this issue May 12, 2018 · 2 comments

Comments

@othree
Copy link
Owner

othree commented May 12, 2018

  • Variable declaration
  • Import
  • Export
  • Class field
  • if/else
  • for in
  • for of
  • Expression
  • for
  • try/catch
  • switch
  • switch discriminant
  • new
  • throw
  • exps
  • class mehods
  • Default function parameter
  • Array
  • Object
  • comma in array, object
  • Computed property
  • arrow function
  • function
  • Generator
  • async
  • call expression
  • Method definition
  • await
  • Template string
  • label
  • yield, return
  • Before/after function parameter parens
  • Paren
  • Padding before }, ], )
  • Object shorthand
  • Empty paren
  • with
@othree
Copy link
Owner Author

othree commented Jun 14, 2018

arrow function
    [async] [params] => body

    => :: token before body
    params :: 
        if params.length
            if wrap by paren
                   token before params[0]
               else 
                   params[0]
        else
           token before `)` before `(` body
    async :: token before params

    test before params [async] [params]
    test before body   [params] => body


function
    [async] function [*] [id] [params] body
const a = () => {};
const b = arg => {};
const c = async (a, b) => {};
const d = async arg => {};

@othree
Copy link
Owner Author

othree commented Jun 28, 2018

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

No branches or pull requests

1 participant