public IBinaryOperatorCoercionMember <TType> this[CoercibleBinaryOperators op] { get { foreach (var binOpC in this.Values) { if (binOpC.ContainingSide == BinaryOpCoercionContainingSide.Both && op == binOpC.Operator) { return(binOpC); } } return(null); } }
public IBinaryOperatorCoercionMember <TType> this[CoercibleBinaryOperators op, BinaryOpCoercionContainingSide side, IType otherSide] { get { foreach (var binOpC in this.Values) { if (binOpC.Operator == op && binOpC.ContainingSide == side && binOpC.OtherSide.Equals(otherSide)) { return(binOpC); } } return(null); } }
public IBinaryOperatorCoercionMember <TCoercionParent> this[CoercibleBinaryOperators op] { get { foreach (var element in this.Values) { if (element.ContainingSide == BinaryOpCoercionContainingSide.Both && element.Operator == op) { return(element); } } throw new KeyNotFoundException(); } }
public IBinaryOperatorCoercionMember <TCoercionParent> this[CoercibleBinaryOperators op, BinaryOpCoercionContainingSide side, IType otherSide] { get { foreach (var element in this.Values) { if (element.Operator == op && element.ContainingSide == side && element.OtherSide == otherSide) { return(element); } } throw new KeyNotFoundException(); } }
IIntermediateBinaryOperatorCoercionMember IIntermediateBinaryOperatorCoercionMemberDictionary.Add(CoercibleBinaryOperators op, IType returnType) { return(this.Add(op, returnType)); }
IIntermediateBinaryOperatorCoercionMember IIntermediateBinaryOperatorCoercionMemberDictionary.Add(CoercibleBinaryOperators op, BinaryOpCoercionContainingSide containingSide, IType otherSide, IType returnType) { return(this.Add(op, containingSide, otherSide, returnType)); }
public IIntermediateBinaryOperatorCoercionMember <TType, TIntermediateType> Add(CoercibleBinaryOperators op, IType returnType) { return(this.Add(op, BinaryOpCoercionContainingSide.Both, null, returnType)); }
public IIntermediateBinaryOperatorCoercionMember <TType, TIntermediateType> Add(CoercibleBinaryOperators op, BinaryOpCoercionContainingSide containingSide, IType otherSide, IType returnType) { BinaryOperatorMember member = this.Parent.GetNewBinaryOperator(op, containingSide, returnType);//new BinaryOperatorMember(this.Parent); if (containingSide != BinaryOpCoercionContainingSide.Both) { if (otherSide == null) { throw new ArgumentNullException("otherSide"); } else { member.OtherSide = otherSide; } } this.AddDeclaration(member); return(member); }
IBinaryOperatorCoercionMember IBinaryOperatorCoercionMemberDictionary.this[CoercibleBinaryOperators op] { get { return(this[op]); } }
IBinaryOperatorCoercionMember IBinaryOperatorCoercionMemberDictionary.this[CoercibleBinaryOperators op, BinaryOpCoercionContainingSide side, IType otherSide] { get { return(this[op, side, otherSide]); } }
public static IBinaryOperatorUniqueIdentifier GetBinaryOperatorRightIdentifier(CoercibleBinaryOperators @operator, IType otherSide) { return(GetBinaryOperatorIdentifier(@operator, BinaryOpCoercionContainingSide.RightSide, otherSide)); }
public static IBinaryOperatorUniqueIdentifier GetBinaryOperatorLeftIdentifier(CoercibleBinaryOperators @operator, IType otherSide, string languageSpecificQualifier) { return(GetBinaryOperatorIdentifier(@operator, languageSpecificQualifier, BinaryOpCoercionContainingSide.LeftSide, otherSide)); }
internal static IBinaryOperatorUniqueIdentifier GetBinaryOperatorIdentifier(CoercibleBinaryOperators @operator, BinaryOpCoercionContainingSide containingSide = BinaryOpCoercionContainingSide.Both, IType otherSide = null) { return(new DefaultBinaryOperatorUniqueIdentifier(@operator, containingSide, otherSide)); }
public static IBinaryOperatorUniqueIdentifier GetBinaryOperatorBothIdentifier(CoercibleBinaryOperators @operator) { return(GetBinaryOperatorBothIdentifier(@operator)); }
public static IBinaryOperatorUniqueIdentifier GetBinaryOperatorBothIdentifier(CoercibleBinaryOperators @operator, string languageSpecificQualifier) { return(GetBinaryOperatorBothIdentifier(@operator, languageSpecificQualifier)); }