Only allow method call on functions and variables.