Microsoft/TypeScript — pull request #1473 by JsonFreeman (2014-12-13 02:42:04+00:00)
Title: Switch parsePrimaryExpression to if-else style

Due to a JavaScript engine issue, the switch statement in parsePrimaryExpression is not executing correctly. I've switched it to an if-else to get around this issue.