There are 2 different top-level PSI elements for functions:
GleamFunctionDeclaration
GleamExternalFunctionNoFallbackDeclaration
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
There are 2 different top-level PSI elements for functions:
GleamFunctionDeclaration
GleamExternalFunctionNoFallbackDeclaration
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