Skip to content

Fix syntax highlighting of property-style access of method (no backing field) #716

@eric-milles

Description

@eric-milles

Consider the following:

class C {
  Object getFoo() {}
  boolean isBar() {}
  void setBaz(val) {}
  void method() {
    foo
    bar
    baz
  }
}
class C {
  static Object getFoo() {}
  static boolean isBar() {}
  static void setBaz(val) {}
  static void main(args) {
    foo
    bar
    baz
  }
}

foo and baz are highlighting as fields in both cases. They should highlight as methods -- like bar does -- since there are no fields to back the property-style accesses.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions