Simple function support (#13645).

Functions must consist of exactly one return statement.

Change-Id: I5f3b6bcd7088d6673a493b7b474d86c623eb647e