private static RQEvent BuildEvent(IEventSymbol symbol) { var containingType = BuildNamedType(symbol.ContainingType); if (containingType == null) { return(null); } RQMethodPropertyOrEventName name = RQOrdinaryMethodPropertyOrEventName.CreateOrdinaryEventName(symbol.Name); if (symbol.ExplicitInterfaceImplementations.Any()) { if (symbol.ExplicitInterfaceImplementations.Length > 1) { return(null); } name = new RQExplicitInterfaceMemberName(BuildType(symbol.ExplicitInterfaceImplementations.Single().ContainingType as ITypeSymbol), (RQOrdinaryMethodPropertyOrEventName)name); } return(new RQEvent(containingType, name)); }
public RQEvent(RQUnconstructedType containingType, RQMethodPropertyOrEventName memberName) : base(containingType, memberName) { }
public RQEvent(RQUnconstructedType containingType, RQMethodPropertyOrEventName memberName) : base(containingType, memberName) { }