2 implementations of CorrespondingTupleField
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\FieldSymbol.cs (1)
66IFieldSymbol IFieldSymbol.CorrespondingTupleField
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\FieldSymbol.vb (1)
506Private ReadOnly Property IFieldSymbol_CorrespondingTupleField As IFieldSymbol Implements IFieldSymbol.CorrespondingTupleField
15 references to CorrespondingTupleField
Microsoft.CodeAnalysis (2)
Symbols\ISymbolExtensions.cs (2)
69return (object)field == field.CorrespondingTupleField; 77return field.CorrespondingTupleField is object;
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (2)
52if (field.CorrespondingTupleField?.Equals(field) == true) 86if (unnamedField.Equals(fieldSymbol.CorrespondingTupleField) &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
194else if (symbol is IFieldSymbol { CorrespondingTupleField: IFieldSymbol { Locations: [{ IsInSource: true } location] } })
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenTupleTest.cs (4)
3648Assert.False(item.CorrespondingTupleField.IsExplicitlyNamedTupleElement); 3695Assert.False(yType.TupleElements[0].CorrespondingTupleField.IsExplicitlyNamedTupleElement); 3699Assert.Same(yType.TupleElements[1], yType.TupleElements[1].CorrespondingTupleField); 3703Assert.False(yType.TupleElements[2].CorrespondingTupleField.IsExplicitlyNamedTupleElement);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
194else if (symbol is IFieldSymbol { CorrespondingTupleField: IFieldSymbol { Locations: [{ IsInSource: true } location] } })
Microsoft.CodeAnalysis.Features (4)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
152if (fields.All(f => f.CorrespondingTupleField != f))
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (1)
73if (element.Equals(element.CorrespondingTupleField))
src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (2)
52if (field.CorrespondingTupleField?.Equals(field) == true) 86if (unnamedField.Equals(fieldSymbol.CorrespondingTupleField) &&
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\FieldSymbol.vb (1)
506Private ReadOnly Property IFieldSymbol_CorrespondingTupleField As IFieldSymbol Implements IFieldSymbol.CorrespondingTupleField