def _astnode_struct_names(self): """ Turn the set of ASTNode subclass names into a mapping from ASTNode record names, as GDB will see them, to user-friendly ASTNode names. """ return { '{}__implementation__bare_{}_type'.format( self.lib_name, name.lower() ): Name.from_camel_with_underscores(name) for name in self.astnode_names }
def _entity_struct_names(self): """ Turn the set of AST node names into a set of encoded type names for the corresponding entity records. """ return { '{}__analysis__implementation__entity_{}'.format( self.lib_name, Name.from_camel_with_underscores(name).lower ) for name in self.astnode_names } | {'{}__analysis__implementation__ast_envs__entity' .format(self.lib_name)}