53 references to OriginalDefinition
Microsoft.CodeAnalysis.CSharp (53)
Binder\Binder_Expressions.cs (1)
1759
!(binder is InContainerBinder { Container: var container } && container.
OriginalDefinition
== (object)containingTypeDefinition))
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
1386
return moreDerivedOverride.GetLeastOverriddenMember(accessingTypeOpt: null).
OriginalDefinition
==
1387
member.GetLeastOverriddenMember(accessingTypeOpt: null).
OriginalDefinition
;
2456
var m1DefinitionParameters = m1.LeastOverriddenMember.
OriginalDefinition
.GetParameters();
2457
var m2DefinitionParameters = m2.LeastOverriddenMember.
OriginalDefinition
.GetParameters();
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (4)
1415
worseResult1.LeastOverriddenMember.
OriginalDefinition
,
1416
worseResult2.LeastOverriddenMember.
OriginalDefinition
,
1468
validResult1.LeastOverriddenMember.
OriginalDefinition
,
1469
validResult2.LeastOverriddenMember.
OriginalDefinition
,
Compilation\CSharpSemanticModel.cs (3)
1979
if (subpatternSymbol?.
OriginalDefinition
is ErrorTypeSymbol originalErrorType)
1994
var originalErrorSymbol = s.
OriginalDefinition
as ErrorTypeSymbol;
3408
var originalErrorType = typeSymbol.
OriginalDefinition
as ErrorTypeSymbol;
Compiler\DocumentationCommentCompiler.cs (1)
1103
return symbol.
OriginalDefinition
.GetDocumentationCommentId();
Emitter\Model\SymbolAdapter.cs (1)
81
return this.IsDefinition || !this.Equals(this.
OriginalDefinition
, SymbolEqualityComparer.ConsiderEverything.CompareKind);
Emitter\NoPia\EmbeddedTypesManager.cs (3)
332
if (optTypeManager == null || optTypeManager._reportedSymbolsMap.TryAdd(symbol.
OriginalDefinition
, true))
334
Error(diagnostics, error, syntaxNodeOpt, symbol.
OriginalDefinition
);
609
if (member.AdaptedSymbol.
OriginalDefinition
is SynthesizedGlobalMethodSymbol)
FlowAnalysis\DefiniteAssignment.cs (2)
774
_sourceAssembly.NoteFieldAccess((FieldSymbol)variable.
OriginalDefinition
,
856
var field = (FieldSymbol)variable.
OriginalDefinition
;
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (1)
58
Hash.Combine(Symbol.
OriginalDefinition
, currentKey);
FlowAnalysis\NullableWalker.cs (4)
3658
return AreCloseEnough(original.
OriginalDefinition
, updated.
OriginalDefinition
);
8311
var symbolDef = symbol.
OriginalDefinition
;
10868
var getMethod = ((PropertySymbol)member.
OriginalDefinition
).GetMethod;
Symbols\ConstraintsHelper.cs (1)
1042
Debug.Assert(ReferenceEquals(typeParameter.ContainingSymbol, containingSymbol.
OriginalDefinition
));
Symbols\ErrorTypeSymbol.cs (1)
474
Debug.Assert(ReferenceEquals(newOwner.OriginalDefinition, this.ContainingSymbol?.
OriginalDefinition
));
Symbols\EventSymbol.cs (1)
263
Debug.Assert(ReferenceEquals(newOwner.OriginalDefinition, this.ContainingSymbol.
OriginalDefinition
));
Symbols\FieldSymbol.cs (1)
330
Debug.Assert(ReferenceEquals(newOwner.OriginalDefinition, this.ContainingSymbol.
OriginalDefinition
));
Symbols\MethodSymbol.cs (1)
890
Debug.Assert(ReferenceEquals(newOwner.OriginalDefinition, this.ContainingSymbol.
OriginalDefinition
));
Symbols\NamedTypeSymbol.cs (1)
1350
Debug.Assert(ReferenceEquals(newOwner.OriginalDefinition, this.ContainingSymbol.
OriginalDefinition
));
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
1073
return AccessCheck.IsSymbolAccessible(overridden.
OriginalDefinition
, overridingContainingType.OriginalDefinition, ref discardedUseSiteInfo);
Symbols\OverriddenOrHiddenMembersResult.cs (1)
73
return overriddenByDefinitionMember.
OriginalDefinition
.SymbolAsMember(baseType);
Symbols\PropertySymbol.cs (1)
382
Debug.Assert(ReferenceEquals(newOwner.OriginalDefinition, this.ContainingSymbol.
OriginalDefinition
));
Symbols\PublicModel\Symbol.cs (1)
59
return UnderlyingSymbol.
OriginalDefinition
.GetPublicSymbol();
Symbols\Source\ExplicitInterfaceHelpers.cs (2)
134
if (candidateMember.
OriginalDefinition
== unsubstitutedPropertyImplemented.
OriginalDefinition
)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
838
overriddenMembers[0].
OriginalDefinition
, overriddenMembers[1].
OriginalDefinition
, overridingType);
Symbols\Source\SourceNamespaceSymbol.cs (1)
345
Debug.Assert((object)nts?.OriginalDefinition == nts && (object)other.
OriginalDefinition
== other);
Symbols\SubstitutedTypeParameterSymbol.cs (2)
56
ContainingSymbol.
OriginalDefinition
!= _underlyingTypeParameter.ContainingSymbol.
OriginalDefinition
? this :
Symbols\Symbol.cs (2)
196
return
OriginalDefinition
.DeclaringCompilation;
386
return (object)this == (object)
OriginalDefinition
;
Symbols\Tuples\TupleTypeSymbol.cs (2)
1066
map.Add(member.
OriginalDefinition
, member);
1107
Symbol underlyingMemberDefinition = underlyingMemberOpt.
OriginalDefinition
;
Symbols\TypeMap.cs (3)
122
bool synthesized = !ReferenceEquals(oldTypeParameters[0].ContainingSymbol.
OriginalDefinition
, newOwner.
OriginalDefinition
);
183
oldOwner = oldOwner.ContainingSymbol.
OriginalDefinition
as MethodSymbol;
Symbols\TypeSymbol.cs (5)
1384
interfaceMember = interfaceMember.
OriginalDefinition
.SymbolAsMember(interfaceType);
1477
if ((object)implementingMember != null && implementingMember.
OriginalDefinition
.ContainingModule is not PEModuleSymbol && implementingMember.IsExplicitInterfaceImplementation())
2356
return x.
OriginalDefinition
== y.
OriginalDefinition
&&
2362
return obj.
OriginalDefinition
.GetHashCode();