Similar rules for a statement and declarations/statements determine scope behavior.
Function declarations are added to the context.