Syntax checker incorrectly flags set()

Issue #242 resolved
Jeff Hube created an issue
private void foo() {

private void set(Integer i) { }

In the above snippet, there will be a red squiggly on the open parenthesis of set(1) with the following message:

< expected, got '('

<, <name identifier> or '[' expected, got '('

Comments (3)

  1. Scott Wells repo owner

    Thanks, Jeff. One of the most fun things about reverse engineering grammars for Apex/SOQL/SOSL is that the line between reserved words and valid identifier names is very blurry, especially across the three languages. I have a pretty standard approach to resolving these types of issues, though, so I'll make sure this gets addressed in one of the near-term releases.

  2. Log in to comment