53 lines
1.9 KiB
C#
53 lines
1.9 KiB
C#
using System.Collections.Immutable;
|
|
using System.Globalization;
|
|
using System.Threading;
|
|
|
|
namespace Microsoft.CodeAnalysis.CSharp.Symbols;
|
|
|
|
internal abstract class WrappedEventSymbol : EventSymbol
|
|
{
|
|
protected readonly EventSymbol _underlyingEvent;
|
|
|
|
public EventSymbol UnderlyingEvent => _underlyingEvent;
|
|
|
|
public override bool IsImplicitlyDeclared => _underlyingEvent.IsImplicitlyDeclared;
|
|
|
|
internal override bool HasSpecialName => _underlyingEvent.HasSpecialName;
|
|
|
|
public override string Name => _underlyingEvent.Name;
|
|
|
|
public override ImmutableArray<Location> Locations => _underlyingEvent.Locations;
|
|
|
|
public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _underlyingEvent.DeclaringSyntaxReferences;
|
|
|
|
public override Accessibility DeclaredAccessibility => _underlyingEvent.DeclaredAccessibility;
|
|
|
|
public override bool IsStatic => _underlyingEvent.IsStatic;
|
|
|
|
public override bool IsVirtual => _underlyingEvent.IsVirtual;
|
|
|
|
public override bool IsOverride => _underlyingEvent.IsOverride;
|
|
|
|
public override bool IsAbstract => _underlyingEvent.IsAbstract;
|
|
|
|
public override bool IsSealed => _underlyingEvent.IsSealed;
|
|
|
|
public override bool IsExtern => _underlyingEvent.IsExtern;
|
|
|
|
internal override ObsoleteAttributeData? ObsoleteAttributeData => _underlyingEvent.ObsoleteAttributeData;
|
|
|
|
public override bool IsWindowsRuntimeEvent => _underlyingEvent.IsWindowsRuntimeEvent;
|
|
|
|
internal override bool HasRuntimeSpecialName => _underlyingEvent.HasRuntimeSpecialName;
|
|
|
|
public WrappedEventSymbol(EventSymbol underlyingEvent)
|
|
{
|
|
_underlyingEvent = underlyingEvent;
|
|
}
|
|
|
|
public override string GetDocumentationCommentXml(CultureInfo? preferredCulture = null, bool expandIncludes = false, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
return _underlyingEvent.GetDocumentationCommentXml(preferredCulture, expandIncludes, cancellationToken);
|
|
}
|
|
}
|