def _index_classes(self) -> Dict[Text, Type[Platform]]:
out = {}<EOL>for p in get_platform_settings():<EOL><INDENT>cls: Type[Platform] = import_class(p['<STR_LIT:class>'])<EOL>if '<STR_LIT:name>' in p:<EOL><INDENT>out[p['<STR_LIT:name>']] = cls<EOL><DEDENT>else:<EOL><INDENT>out[cls.NAME] = cls<EOL><DEDENT><DEDENT>return out<EOL>
Build a name index for all platform classes