3 overrides of OriginalDefinition
Microsoft.CodeAnalysis.CSharp (3)
Symbols\SubstitutedFieldSymbol.cs (1)
54public override FieldSymbol OriginalDefinition
Symbols\Tuples\TupleErrorFieldSymbol.cs (1)
107public override FieldSymbol OriginalDefinition
Symbols\Tuples\TupleFieldSymbol.cs (1)
104public override FieldSymbol OriginalDefinition
27 references to OriginalDefinition
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Expressions.cs (1)
8604if ((object)Compilation.SourceModule != fieldSymbol.OriginalDefinition.ContainingModule &&
Emitter\Model\FieldSymbolAdapter.cs (1)
294return AdaptedFieldSymbol.OriginalDefinition.GetCciAdapter();
Emitter\Model\SpecializedFieldReference.cs (2)
48Debug.Assert(_underlyingField.OriginalDefinition.IsDefinition); 49return _underlyingField.OriginalDefinition.GetCciAdapter();
FlowAnalysis\DefiniteAssignment.cs (3)
968var field = fieldAccess.FieldSymbol.OriginalDefinition; 998var field = associatedField.OriginalDefinition; 1638_sourceAssembly.NoteFieldAccess(field.OriginalDefinition,
FlowAnalysis\NullableWalker.cs (1)
815case FieldSymbol { OriginalDefinition: SynthesizedPrimaryConstructorParameterBackingFieldSymbol }:
Lowering\MethodToClassRewriter.cs (3)
547var rewrittenField = ((FieldSymbol)node.Field.OriginalDefinition) 556var fieldSymbol = ((FieldSymbol)node.FieldSymbol.OriginalDefinition) 691return ((FieldSymbol)field.OriginalDefinition)
Symbols\FieldSymbol.cs (3)
51return this.OriginalDefinition; 348return this.OriginalDefinition.GetUseSiteInfo(); 481return this.OriginalDefinition.TupleElementIndex;
Symbols\PublicModel\FieldSymbol.cs (1)
62return _underlying.OriginalDefinition.GetPublicSymbol();
Symbols\SubstitutedFieldSymbol.cs (2)
22: base((FieldSymbol)substitutedFrom.OriginalDefinition) 119return (object)other != null && TypeSymbol.Equals(_containingType, other.ContainingType, compareKind) && OriginalDefinition == other.OriginalDefinition;
Symbols\Tuples\TupleFieldSymbol.cs (4)
113return originalContainer.GetTupleMemberSymbolForUnderlyingMember(_underlyingField.OriginalDefinition)!; 214return new TupleElementFieldSymbol(newOwner, _underlyingField.OriginalDefinition.AsMember(newUnderlyingOwner), TupleElementIndex, Locations, IsImplicitlyDeclared); 340newCorrespondingDefaultFieldOpt = _correspondingDefaultField.OriginalDefinition.AsMember(newOwner); 343return new TupleVirtualElementFieldSymbol(newOwner, _underlyingField.OriginalDefinition.AsMember(newUnderlyingOwner), _name, TupleElementIndex, Locations, _cannotUse, IsImplicitlyDeclared, newCorrespondingDefaultFieldOpt);
Symbols\Tuples\TupleTypeSymbol.cs (6)
605var underlyingField = field is TupleElementFieldSymbol tupleElement ? tupleElement.UnderlyingField.OriginalDefinition : field.OriginalDefinition; 830fields.Add(tupleField.UnderlyingField.OriginalDefinition); 834fields.Add(field.OriginalDefinition); 1073map[tupleUnderlyingField.OriginalDefinition] = member; 1085map.Add(underlyingAssociatedField.OriginalDefinition, underlyingAssociatedField);