Beispiel #1
0
            public string Visit <TCoercionParent, TIntermediateCoercionParent>(IIntermediateTypeCoercionMember <TCoercionParent, TIntermediateCoercionParent> intermediateMember, IntermediateNameRequestDetails context)
                where TCoercionParent : Abstract.ICoercibleType <Abstract.Members.ITypeCoercionUniqueIdentifier, Abstract.Members.ITypeCoercionMember <TCoercionParent>, TCoercionParent>
                where TIntermediateCoercionParent : IIntermediateCoercibleType <Abstract.Members.ITypeCoercionUniqueIdentifier, Abstract.Members.ITypeCoercionMember <TCoercionParent>, IIntermediateTypeCoercionMember <TCoercionParent, TIntermediateCoercionParent>, TCoercionParent, TIntermediateCoercionParent>, TCoercionParent
            {
                string name = null;

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

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

                case IntermediateNameRequestDetails.ReferenceName:
                    if (this.HtmlContext)
                    {
                        name = string.Format("typCoer{0:X8}", intermediateMember.GetHashCode());
                    }
                    break;
                }
                return(name);
            }
Beispiel #2
0
 void IIntermediateMemberVisitor.Visit <TCoercionParent, TIntermediateCoercionParent>(IIntermediateTypeCoercionMember <TCoercionParent, TIntermediateCoercionParent> intermediateMember)
 {
     this.Translate(intermediateMember);
 }
Beispiel #3
0
 public abstract void Translate <TCoercionParent, TIntermediateCoercionParent>(IIntermediateTypeCoercionMember <TCoercionParent, TIntermediateCoercionParent> intermediateMember)
     where TCoercionParent :
 ICoercibleType <ITypeCoercionUniqueIdentifier, ITypeCoercionMember <TCoercionParent>, TCoercionParent>
     where TIntermediateCoercionParent :
 IIntermediateCoercibleType <ITypeCoercionUniqueIdentifier, ITypeCoercionMember <TCoercionParent>, IIntermediateTypeCoercionMember <TCoercionParent, TIntermediateCoercionParent>, TCoercionParent, TIntermediateCoercionParent>,
 TCoercionParent;
Beispiel #4
0
 public ITypeCoercionUniqueIdentifier GetIdentifier(IIntermediateTypeCoercionMember member)
 {
     return(TypeSystemIdentifiers.GetTypeOperatorIdentifier(member.Requirement, member.Direction, member.CoercionType, member.UserSpecificQualifier));
 }
Beispiel #5
0
 public ITypeCoercionUniqueIdentifier GetIdentifier(IIntermediateTypeCoercionMember member)
 {
     throw new NotSupportedException();
 }