8 implementations of MetadataName
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
104public override string MetadataName
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
210public virtual string MetadataName
Microsoft.CodeAnalysis.CSharp (2)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
104string ISymbol.MetadataName => _name;
Symbols\PublicModel\Symbol.cs (1)
201string ISymbol.MetadataName => UnderlyingSymbol.MetadataName;
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
67public string MetadataName => _symbol.MetadataName;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
59Public Overridable ReadOnly Property MetadataName As String Implements ISymbol.MetadataName, ISymbolInternal.MetadataName
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
104public override string MetadataName
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
210public virtual string MetadataName
134 references to MetadataName
ILLink.RoslynAnalyzer (4)
ISymbolExtensions.cs (1)
142 sb.Append (fieldSymbol.MetadataName);
ITypeSymbolExtensions.cs (2)
60 return symbol.ContainingNamespace?.GetDisplayName () == @namespace && symbol.MetadataName == name; 75 _ => WellKnownTypeExtensions.GetWellKnownType (symbol.ContainingNamespace?.GetDisplayName () ?? "", symbol.MetadataName)
TrimAnalysis\TypeProxy.cs (1)
30 public string Name { get => Type.MetadataName; }
Microsoft.CodeAnalysis.CodeStyle (27)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
273if (method is { MetadataName: "GetInstance", IsStatic: true, Parameters: [{ Type.SpecialType: SpecialType.System_String }] } &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
796MetadataName: nameof(ObsoleteAttribute),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (2)
233if (b.MetadataName == "Attribute" && 249return symbol?.MetadataName is nameof(FormattableString) or nameof(IFormattable)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (9)
31/// equal <see cref="ISymbol.MetadataName"/>.</item> 34/// equal <see cref="ISymbol.MetadataName"/>, 41/// <see cref="ISymbol.MetadataName"/> is not used because module identity is not important in practice.</item> 44/// equal <see cref="ISymbol.MetadataName"/>, 49/// equal <see cref="ISymbol.MetadataName"/>. 55/// equal <see cref="ISymbol.MetadataName"/>.</item> 60/// the "same" <see cref="ISymbol.MetadataName"/>, and have 65/// the "same" <see cref="ISymbol.MetadataName"/>.</item> 68/// the "same" <see cref="ISymbol.MetadataName"/>.</item>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.EventSymbolKey.cs (1)
15visitor.WriteString(symbol.MetadataName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FieldSymbolKey.cs (1)
15visitor.WriteString(symbol.MetadataName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (1)
132visitor.WriteString(symbol.MetadataName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
27visitor.WriteString(symbol.MetadataName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (2)
18visitor.WriteString(symbol.MetadataName); 87if (SymbolKey.Equals(reader.Compilation, parameter.MetadataName, metadataName))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PropertySymbolKey.cs (1)
17visitor.WriteString(symbol.MetadataName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
748if (module.MetadataName == moduleName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
270WriteString(location.MetadataModule.MetadataName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (2)
25visitor.WriteString(symbol.MetadataName); 65if (typeParam.MetadataName == metadataName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
600x.MetadataName == y.MetadataName &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
111currentHash = Hash.Combine(x.MetadataName, currentHash);
Microsoft.CodeAnalysis.CSharp (8)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (8)
336tryGetUserDefinedOperatorTokenKind(symbol.MetadataName) == SyntaxKind.None) 497var operatorName = symbol.MetadataName; 525Builder.Add(CreatePart(SymbolDisplayPartKind.MethodName, symbol, symbol.MetadataName)); 529SyntaxKind operatorKind = tryGetUserDefinedOperatorTokenKind(symbol.MetadataName); 537addUserDefinedOperatorName(symbol, operatorKind, symbol.MetadataName); 546Builder.Add(CreatePart(SymbolDisplayPartKind.MethodName, symbol, symbol.MetadataName)); 550SyntaxKind conversionKind = tryGetUserDefinedConversionTokenKind(symbol.MetadataName); 558addUserDefinedConversionName(symbol, conversionKind, symbol.MetadataName);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConversionGenerator.cs (2)
59var keyword = method.MetadataName == WellKnownMemberNames.ImplicitConversionName 63var checkedToken = SyntaxFacts.IsCheckedOperator(method.MetadataName)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (2)
81var operatorSyntaxKind = SyntaxFacts.GetOperatorKind(method.MetadataName); 88var checkedToken = SyntaxFacts.IsCheckedOperator(method.MetadataName)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
SymbolKey\SymbolKeyCompilationsTests.cs (2)
229var indexer1 = type.GetMembers().Where(m => m.MetadataName == "I.Item").Single() as IPropertySymbol; 230var indexer2 = type.GetMembers().Where(m => m.MetadataName == "I<T>.Item").Single() as IPropertySymbol;
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.CompletionSymbolDisplay.cs (2)
63builder.Append(SyntaxFacts.GetText(SyntaxFacts.GetOperatorKind(symbol.MetadataName))); 80if (SyntaxFacts.IsCheckedOperator(symbol.MetadataName))
DecompiledSource\CSharpDecompiledSourceService.cs (2)
117containingTypeStack.Push(symbol.MetadataName); 119containingNamespaceStack.Push(symbol.MetadataName);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IVariableDeclaration.cs (1)
944Assert.Equal("M2", invocInfo.Symbol.MetadataName);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (2)
7655Assert.Equal(symbol1.Name, symbol1.MetadataName); 8429Assert.Equal(symbol1.Name, symbol1.MetadataName);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
480Assert.Equal("Item", symbol.MetadataName); 549Assert.Equal("Item", symbol.MetadataName);
Symbols\AnonymousTypesSemanticsTests.cs (1)
1076Assert.Equal(metadataName, type.MetadataName);
Symbols\IndexerTests.cs (1)
2848Assert.Equal("Item", idxSymbol2.Symbol.MetadataName);
Symbols\Source\FileModifierTests.cs (2)
4245Assert.Equal("C", sourceTypeCByMetadataName.MetadataName); 4260Assert.Equal("C", metadataTypeCByMetadataName.MetadataName);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConversionGenerator.cs (2)
59var keyword = method.MetadataName == WellKnownMemberNames.ImplicitConversionName 63var checkedToken = SyntaxFacts.IsCheckedOperator(method.MetadataName)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (2)
81var operatorSyntaxKind = SyntaxFacts.GetOperatorKind(method.MetadataName); 88var checkedToken = SyntaxFacts.IsCheckedOperator(method.MetadataName)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
213.Where(member => member.MetadataName == memberSymbolName)
Microsoft.CodeAnalysis.Features (9)
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (1)
527return namedType.MetadataName;
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
283MetadataName: WellKnownMemberNames.AdditionOperatorName or WellKnownMemberNames.ConcatenateOperatorName,
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
67public string MetadataName => _symbol.MetadataName;
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
76if (typeForwards?.TryGetValue((namespaceName, typeSymbol.MetadataName), out var assemblyName) != true)
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (3)
139_logger?.Log(FeaturesResources.Could_not_find_implementation_of_symbol_0, symbolToFind.MetadataName); 150_logger?.Log(FeaturesResources.Could_not_find_implementation_of_symbol_0, symbolToFind.MetadataName); 164_logger?.Log(FeaturesResources.Could_not_find_implementation_of_symbol_0, symbolToFind.MetadataName);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
273if (method is { MetadataName: "GetInstance", IsStatic: true, Parameters: [{ Type.SpecialType: SpecialType.System_String }] } &&
UnusedReferences\UnusedReferencesRemover.cs (1)
56.Select(reference => reference.Compilation.SourceModule.MetadataName)
Microsoft.CodeAnalysis.Scripting (3)
ScriptBuilder.cs (3)
191string entryPointTypeName = MetadataHelpers.BuildQualifiedName(entryPoint.ContainingNamespace.MetadataName, entryPoint.ContainingType.MetadataName); 192string entryPointMethodName = entryPoint.MetadataName;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
59Public Overridable ReadOnly Property MetadataName As String Implements ISymbol.MetadataName, ISymbolInternal.MetadataName
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ConversionGenerator.vb (1)
46If(method.MetadataName = WellKnownMemberNames.ImplicitConversionName,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\OperatorGenerator.vb (1)
40Dim operatorSyntaxKind = SyntaxFacts.GetOperatorKind(method.MetadataName)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
CodeCleanup\Providers\FixIncorrectTokensCodeCleanupProvider.vb (1)
117If symbol IsNot Nothing AndAlso symbol.IsNamespace AndAlso String.Equals(DirectCast(symbol, INamespaceSymbol).MetadataName, "System", StringComparison.Ordinal) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ConversionGenerator.vb (1)
46If(method.MetadataName = WellKnownMemberNames.ImplicitConversionName,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\OperatorGenerator.vb (1)
40Dim operatorSyntaxKind = SyntaxFacts.GetOperatorKind(method.MetadataName)
Utilities\IntrinsicOperators\PredefinedCastExpressionDocumentation.vb (1)
62Return _resultingType.ContainingNamespace.Name + "." + _resultingType.MetadataName
Microsoft.CodeAnalysis.Workspaces (36)
FindSymbols\SymbolFinder_Helpers.cs (2)
174? candidate.MetadataName 175: $"{candidate.ContainingNamespace.ToDisplayString(SymbolDisplayFormats.SignatureFormat)}.{candidate.MetadataName}";
Rename\ConflictEngine\ConflictResolver.cs (6)
244string.Equals(s.MetadataName, renamedSymbol.MetadataName, StringComparison.Ordinal)); 270string.Equals(s.MetadataName, renamedSymbol.MetadataName, StringComparison.Ordinal)); 279string.Equals(s.MetadataName, renamedSymbol.MetadataName, StringComparison.Ordinal));
Rename\RenameUtilities.cs (2)
201if (string.Equals(member.MetadataName, symbol.MetadataName, StringComparison.Ordinal) && member is IMethodSymbol && !member.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
796MetadataName: nameof(ObsoleteAttribute),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (2)
233if (b.MetadataName == "Attribute" && 249return symbol?.MetadataName is nameof(FormattableString) or nameof(IFormattable)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (9)
31/// equal <see cref="ISymbol.MetadataName"/>.</item> 34/// equal <see cref="ISymbol.MetadataName"/>, 41/// <see cref="ISymbol.MetadataName"/> is not used because module identity is not important in practice.</item> 44/// equal <see cref="ISymbol.MetadataName"/>, 49/// equal <see cref="ISymbol.MetadataName"/>. 55/// equal <see cref="ISymbol.MetadataName"/>.</item> 60/// the "same" <see cref="ISymbol.MetadataName"/>, and have 65/// the "same" <see cref="ISymbol.MetadataName"/>.</item> 68/// the "same" <see cref="ISymbol.MetadataName"/>.</item>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.EventSymbolKey.cs (1)
15visitor.WriteString(symbol.MetadataName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FieldSymbolKey.cs (1)
15visitor.WriteString(symbol.MetadataName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (1)
132visitor.WriteString(symbol.MetadataName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
27visitor.WriteString(symbol.MetadataName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (2)
18visitor.WriteString(symbol.MetadataName); 87if (SymbolKey.Equals(reader.Compilation, parameter.MetadataName, metadataName))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PropertySymbolKey.cs (1)
17visitor.WriteString(symbol.MetadataName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
748if (module.MetadataName == moduleName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
270WriteString(location.MetadataModule.MetadataName);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (2)
25visitor.WriteString(symbol.MetadataName); 65if (typeParam.MetadataName == metadataName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
600x.MetadataName == y.MetadataName &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
111currentHash = Hash.Combine(x.MetadataName, currentHash);
Microsoft.CodeAnalysis.Workspaces.UnitTests (11)
SymbolKeyTests.cs (11)
151Assert.True(symbols.Any(s => s is IFieldSymbol { MetadataName: "" })); 167Assert.True(symbols.Any(s => s is IFieldSymbol { MetadataName: "" })); 183Assert.True(symbols.Any(s => s is IFieldSymbol { MetadataName: "" })); 198Assert.False(symbols.Any(s => s is IFieldSymbol { MetadataName: "" })); 213Assert.True(symbols.Any(s => s is IFieldSymbol { MetadataName: "" })); 228Assert.False(symbols.Any(s => s is IFieldSymbol { MetadataName: "" })); 243Assert.True(symbols.Any(s => s is IFieldSymbol { MetadataName: "" })); 258Assert.False(symbols.Any(s => s is IFieldSymbol { MetadataName: "" })); 273Assert.True(symbols.Any(s => s is IFieldSymbol { MetadataName: "" })); 289Assert.True(symbols.Any(s => s is IEventSymbol { MetadataName: "" })); 305Assert.True(symbols.Any(s => s is IEventSymbol { MetadataName: "" }));
Microsoft.Interop.SourceGeneration (1)
TypeSymbolExtensions.cs (1)
340if (current.MetadataName != typeNameParts[i])
Microsoft.ML.CodeAnalyzer.Tests (1)
Code\RelaxTestNamingTest.cs (1)
127if (method.ReturnType.MetadataName != "Task")
Microsoft.VisualStudio.LanguageServices (3)
Progression\GraphBuilder.cs (1)
406node.Label = symbol.MetadataName;
Progression\GraphNodeIdCreation.cs (2)
299GraphNodeId.GetPartial(CodeQualifiedName.Name, member.MetadataName) 353partials.Add(GraphNodeId.GetPartial(CodeGraphNodeIdName.Member, member.MetadataName));