Implemented NameResolutionInterface on ClassNode.