2 implementations of 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 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)
121if (member is IFieldSymbol field && fieldStateMap.TryRemove(field.OriginalDefinition, out var value)) 190Debug.Assert(fieldStateMap.ContainsKey(field.OriginalDefinition)); 192fieldStateMap[field.OriginalDefinition] = (isCandidate: true, written: true); 203if (fieldStateMap.TryGetValue(fieldSymbol.OriginalDefinition, out var result)) 209return 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)
121if (member is IFieldSymbol field && fieldStateMap.TryRemove(field.OriginalDefinition, out var value)) 190Debug.Assert(fieldStateMap.ContainsKey(field.OriginalDefinition)); 192fieldStateMap[field.OriginalDefinition] = (isCandidate: true, written: true); 203if (fieldStateMap.TryGetValue(fieldSymbol.OriginalDefinition, out var result)) 209return 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;