20 overrides of IsExtensionMethod
Microsoft.CodeAnalysis.CSharp (20)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
80
public override bool
IsExtensionMethod
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
89
public sealed override bool
IsExtensionMethod
Symbols\ErrorMethodSymbol.cs (1)
189
public override bool
IsExtensionMethod
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
821
public override bool
IsExtensionMethod
=> false;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
965
public override bool
IsExtensionMethod
Symbols\ReducedExtensionMethodSymbol.cs (1)
416
public override bool
IsExtensionMethod
Symbols\SignatureOnlyMethodSymbol.cs (1)
133
public override bool
IsExtensionMethod
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (1)
264
public override bool
IsExtensionMethod
Symbols\Source\LocalFunctionSymbol.cs (1)
314
public override bool
IsExtensionMethod
Symbols\Source\SourceMemberMethodSymbol.cs (1)
534
public override bool
IsExtensionMethod
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
103
public override bool
IsExtensionMethod
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
196
public override bool
IsExtensionMethod
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
307
public override bool
IsExtensionMethod
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
201
public sealed override bool
IsExtensionMethod
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
248
public sealed override bool
IsExtensionMethod
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
84
public override bool
IsExtensionMethod
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
121
public override bool
IsExtensionMethod
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
149
public override bool
IsExtensionMethod
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
261
public override bool
IsExtensionMethod
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
69
public override bool
IsExtensionMethod
39 references to IsExtensionMethod
Microsoft.CodeAnalysis.CSharp (39)
Binder\Binder_Await.cs (1)
457
if (getResultMethod.
IsExtensionMethod
)
Binder\Binder_Deconstruct.cs (1)
685
for (int i = (deconstructMethod.
IsExtensionMethod
? 1 : 0); i < parameters.Length; i++)
Binder\Binder_Patterns.cs (1)
1061
int skippedExtensionParameters = deconstructMethod?.
IsExtensionMethod
== true ? 1 : 0;
Binder\Binder_Statements.cs (1)
767
if (disposeMethod?.
IsExtensionMethod
== true)
Binder\ForEachLoopBinder.cs (7)
239
if (getEnumeratorMethod.
IsExtensionMethod
&& !hasErrors)
571
builder.GetEnumeratorInfo.Method.
IsExtensionMethod
)) ||
862
Debug.Assert(!builder.ViaExtensionMethod || builder.GetEnumeratorInfo.Method.
IsExtensionMethod
);
909
Debug.Assert(!builder.ViaExtensionMethod || builder.GetEnumeratorInfo.Method.
IsExtensionMethod
);
1201
Debug.Assert(!patternDisposeMethod.
IsExtensionMethod
);
1908
Debug.Assert((extensionReceiverOpt != null) == method.
IsExtensionMethod
);
1917
if (method.
IsExtensionMethod
)
Binder\Semantics\Conversions\Conversions.cs (1)
328
Debug.Assert(method.
IsExtensionMethod
);
Binder\WithUsingNamespacesAndTypesBinder.cs (1)
171
if (!symbol.IsStatic || ((MethodSymbol)symbol).
IsExtensionMethod
)
Compilation\CSharpSemanticModel.cs (2)
4789
if (call.InvokedAsExtensionMethod && method.
IsExtensionMethod
&& method.MethodKind != MethodKind.ReducedExtension)
4806
if (delegateCreation.IsExtensionMethod && method.
IsExtensionMethod
&& (receiverOpt != null))
FlowAnalysis\AbstractFlowPass.cs (1)
1638
return method.IsStatic && !method.
IsExtensionMethod
;
FlowAnalysis\NullableWalker.cs (2)
10897
if (enumeratorInfoOpt?.GetEnumeratorInfo is { Method: {
IsExtensionMethod
: true, Parameters: var parameters } } enumeratorMethodInfo)
10964
bool reportedDiagnostic = enumeratorInfoOpt?.GetEnumeratorInfo.Method is {
IsExtensionMethod
: true }
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
234
if (enumeratorInfo.GetEnumeratorInfo.Method.
IsExtensionMethod
)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
174
Debug.Assert(method.
IsExtensionMethod
);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
202
var needToReduce = receiverOpt is not (null or BoundTypeExpression) && interceptor.
IsExtensionMethod
;
248
if (invokedAsExtensionMethod && interceptor.IsStatic && !interceptor.
IsExtensionMethod
)
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
167
if (getEnumeratorInfo.Method.
IsExtensionMethod
)
184
allowExtensionAndOptionalParameters: isAsync || getEnumeratorInfo.Method.
IsExtensionMethod
, firstRewrittenArgument: firstRewrittenArgument);
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (2)
146
.Skip(addMethod.
IsExtensionMethod
? 1 : 0)
192
Debug.Assert(addMethod.
IsExtensionMethod
);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (2)
497
if (method.
IsExtensionMethod
)
532
invokedAsExtensionMethod: method.
IsExtensionMethod
);
Operations\CSharpOperationFactory.cs (1)
1947
invokedAsExtensionMethod: info.Method.
IsExtensionMethod
Symbols\MethodSymbol.cs (2)
757
if (!this.
IsExtensionMethod
|| this.MethodKind == MethodKind.ReducedExtension || receiverType.IsVoidType())
772
return (this.
IsExtensionMethod
&& this.MethodKind != MethodKind.ReducedExtension) ? ReducedExtensionMethodSymbol.Create(this) : null;
Symbols\NamedTypeSymbol.cs (1)
358
if (method.
IsExtensionMethod
&&
Symbols\PublicModel\MethodSymbol.cs (1)
313
bool IMethodSymbol.IsExtensionMethod => _underlying.
IsExtensionMethod
;
Symbols\ReducedExtensionMethodSymbol.cs (4)
39
Debug.Assert(method.
IsExtensionMethod
&& method.MethodKind != MethodKind.ReducedExtension);
74
Debug.Assert(method.
IsExtensionMethod
&& method.MethodKind != MethodKind.ReducedExtension);
94
Debug.Assert(reducedFrom.
IsExtensionMethod
);
115
Debug.Assert(method.
IsExtensionMethod
);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1597
Debug.Assert(addMethods[0].
IsExtensionMethod
);
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
73
return UnderlyingMethod.
IsExtensionMethod
;