2 overrides of OriginalDefinition
Microsoft.CodeAnalysis.CSharp (2)
Symbols\ReducedExtensionMethodSymbol.cs (1)
376public override MethodSymbol OriginalDefinition
Symbols\SubstitutedMethodSymbol.cs (1)
141public sealed override MethodSymbol OriginalDefinition
83 references to OriginalDefinition
Microsoft.CodeAnalysis.CSharp (83)
Binder\Binder_Conversions.cs (4)
889diagnostics.Add(ErrorCode.ERR_ParamsCollectionInfiniteChainOfConstructorCalls, syntax, inProgress, inProgressConstructor.OriginalDefinition); 1886methodWithTargetTypeParameters = method.OriginalDefinition.Construct(allTypeParameters); 2313var isSynthesized = delegateType.DelegateInvokeMethod?.OriginalDefinition is SynthesizedDelegateInvokeMethod; 3017var sourceMethod = selectedMethod.OriginalDefinition as SourceOrdinaryMethodSymbol;
Binder\Binder_Expressions.cs (2)
10134return method.OriginalDefinition is var original && 10199property.GetOwnOrInheritedGetMethod()?.OriginalDefinition is MethodSymbol getMethod &&
Binder\Binder_Operators.cs (1)
1161SourceUserDefinedOperatorSymbol.IsSelfConstrainedTypeParameter((definition = signature.Method.OriginalDefinition).ReturnType.StrippedType(), definition.ContainingType));
Binder\ForEachLoopBinder.cs (1)
1707return moveNextMethodCandidate.OriginalDefinition.ReturnType.SpecialType != SpecialType.System_Boolean;
Binder\Semantics\Conversions\Conversions.cs (1)
60if (methodSymbol.OriginalDefinition is SynthesizedDelegateInvokeMethod invoke)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
1320var p = op1.Method.OriginalDefinition.GetParameters(); 1337var p = op2.Method.OriginalDefinition.GetParameters();
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
796if (method.Arity == 0 || method.OriginalDefinition == (object)method)
BoundTree\Constructors.cs (1)
226hasErrors: method.OriginalDefinition is ErrorMethodSymbol
CodeGen\EmitExpression.cs (4)
2193var originalMethod = method.OriginalDefinition; 2467expression.Constructor.OriginalDefinition == (object)this._module.Compilation.GetWellKnownTypeMember(WellKnownMember.System_ReadOnlySpan_T__ctor_Array)) || 2469expression.Constructor.OriginalDefinition == (object)this._module.Compilation.GetWellKnownTypeMember(WellKnownMember.System_ReadOnlySpan_T__ctor_Array_Start_Length))) && 2480var originalDef = constructor.OriginalDefinition;
Compiler\MethodBodySynthesizer.Lowered.cs (3)
243F.CurrentFunction = (MethodSymbol)this.OriginalDefinition; 281F.CurrentFunction = (MethodSymbol)this.OriginalDefinition; 320F.CurrentFunction = this.OriginalDefinition;
Emitter\Model\GenericMethodInstanceReference.cs (1)
45UnderlyingMethod.OriginalDefinition,
Emitter\Model\MethodSymbolAdapter.cs (4)
78var synthesizedGlobalMethod = AdaptedMethodSymbol.OriginalDefinition as SynthesizedGlobalMethodSymbol; 272(MethodSymbol)AdaptedMethodSymbol.OriginalDefinition, 288return ((MethodSymbol)AdaptedMethodSymbol.OriginalDefinition).GetCciAdapter(); 298if (AdaptedMethodSymbol.OriginalDefinition is SynthesizedGlobalMethodSymbol synthesizedGlobalMethod)
Emitter\Model\PEModuleBuilder.cs (1)
1264Debug.Assert(!(methodSymbol.OriginalDefinition is NativeIntegerMethodSymbol));
Emitter\Model\SpecializedMethodReference.cs (1)
35return UnderlyingMethod.OriginalDefinition.GetCciAdapter();
FlowAnalysis\AbstractFlowPass.cs (4)
1385if (node.Method?.OriginalDefinition is LocalFunctionSymbol localFunc) 1518Debug.Assert(method?.OriginalDefinition.MethodKind != MethodKind.LocalFunction); 1617if (node.MethodOpt?.OriginalDefinition is LocalFunctionSymbol localFunc) 1746else if (node.SymbolOpt?.OriginalDefinition is LocalFunctionSymbol localFunc)
FlowAnalysis\NullableWalker.cs (7)
6478|| method.OriginalDefinition.Equals(compilation.GetWellKnownTypeMember(WellKnownMember.System_Threading_Interlocked__CompareExchange_T), SymbolEqualityComparer.ConsiderEverything.CompareKind); 6556else if (method.OriginalDefinition == compilation.GetSpecialTypeMember(SpecialMember.System_Nullable_T_get_Value)) 6917if (node is BoundCall { Method: { OriginalDefinition: LocalFunctionSymbol localFunction } }) 8846if (method?.OriginalDefinition is LocalFunctionSymbol localFunc) 9594if (node.MethodOpt?.OriginalDefinition is LocalFunctionSymbol localFunc) 10170if (deconstructMethod.OriginalDefinition != deconstructMethod) 11443? getResult.OriginalDefinition.AsMember(taskAwaiterType)
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (4)
448_methodsConvertedToDelegates.Add(node.Symbol.OriginalDefinition); 456=> VisitNestedFunction(node.Symbol.OriginalDefinition, node.Body); 463AddIfCaptured(node.Method.OriginalDefinition, node.Syntax); 474var method = node.MethodOpt.OriginalDefinition;
Lowering\ClosureConversion\ClosureConversion.cs (2)
859Analysis.GetNestedFunctionInTree(_analysis.ScopeTree, node.Method.OriginalDefinition).SynthesizedLoweredMethod : node.Method; 878var function = Analysis.GetNestedFunctionInTree(_analysis.ScopeTree, localFunc.OriginalDefinition);
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
223if (method?.OriginalDefinition is LocalFunctionSymbol localFunction)
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (1)
162var methodDefinition = method.OriginalDefinition;
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
110module.EmbeddedTypesManagerOpt.EmbedMethodIfNeedTo(m.OriginalDefinition.GetCciAdapter(), syntaxNode, _diagnostics.DiagnosticBag);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
128return addMethod.Equals(collectionInitializer.AddMethod.OriginalDefinition);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
939method = method.OriginalDefinition;
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
247(object)objectCreationConstructor.OriginalDefinition == _compilation.GetSpecialTypeMember(SpecialMember.System_ReadOnlySpan_T__ctor_Reference) &&
Lowering\MethodToClassRewriter.cs (1)
647return ((MethodSymbol)method.OriginalDefinition)
Lowering\SpillSequenceSpiller.cs (8)
439if (call.Method.OriginalDefinition is SynthesizedInlineArrayFirstElementRefMethod or SynthesizedInlineArrayFirstElementRefReadOnlyMethod) 444else if (call.Method.OriginalDefinition is SynthesizedInlineArrayElementRefMethod or SynthesizedInlineArrayElementRefReadOnlyMethod) 448else if (call.Method.OriginalDefinition == _F.Compilation.GetWellKnownTypeMember(WellKnownMember.System_Span_T__get_Item) || 449call.Method.OriginalDefinition == _F.Compilation.GetWellKnownTypeMember(WellKnownMember.System_ReadOnlySpan_T__get_Item)) 458else if (call.Method.OriginalDefinition is SynthesizedInlineArrayAsSpanMethod or SynthesizedInlineArrayAsReadOnlySpanMethod) 462else if (call.Method.OriginalDefinition == _F.Compilation.GetWellKnownTypeMember(WellKnownMember.System_Span_T__Slice_Int_Int) || 463call.Method.OriginalDefinition == _F.Compilation.GetWellKnownTypeMember(WellKnownMember.System_ReadOnlySpan_T__Slice_Int_Int)) 484objectCreationExpression.Constructor.OriginalDefinition == _F.Compilation.GetSpecialTypeMember(SpecialMember.System_ReadOnlySpan_T__ctor_Reference))
Lowering\SynthesizedMethodBaseSymbol.cs (1)
205get { return this.TypeMap.SubstituteType(this.BaseMethod.OriginalDefinition.ReturnTypeWithAnnotations); }
Lowering\SyntheticBoundNodeFactory.cs (1)
855type: method.ReturnType, hasErrors: method.OriginalDefinition is ErrorMethodSymbol)
Operations\CSharpOperationFactory.cs (2)
711if (boundObjectCreationExpression.ResultKind == LookupResultKind.OverloadResolutionFailure || constructor.OriginalDefinition is ErrorMethodSymbol) 887if (accessor == null || boundObjectInitializerMember.ResultKind == LookupResultKind.OverloadResolutionFailure || accessor.OriginalDefinition is ErrorMethodSymbol)
Operations\CSharpOperationFactory_Methods.cs (1)
122resultKind == LookupResultKind.OverloadResolutionFailure || targetMethod?.OriginalDefinition is ErrorMethodSymbol;
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
503symbol.GetSymbol()?.OriginalDefinition is SourceUserDefinedOperatorSymbolBase sourceUserDefinedOperatorSymbolBase)
Symbols\ConstraintsHelper.cs (2)
865((MethodSymbol)method.OriginalDefinition).TypeParameters, 1584if (ReferenceEquals(method.OriginalDefinition, method))
Symbols\ConstructedMethodSymbol.cs (2)
20map: new TypeMap(constructedFrom.ContainingType, ((MethodSymbol)constructedFrom.OriginalDefinition).TypeParameters, typeArgumentsWithAnnotations), 21originalDefinition: (MethodSymbol)constructedFrom.OriginalDefinition,
Symbols\MethodSymbol.cs (3)
57return this.OriginalDefinition; 498return (MethodSymbol)OverriddenOrHiddenMembersResult.GetOverriddenMember(this, OriginalDefinition.OverriddenMethod); 948return this.OriginalDefinition.GetUseSiteInfo();
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
971csharpOverriddenMethod.IsDefinition || csharpOverriddenMethod.OriginalDefinition.MethodHasRuntimeCollision();
Symbols\PublicModel\MethodSymbol.cs (1)
161return _underlying.OriginalDefinition.GetPublicSymbol();
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
877Debug.Assert(ReferenceEquals(method, method.OriginalDefinition)); 886if (ReferenceEquals(method.ContainingModule, this.UnderlyingModule) && ReferenceEquals(method, method.OriginalDefinition)) 903var retargetedDefinition = Retarget(method.OriginalDefinition, retargetedMethodComparer);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1822MethodSymbol implementingMethodOriginalDefinition = implementingMethod.OriginalDefinition;
Symbols\SubstitutedMethodSymbol.cs (2)
430if ((object)this.OriginalDefinition != (object)other.OriginalDefinition && 431this.OriginalDefinition != other.OriginalDefinition)
Symbols\Synthesized\Records\SynthesizedRecordObjectMethod.cs (1)
41var overridden = overriding.OverriddenMethod?.OriginalDefinition;
Symbols\TypeMap.cs (2)
148return WithAlphaRename(oldOwner.OriginalDefinition.TypeParameters, newOwner, out newTypeParameters); 176var currentParameters = oldOwner.OriginalDefinition.TypeParameters;