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