Add definition parent class to AST hierarchy.
Remove unused imports and assert.
Extracted qualified name parsing.
Replace strings with nodes in AST.