Beispiel #1
0
            public string Visit <TCoercionParent, TInterCoercionParent>(IIntermediateUnaryOperatorCoercionMember <TCoercionParent, TInterCoercionParent> intermediateMember, IntermediateNameRequestDetails context)
                where TCoercionParent : Abstract.ICoercibleType <Abstract.Members.IUnaryOperatorUniqueIdentifier, Abstract.Members.IUnaryOperatorCoercionMember <TCoercionParent>, TCoercionParent>
                where TInterCoercionParent : IIntermediateCoercibleType <Abstract.Members.IUnaryOperatorUniqueIdentifier, Abstract.Members.IUnaryOperatorCoercionMember <TCoercionParent>, IIntermediateUnaryOperatorCoercionMember <TCoercionParent, TInterCoercionParent>, TCoercionParent, TInterCoercionParent>, TCoercionParent
            {
                string name = null;

                switch (context)
                {
                case IntermediateNameRequestDetails.TargetFileName:
                    if (this.HtmlContext)
                    {
                        name = string.Format("#unOp{0:X8}", intermediateMember.GetHashCode());
                    }
                    break;

                case IntermediateNameRequestDetails.DisplayName:
                    name = intermediateMember.Name;
                    break;

                case IntermediateNameRequestDetails.ReferenceName:
                    if (this.HtmlContext)
                    {
                        name = string.Format("unOp{0:X8}", intermediateMember.GetHashCode());
                    }
                    break;
                }
                return(name);
            }
Beispiel #2
0
 void IIntermediateMemberVisitor.Visit <TCoercionParent, TInterCoercionParent>(IIntermediateUnaryOperatorCoercionMember <TCoercionParent, TInterCoercionParent> intermediateMember)
 {
     this.Translate(intermediateMember);
 }
Beispiel #3
0
 public abstract void Translate <TCoercionParent, TInterCoercionParent>(IIntermediateUnaryOperatorCoercionMember <TCoercionParent, TInterCoercionParent> intermediateMember)
     where TCoercionParent :
 ICoercibleType <IUnaryOperatorUniqueIdentifier, IUnaryOperatorCoercionMember <TCoercionParent>, TCoercionParent>
     where TInterCoercionParent :
 IIntermediateCoercibleType <IUnaryOperatorUniqueIdentifier, IUnaryOperatorCoercionMember <TCoercionParent>, IIntermediateUnaryOperatorCoercionMember <TCoercionParent, TInterCoercionParent>, TCoercionParent, TInterCoercionParent>,
 TCoercionParent;
Beispiel #4
0
 public IUnaryOperatorUniqueIdentifier GetIdentifier(IIntermediateUnaryOperatorCoercionMember member)
 {
     return(TypeSystemIdentifiers.GetUnaryOperatorIdentifier(member.Operator, member.UserSpecificQualifier));
 }
Beispiel #5
0
 public IUnaryOperatorUniqueIdentifier GetIdentifier(IIntermediateUnaryOperatorCoercionMember member)
 {
     throw new NotSupportedException();
 }