Change type.declaration support.
Add partial support for lexical parent.
Finish support for lexical parent.
Change the condition of type.declaration.