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