Lines Matching refs:symbol
360 void TSDeclGen::GenExport(const ir::Identifier *symbol)
362 const auto symbolName = symbol->Name().Mutf8();
365 if (!symbol->Parent()->IsTSTypeAliasDeclaration() && !symbol->Parent()->IsTSInterfaceDeclaration()) {
371 void TSDeclGen::GenExport(const ir::Identifier *symbol, const std::string &alias)
373 const auto symbolName = symbol->Name().Mutf8();
376 if (!symbol->Parent()->IsTSTypeAliasDeclaration() && !symbol->Parent()->IsTSInterfaceDeclaration()) {
382 void TSDeclGen::GenDefaultExport(const ir::Identifier *symbol)
384 const auto symbolName = symbol->Name().Mutf8();
387 if (!symbol->Parent()->IsTSTypeAliasDeclaration() && !symbol->Parent()->IsTSInterfaceDeclaration()) {
393 void TSDeclGen::ExportIfNeeded(const ir::Identifier *symbol)
395 if (symbol->Parent()->IsExported()) {
396 GenExport(symbol);
398 if (symbol->Parent()->IsExportedType()) {
399 GenExport(symbol);
401 if (symbol->Parent()->IsDefaultExported()) {
402 GenDefaultExport(symbol);
654 const auto symbol = GetKeyIdent(globalVar->Key());
655 const auto varName = symbol->Name().Mutf8();
667 GenExport(symbol);