themartdev / intellij-gleam

Gleam support for Intellij IDEA
Apache License 2.0
4 stars 1 forks source link

Merge function and externalFunction into same PSI #13

Closed themartdev closed 1 month ago

themartdev commented 1 month ago

There are 2 different top-level PSI elements for functions:

The first one is used whenever a function has an implementation (or a functionBody). It can also have decorators like @external. The second one is used when a function has no body AND at least one @external decorator.

Merging the two will make stubbing and error recovery easier for the parser