1 write to _originalMethod
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
23_originalMethod = originalMethod;
20 references to _originalMethod
Microsoft.CodeAnalysis.CSharp (20)
Symbols\Extensions\RewrittenLambdaOrLocalFunctionSymbol.cs (1)
35return 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 (9)
39return _originalMethod.ParameterCount + (_originalMethod.IsStatic ? 0 : 1); 43public sealed override bool IsExtensionMethod => !_originalMethod.IsStatic && _originalMethod.MethodKind is MethodKind.Ordinary; 64public sealed override Symbol ContainingSymbol => _originalMethod.ContainingType.ContainingSymbol; 79return (_originalMethod.CallingConvention & (~Cci.CallingConvention.HasThis)) | 88var sourceParameters = _originalMethod.Parameters; 91if (!_originalMethod.IsStatic) 95parameters.Add(new ExtensionMetadataMethodParameterSymbol(this, ((SourceNamedTypeSymbol)_originalMethod.ContainingType).ExtensionParameter!));