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