Package-level declarations

Functions

Link copied to clipboard
external fun escapeLeadingUnderscores(identifier: String): __String

Add an extra underscore to identifiers that start with two underscores to avoid issues with magic names like 'proto'

Link copied to clipboard
Link copied to clipboard
external fun getNameOfDeclaration(declaration: Declaration?): DeclarationName?
external fun getNameOfDeclaration(declaration: Expression?): DeclarationName?
Link copied to clipboard
external fun isExternalModule(file: SourceFile): Boolean
Link copied to clipboard
external fun unescapeLeadingUnderscores(identifier: __String): String

Remove extra underscore from escaped identifier text content.