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