1 write to _originalMethod
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
22_originalMethod = originalMethod;
28 references to _originalMethod
Microsoft.CodeAnalysis.CSharp (28)
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 (11)
28public sealed override MethodSymbol UnderlyingMethod => _originalMethod; 42get { return _typeMap.SubstituteType(_originalMethod.ReturnTypeWithAnnotations); } 49TypeWithAnnotations iteratorElementTypeWithAnnotations = _originalMethod.IteratorElementTypeWithAnnotations; 62get { return _originalMethod.IsIterator; } 67return _originalMethod.CalculateLocalSyntaxOffset(localPosition, localTree); 75=> _originalMethod.GetUnmanagedCallersOnlyAttributeData(forceComplete); 81get { return _typeMap.SubstituteCustomModifiers(_originalMethod.RefCustomModifiers); } 86return _originalMethod.GetAttributes(); 91return _originalMethod.GetReturnTypeAttributes(); 96return _originalMethod.GetUseSiteInfo(); 115return _originalMethod.HasAsyncMethodBuilderAttribute(out builderArgument);
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (15)
35internal override bool HasSpecialName => _originalMethod.HasSpecialNameAttribute; 41return _originalMethod.ParameterCount + (_originalMethod.IsStatic ? 0 : 1); 45public sealed override bool IsExtensionMethod => !_originalMethod.IsStatic && _originalMethod.MethodKind is MethodKind.Ordinary; 58public sealed override bool IsExtern => _originalMethod.IsExtern; 59public sealed override DllImportData? GetDllImportData() => _originalMethod.GetDllImportData(); 60internal sealed override bool IsExternal => _originalMethod.IsExternal; 64public sealed override Symbol ContainingSymbol => _originalMethod.ContainingType.ContainingSymbol; 69if (_originalMethod is SourcePropertyAccessorSymbol { AssociatedSymbol: SourcePropertySymbolBase extensionProperty }) 85if (_originalMethod is SourcePropertyAccessorSymbol accessor) 111return (_originalMethod.CallingConvention & (~Cci.CallingConvention.HasThis)) | 120var sourceParameters = _originalMethod.Parameters; 123if (!_originalMethod.IsStatic) 125parameters.Add(new ExtensionMetadataMethodParameterSymbol(this, ((SourceNamedTypeSymbol)_originalMethod.ContainingType).ExtensionParameter!));