microsoft / powerquery-parser

A parser for the Power Query / M formula language, written in TypeScript
MIT License
112 stars 26 forks source link

LetExpression should allow empty variable list #376

Closed JordanBoltonMN closed 1 year ago

JordanBoltonMN commented 1 year ago

Variable lists are optional for LetExpressions, meaning let in 1 is valid code. I thought this was covered, but it's incorrectly checking nextToken rather than currentToken