1 override of TupleElementNames
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Tuples\TupleTypeSymbol.cs (1)
549public sealed override ImmutableArray<string?> TupleElementNames
30 references to TupleElementNames
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Expressions.cs (1)
1413|| (type.IsTupleType && !type.TupleElementNames.IsDefault))
Binder\Binder_TupleOperators.cs (1)
387return (placeholders, tupleType.TupleElementNames);
Symbols\Compilation_WellKnownMembers.cs (2)
878if (type.TupleElementNames.IsDefaultOrEmpty) 890namesBuilder.AddRange(type.TupleElementNames);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1973predicate: (t, a, b) => !t.TupleElementNames.IsDefaultOrEmpty && !t.IsErrorType(),
Symbols\Tuples\TupleTypeSymbol.cs (1)
287ImmutableArray<string> destinationNames = destination.TupleElementNames;
Symbols\TypeSymbolExtensions.cs (1)
1275type.VisitType((TypeSymbol t, object? _1, bool _2) => !t.TupleElementNames.IsDefault, null) is object;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (18)
CodeGen\CodeGenDeconstructTests.cs (1)
1678Assert.True(x.Type.GetSymbol().TupleElementNames.IsDefault);
CodeGen\CodeGenTupleTest.cs (17)
499Assert.Equal(new[] { "key", "val" }, typeArg.TupleElementNames); 513Assert.Equal(new[] { "x", "y" }, typeArg.TupleElementNames); 525Assert.Equal(new[] { "key", "val" }, typeArg.TupleElementNames); 537Assert.Equal(new[] { "key", "val" }, typeArg.TupleElementNames); 700Assert.False(typeArg.TupleElementNames.IsDefault); 701Assert.Equal(2, typeArg.TupleElementNames.Length); 702Assert.Equal(new[] { "key", "val" }, typeArg.TupleElementNames); 716Assert.False(typeArg.TupleElementNames.IsDefault); 717Assert.Equal(2, typeArg.TupleElementNames.Length); 718Assert.Equal(new[] { "key", "val" }, typeArg.TupleElementNames); 840Assert.True(validField.Type.TupleElementNames.IsDefault); 933Assert.True(validField.Type.TupleElementNames.IsDefault); 999Assert.True(field1.Type.TupleElementNames.IsDefault); 1008Assert.True(first.TupleElementNames.IsDefault); 1012Assert.True(second.TupleElementNames.IsDefault); 1621Assert.Equal(new[] { null, "a" }, xSymbol.TupleElementNames); 17440Assert.True(x1Symbol.Type.GetSymbol().TupleElementNames.IsDefault);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\AttributeTests_Tuples.cs (4)
490Assert.True(firstTuple.TupleElementNames.IsDefault); 494Assert.True(secondTuple.TupleElementNames.IsDefault); 942Assert.Equal(tupleNames, typeArg.TupleElementNames); 1042Assert.Equal(tupleNames, typeArg.TupleElementNames);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\DeconstructionTests.cs (1)
4727Assert.True(aaType.TupleElementNames.IsDefault);