function property Null safety

Expression function

The function being referenced.

In error-free code, this will be either a SimpleIdentifier (indicating a function that is in scope), a PrefixedIdentifier (indicating a either function imported via prefix or a static method in a class), or a PropertyAccess (indicating a static method in a class imported via prefix). In code with errors, this could be other kinds of expressions (e.g. (...)<int> parses as a FunctionReference whose referent is a ParenthesizedExpression.


Expression get function;