internal static DefFormatStrings From(ISymbol symbol, SymbolExtensions.KeyData key, string typeString) { var name = new QualFormatStrings { Unqualified = symbol.ToDisplayString(Unqualified), ScopeQualified = symbol.ToDisplayString(ScopeQualified), DepQualified = symbol.ToDisplayString(DepQualified), RepositoryWideQualified = symbol.ToDisplayString(RepositoryWideQualified), LanguageWideQualified = symbol.ToDisplayString(LanguageWideQualified) }; var type = QualFormatStrings.Single(typeString); return(new DefFormatStrings { Name = name, Type = type, NameAndTypeSeparator = " ", Language = "C#", DefKeyword = "", Kind = typeString }); }
internal static DefFormatStrings From(ISymbol symbol, SymbolExtensions.KeyData key, string typeString) { var name = new QualFormatStrings { Unqualified = symbol.ToDisplayString(Unqualified), ScopeQualified = symbol.ToDisplayString(ScopeQualified), DepQualified = symbol.ToDisplayString(DepQualified), RepositoryWideQualified = symbol.ToDisplayString(RepositoryWideQualified), LanguageWideQualified = symbol.ToDisplayString(LanguageWideQualified) }; var type = QualFormatStrings.Single(typeString); return new DefFormatStrings { Name = name, Type = type, NameAndTypeSeparator = " ", Language = "C#", DefKeyword = "", Kind = typeString }; }