7 overrides of MetadataName
Microsoft.CodeAnalysis.CSharp (7)
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
467public override string MetadataName
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
428public override string MetadataName
Symbols\NamedTypeSymbol.cs (1)
505public override string MetadataName
Symbols\Source\SourceComplexParameterSymbol.cs (1)
424public override string MetadataName
Symbols\Source\SourcePropertySymbolBase.cs (1)
517public override string MetadataName
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
119public sealed override string MetadataName
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
176public override string MetadataName
129 references to MetadataName
Microsoft.CodeAnalysis.CSharp (45)
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (1)
278string metadataName = symbol.MetadataName;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (6)
563Debug.Assert(!string.IsNullOrEmpty(sourceMember.MetadataName)); 566if (otherMembersByName.TryGetValue(sourceMember.MetadataName, out var otherMembers)) 662Debug.Assert(StringOrdinalComparer.Equals(@namespace.MetadataName, other.MetadataName)); 729Debug.Assert(StringOrdinalComparer.Equals(property.MetadataName, other.MetadataName));
Emitter\Model\EventSymbolAdapter.cs (1)
157return AdaptedEventSymbol.MetadataName;
Emitter\Model\FieldSymbolAdapter.cs (1)
132return AdaptedFieldSymbol.MetadataName;
Emitter\Model\MethodSymbolAdapter.cs (1)
137get { return AdaptedMethodSymbol.MetadataName; }
Emitter\Model\ModuleReference.cs (1)
41return _underlyingModule.MetadataName;
Emitter\Model\NamespaceSymbolAdapter.cs (1)
21string Cci.INamedEntity.Name => AdaptedNamespaceSymbol.MetadataName;
Emitter\Model\ParameterSymbolAdapter.cs (1)
206get { return AdaptedParameterSymbol.MetadataName; }
Emitter\Model\PEAssemblyBuilder.cs (1)
82_metadataName = (emitOptions.OutputNameOverride == null) ? sourceAssembly.MetadataName : FileNameUtilities.ChangeExtension(emitOptions.OutputNameOverride, extension: null);
Emitter\Model\PEModuleBuilder.cs (1)
91var specifiedName = sourceModule.MetadataName;
Emitter\Model\PropertySymbolAdapter.cs (1)
287return AdaptedPropertySymbol.MetadataName;
Emitter\Model\TypeMemberReference.cs (1)
28return UnderlyingSymbol.MetadataName;
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
206get { return AdaptedTypeParameterSymbol.MetadataName; }
Emitter\NoPia\EmbeddedEvent.cs (3)
61return UnderlyingEvent.AdaptedEventSymbol.MetadataName; 119EmbeddedTypesManager.Error(diagnostics, ErrorCode.ERR_MissingMethodOnSourceInterface, syntaxNodeOpt, sourceInterface, UnderlyingEvent.AdaptedEventSymbol.MetadataName, UnderlyingEvent.AdaptedEventSymbol); 131foreach (Symbol m in sourceInterface.GetMembers(UnderlyingEvent.AdaptedEventSymbol.MetadataName))
Emitter\NoPia\EmbeddedField.cs (1)
131return UnderlyingField.AdaptedFieldSymbol.MetadataName;
Emitter\NoPia\EmbeddedMethod.cs (1)
180get { return UnderlyingMethod.AdaptedMethodSymbol.MetadataName; }
Emitter\NoPia\EmbeddedParameter.cs (1)
99get { return UnderlyingParameter.AdaptedParameterSymbol.MetadataName; }
Emitter\NoPia\EmbeddedProperty.cs (1)
68return UnderlyingProperty.AdaptedPropertySymbol.MetadataName;
Emitter\NoPia\EmbeddedTypeParameter.cs (1)
66get { return UnderlyingTypeParameter.AdaptedTypeParameterSymbol.MetadataName; }
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
310BoundExpression eventInfo = _factory.New(ctor, _factory.Typeof(node.Event.ContainingType, ctor.Parameters[0].Type), _factory.Literal(node.Event.MetadataName));
Lowering\LocalRewriter\LocalRewriter_Range.cs (3)
182Debug.Assert(constructionMethod.MetadataName == "StartAt" || 183constructionMethod.MetadataName == "EndAt"); 192Debug.Assert(constructionMethod.MetadataName == "get_All");
Symbols\MemberSymbolExtensions.cs (1)
936return member.IsIndexer() ? member.MetadataName :
Symbols\PublicModel\Symbol.cs (1)
201string ISymbol.MetadataName => UnderlyingSymbol.MetadataName;
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
184int gapSize = isInterface ? Microsoft.CodeAnalysis.ModuleExtensions.GetVTableGapSize(method.MetadataName) : 0;
Symbols\Source\SourceComplexParameterSymbol.cs (3)
433return base.MetadataName; 439return base.MetadataName; 442return definition.Parameters[this.Ordinal].MetadataName;
Symbols\Source\SourceMemberContainerSymbol.cs (3)
2316string indexerName = indexer.MetadataName; 2341string indexerName = indexer.MetadataName; 4364string propertyName = propertySymbol.IsIndexer ? propertySymbol.MetadataName : propertySymbol.Name;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1662ModuleExtensions.GetVTableGapSize(this.MetadataName) > 0;
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1737string defaultMemberName = this.Indexers.First().MetadataName; // UNDONE: IndexerNameAttribute
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
700: GetAccessorName(explicitlyImplementedPropertyOpt.MetadataName,
Symbols\Symbol.cs (1)
229string ISymbolInternal.MetadataName => this.MetadataName;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
121get { return _underlyingParameter.MetadataName; }
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
180return _underlyingProperty.MetadataName;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
BreakingChanges.cs (1)
167Assert.Equal("MonthInfoIndexer", indexer.MetadataName);
CodeGen\CodeGenDynamicTests.cs (1)
691switch (member.MetadataName)
CodeGen\CodeGenExplicitImplementationTests.cs (1)
1004AssertEx.All(classCMembers.Select(m => m.MetadataName), metadataName => metadataName == WellKnownMemberNames.InstanceConstructorName || metadataName.StartsWith("Q::I.", StringComparison.Ordinal));
CodeGen\CodeGenTupleTest.cs (2)
25336Assert.Equal(libWithVTRef.Display, tuple2.ContainingAssembly.MetadataName.ToString()); 25342Assert.Equal(libWithVTRef.Display, tuple3.ContainingAssembly.MetadataName.ToString());
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\SymbolMatcherTests.cs (1)
964Assert.Equal("I<System.Int32,System.Boolean>.Item", ((PropertySymbol)mappedProperty.GetInternalSymbol()).MetadataName);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Attributes\AttributeTests.cs (1)
8646Assert.Equal("ItemX", indexer.MetadataName); //First one wins.
PartialEventsAndConstructorsTests.cs (1)
1718Assert.Equal(expectedMetadataName, accessor.MetadataName);
Semantics\PrimaryConstructorTests.cs (3)
19715Assert.Equal("p1", comp.GetTypeByMetadataName("C1").Indexers.Single().MetadataName); 19745Assert.Equal("p1", comp.GetTypeByMetadataName("C1").Indexers.Single().MetadataName); 19766Assert.Equal("p1", comp.GetTypeByMetadataName("C1").Indexers.Single().MetadataName);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\NullableContextTests.cs (1)
2255key is Symbol symbol ? symbol.MetadataName : ((SyntaxNode)key).ToString();
Semantics\NullableReferenceTypesTests.cs (10)
100705Assert.Equal("I<System.Object>.F1", af1.MetadataName); 100736Assert.Equal("I<System.Object>.F1", bf1.MetadataName); 100800Assert.Equal("I<A>.F1", af1.MetadataName); 100829Assert.Equal("I<A>.F1", bf1.MetadataName); 100889Assert.Equal("I<System.Object>.F1", af1.MetadataName); 100915Assert.Equal("I<System.Object>.F1", bf1.MetadataName); 101075Assert.Equal("I<System.Object>.F1", af1.MetadataName); 101101Assert.Equal("I<System.Object>.F1", bf1.MetadataName); 101158Assert.Equal("I<System.Object,B>.F1", af1.MetadataName); 101183Assert.Equal("I<System.Object,B>.F1", bf1.MetadataName);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (61)
Symbols\AnonymousTypesSemanticsTests.cs (1)
1069Assert.Equal(metadataName, type.MetadataName);
Symbols\IndexerTests.cs (40)
332Assert.NotEqual(interface1Indexer.MetadataName, interface2Indexer.MetadataName); 333Assert.NotEqual(interface1Indexer.MetadataName, classIndexer.MetadataName); 334Assert.NotEqual(interface2Indexer.MetadataName, classIndexer.MetadataName); 414Assert.NotEqual(interface1Indexer.MetadataName, interface2Indexer.MetadataName); 415Assert.NotEqual(interface1Indexer.MetadataName, classIndexer.MetadataName); 416Assert.NotEqual(interface2Indexer.MetadataName, classIndexer.MetadataName); 623Assert.NotEqual(baseIndexer.MetadataName, derivedIndexer.MetadataName); 680Assert.NotEqual(baseIndexer.MetadataName, derivedIndexer.MetadataName); 749Assert.NotEqual(baseIndexers[0].MetadataName, baseIndexers[1].MetadataName); 750Assert.NotEqual(baseIndexers[0].MetadataName, derivedIndexer.MetadataName); 751Assert.NotEqual(baseIndexers[1].MetadataName, derivedIndexer.MetadataName); 820Assert.NotEqual(baseIndexers[0].MetadataName, baseIndexers[1].MetadataName); 821Assert.NotEqual(baseIndexers[0].MetadataName, derivedIndexer.MetadataName); 822Assert.NotEqual(baseIndexers[1].MetadataName, derivedIndexer.MetadataName); 1438Assert.Equal("A", indexer.MetadataName); 1440Assert.Equal("get_A", indexer.GetMethod.MetadataName); 1442Assert.Equal("set_A", indexer.SetMethod.MetadataName); 1462Assert.Equal("@indexer", indexer.MetadataName); 1463Assert.Equal("get_@indexer", indexer.GetMethod.MetadataName); 1464Assert.Equal("set_@indexer", indexer.SetMethod.MetadataName); 1516Assert.True(derivedType.Indexers.All(i => i.MetadataName == "A")); 1576Assert.Equal("X", get_XB.AssociatedSymbol.MetadataName); 1577Assert.Equal("X", get_XC.AssociatedSymbol.MetadataName); 1600Assert.Equal("X", classA.Indexers.Single().MetadataName); 2131Assert.Equal("A", indexer.MetadataName); 2841Assert.Equal("Item", idxSymbol.MetadataName);
Symbols\Metadata\PE\LoadingNamespacesAndTypes.cs (3)
375Assert.Equal("With Spaces", assembly.MetadataName); 392Assert.Equal("With Spaces", assembly.MetadataName); 410Assert.Equal("With Spaces.netmodule", module.MetadataName);
Symbols\PartialPropertiesTests.cs (1)
797Assert.Equal(accessor.MetadataName, importData.EntryPointName); // e.g. 'get_P'
Symbols\Source\FileModifierTests.cs (15)
746AssertEx.Equal("<MyFile>F5E7157F91336401EED4848664C7CEB8A5E156C0D713F4211A61BDB8932B19EF2__C`1", c.MetadataName); 779AssertEx.Equal(expectedMetadataName, c.MetadataName); 810AssertEx.Equal("<MyGeneratedFile_g>F18307E6C553D2E6465CEA162655C06E2BB2896889519559EB1EE5FA53513F0E8__C", c.MetadataName); 892AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", classC.MetadataName); 939AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", member.MetadataName); 974AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C`1", classC.MetadataName); 1004AssertEx.Equal("<file>F620949CDCC480533E3607E5DD92F88E866EC1D65C225D70509A32F831433D9A4__C", classC.MetadataName); 1093Assert.Matches(expectedRegexPattern: @"<My_File>F[\w\d]{64}__C", sourceFileTypeSymbol.MetadataName); 1099Assert.Equal(sourceFileTypeSymbol.MetadataName, expectedSymbol.MetadataName); 1130Assert.Equal("<_>F<no checksum>__C", classC.MetadataName); 1154AssertEx.Equal("<My_File>FA818559F9E8E4AF40425A1819866C71357DE9017B4B7EFE1D34D9F48C0539B6E__C", c.MetadataName); 1214AssertEx.Equal(firstMetadataName, expectedSymbol.MetadataName); 1222AssertEx.Equal(secondMetadataName, expectedSymbol.MetadataName); 4238AssertEx.Equal("<file1>F96B1D9CB33A43D51528FE81EDAFE5AE31358FE749929AC76B76C64B60DEF129D__C", sourceMember.MetadataName); 4253Assert.Equal("<file1>F96B1D9CB33A43D51528FE81EDAFE5AE31358FE749929AC76B76C64B60DEF129D__C", metadataMember.MetadataName);
Symbols\SymbolErrorTests.cs (1)
4926Assert.Equal("IA.Item", indexer.MetadataName);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
SymbolUtilities.cs (1)
63T member = type.GetMembers(WellKnownMemberNames.Indexer).Where(i => i.MetadataName == name).Single() as T;