demo/typescript.js
function getExportDefaultTempVariableName() {
            var baseName = "_default";
            if (!ts.hasProperty(currentSourceFile.identifiers, baseName)) {
                return baseName;
            }
            var count = 0;
            while (true) {
                var name_18 = baseName + "_" + (++count);
                if (!ts.hasProperty(currentSourceFile.identifiers, name_18)) {
                    return name_18;
                }
            }
        }
function getExportDefaultTempVariableName() {
            var baseName = "_default";
            if (!ts.hasProperty(currentSourceFile.identifiers, baseName)) {
                return baseName;
            }
            var count = 0;
            while (true) {
                var name_18 = baseName + "_" + (++count);
                if (!ts.hasProperty(currentSourceFile.identifiers, name_18)) {
                    return name_18;
                }
            }
        }
Return a temp variable name to be used in `export default` statements. The temp name will be of the form _default_counter. Note that export default is only allowed at most once in a module, so we do not need to keep track of created temp names.