コード例 #1
0
            public string Visit <TCoercionParent, TIntermediateCoercionParent>(IIntermediateBinaryOperatorCoercionMember <TCoercionParent, TIntermediateCoercionParent> intermediateMember, IntermediateNameRequestDetails context)
                where TCoercionParent : Abstract.ICoercibleType <Abstract.Members.IBinaryOperatorUniqueIdentifier, Abstract.Members.IBinaryOperatorCoercionMember <TCoercionParent>, TCoercionParent>
                where TIntermediateCoercionParent : IIntermediateCoercibleType <Abstract.Members.IBinaryOperatorUniqueIdentifier, Abstract.Members.IBinaryOperatorCoercionMember <TCoercionParent>, IIntermediateBinaryOperatorCoercionMember <TCoercionParent, TIntermediateCoercionParent>, TCoercionParent, TIntermediateCoercionParent>, TCoercionParent
            {
                string name = null;

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

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

                case IntermediateNameRequestDetails.ReferenceName:
                    if (this.HtmlContext)
                    {
                        name = string.Format("binOp{0:X8}", intermediateMember.GetHashCode());
                    }
                    break;
                }
                return(name);
            }
コード例 #2
0
 void IIntermediateMemberVisitor.Visit <TCoercionParent, TIntermediateCoercionParent>(IIntermediateBinaryOperatorCoercionMember <TCoercionParent, TIntermediateCoercionParent> intermediateMember)
 {
     this.Translate(intermediateMember);
 }
コード例 #3
0
 public abstract void Translate <TCoercionParent, TIntermediateCoercionParent>(IIntermediateBinaryOperatorCoercionMember <TCoercionParent, TIntermediateCoercionParent> intermediateMember)
     where TCoercionParent :
 ICoercibleType <IBinaryOperatorUniqueIdentifier, IBinaryOperatorCoercionMember <TCoercionParent>, TCoercionParent>
     where TIntermediateCoercionParent :
 IIntermediateCoercibleType <IBinaryOperatorUniqueIdentifier, IBinaryOperatorCoercionMember <TCoercionParent>, IIntermediateBinaryOperatorCoercionMember <TCoercionParent, TIntermediateCoercionParent>, TCoercionParent, TIntermediateCoercionParent>,
 TCoercionParent;
コード例 #4
0
 public IBinaryOperatorUniqueIdentifier GetIdentifier(IIntermediateBinaryOperatorCoercionMember member)
 {
     return(TypeSystemIdentifiers.GetBinaryOperatorIdentifier(member.Operator, member.UserSpecificQualifier, member.ContainingSide, member.OtherSide));
 }
コード例 #5
0
 public IBinaryOperatorUniqueIdentifier GetIdentifier(IIntermediateBinaryOperatorCoercionMember member)
 {
     throw new NotSupportedException();
 }