2 implementations of IFieldSymbol_OriginalDefinition
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\FieldSymbol.cs (1)
58IFieldSymbol IFieldSymbol.OriginalDefinition
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\FieldSymbol.vb (1)
500Private ReadOnly Property IFieldSymbol_OriginalDefinition As IFieldSymbol Implements IFieldSymbol.OriginalDefinition
15 references to IFieldSymbol_OriginalDefinition
ILLink.RoslynAnalyzer (1)
TrimAnalysis\FlowAnnotations.cs (1)
112 if (!field.OriginalDefinition.Type.IsTypeInterestingForDataflow (isByRef: field.RefKind is not RefKind.None))
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (5)
117if (member is IFieldSymbol field && fieldStateMap.TryRemove(field.OriginalDefinition, out var value)) 201Debug.Assert(fieldStateMap.ContainsKey(field.OriginalDefinition)); 203fieldStateMap[field.OriginalDefinition] = (isCandidate: true, written: true); 212if (fieldStateMap.TryGetValue(fieldSymbol.OriginalDefinition, out var result)) 216return fieldStateMap.GetOrAdd(fieldSymbol.OriginalDefinition, result);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
172var fieldReference = fieldReferenceOperation.Field.OriginalDefinition;
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
172var fieldReference = fieldReferenceOperation.Field.OriginalDefinition;
Microsoft.CodeAnalysis.Features (5)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (5)
117if (member is IFieldSymbol field && fieldStateMap.TryRemove(field.OriginalDefinition, out var value)) 201Debug.Assert(fieldStateMap.ContainsKey(field.OriginalDefinition)); 203fieldStateMap[field.OriginalDefinition] = (isCandidate: true, written: true); 212if (fieldStateMap.TryGetValue(fieldSymbol.OriginalDefinition, out var result)) 216return fieldStateMap.GetOrAdd(fieldSymbol.OriginalDefinition, result);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\FieldSymbol.vb (1)
500Private ReadOnly Property IFieldSymbol_OriginalDefinition As IFieldSymbol Implements IFieldSymbol.OriginalDefinition
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
290field = field.OriginalDefinition;