1 write to _originalMethod
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
23_originalMethod = originalMethod;
23 references to _originalMethod
Microsoft.CodeAnalysis.CSharp (23)
Symbols\Extensions\RewrittenLambdaOrLocalFunctionSymbol.cs (2)
34=> _originalMethod.TryGetOverloadResolutionPriority(); 38return ImmutableArray<ParameterSymbol>.CastUp(_originalMethod.Parameters.SelectAsArray(static (p, @this) => new RewrittenMethodParameterSymbol(@this, p), this));
Symbols\Extensions\RewrittenMethodSymbol.cs (10)
30public sealed override MethodSymbol UnderlyingMethod => _originalMethod; 44get { return _typeMap.SubstituteType(_originalMethod.ReturnTypeWithAnnotations); } 51TypeWithAnnotations iteratorElementTypeWithAnnotations = _originalMethod.IteratorElementTypeWithAnnotations; 64get { return _originalMethod.IsIterator; } 69return _originalMethod.CalculateLocalSyntaxOffset(localPosition, localTree); 77=> _originalMethod.GetUnmanagedCallersOnlyAttributeData(forceComplete); 81get { return _typeMap.SubstituteCustomModifiers(_originalMethod.RefCustomModifiers); } 86return _originalMethod.GetAttributes(); 91return _originalMethod.GetUseSiteInfo(); 111return _originalMethod.HasAsyncMethodBuilderAttribute(out builderArgument);
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (11)
45return _originalMethod.ParameterCount + (_originalMethod.IsStatic ? 0 : 1); 49public sealed override bool IsExtensionMethod => !_originalMethod.IsStatic && _originalMethod.MethodKind is MethodKind.Ordinary; 68public sealed override Symbol ContainingSymbol => _originalMethod.ContainingType.ContainingSymbol; 73if (_originalMethod is SourcePropertyAccessorSymbol { AssociatedSymbol: SourcePropertySymbolBase extensionProperty }) 89if (_originalMethod is SourcePropertyAccessorSymbol accessor) 115return (_originalMethod.CallingConvention & (~Cci.CallingConvention.HasThis)) | 124var sourceParameters = _originalMethod.Parameters; 127if (!_originalMethod.IsStatic) 131parameters.Add(new ExtensionMetadataMethodParameterSymbol(this, ((SourceNamedTypeSymbol)_originalMethod.ContainingType).ExtensionParameter!));