Skip to content

Commit

Permalink
Change comment wording in parser around skipping async functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffijoe committed May 21, 2018
1 parent 27b6a6d commit 6b95512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/param-parser.ts
Expand Up @@ -56,7 +56,8 @@ export function parseParameterList(source: string): Array<Parameter> {
const param = { name: t.value!, optional: false }
if (t.value === 'async') {
// Given it's the very first token, we can assume it's an async function,
// so skip the async keyword.
// so skip the async keyword if the next token is not an equals sign, in which
// case it is a single-arg arrow func.
const next = nextToken()
if (next && next.type !== '=') {
break
Expand Down

0 comments on commit 6b95512

Please sign in to comment.