2 implementations of OriginalDefinition
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\FieldSymbol.cs (1)
58
IFieldSymbol IFieldSymbol.
OriginalDefinition
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\FieldSymbol.vb (1)
500
Private 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)
121
if (member is IFieldSymbol field && fieldStateMap.TryRemove(field.
OriginalDefinition
, out var value))
190
Debug.Assert(fieldStateMap.ContainsKey(field.
OriginalDefinition
));
192
fieldStateMap[field.
OriginalDefinition
] = (isCandidate: true, written: true);
203
if (fieldStateMap.TryGetValue(fieldSymbol.
OriginalDefinition
, out var result))
209
return fieldStateMap.GetOrAdd(fieldSymbol.
OriginalDefinition
, result);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
172
var fieldReference = fieldReferenceOperation.Field.
OriginalDefinition
;
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
172
var fieldReference = fieldReferenceOperation.Field.
OriginalDefinition
;
Microsoft.CodeAnalysis.Features (5)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (5)
121
if (member is IFieldSymbol field && fieldStateMap.TryRemove(field.
OriginalDefinition
, out var value))
190
Debug.Assert(fieldStateMap.ContainsKey(field.
OriginalDefinition
));
192
fieldStateMap[field.
OriginalDefinition
] = (isCandidate: true, written: true);
203
if (fieldStateMap.TryGetValue(fieldSymbol.
OriginalDefinition
, out var result))
209
return fieldStateMap.GetOrAdd(fieldSymbol.
OriginalDefinition
, result);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\FieldSymbol.vb (1)
500
Private ReadOnly Property IFieldSymbol_OriginalDefinition As IFieldSymbol Implements IFieldSymbol.
OriginalDefinition
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
290
field = field.
OriginalDefinition
;