UserNobody14 / tree-sitter-dart

Attempt to make a tree-sitter grammar for dart
MIT License
59 stars 36 forks source link

`set`-related false positive rejection. #58

Open modulovalue opened 11 months ago

modulovalue commented 11 months ago
void main() {
  final set = 0;
  set;
}

The grammar appears to reject this program, but a single identifier named "set" is a valid expression.

TimWhiting commented 11 months ago

Yeah, set / get has always been tricky. I really don't have the time to look into this, but feel free to make a PR, I'm pretty good at getting to those.