Beispiel #1
0
        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));
        }
Beispiel #2
0
 public RQEvent(RQUnconstructedType containingType, RQMethodPropertyOrEventName memberName)
     : base(containingType, memberName)
 { }
Beispiel #3
0
 public RQEvent(RQUnconstructedType containingType, RQMethodPropertyOrEventName memberName)
     : base(containingType, memberName)
 {
 }