示例#1
0
 public abstract void Translate <TSignatureParameter, TSignature, TParent>(IMethodReferenceStub <TSignatureParameter, TSignature, TParent> expression)
     where TSignatureParameter :
 IMethodSignatureParameterMember <TSignatureParameter, TSignature, TParent>
     where TSignature :
 IMethodSignatureMember <TSignatureParameter, TSignature, TParent>
     where TParent :
 ISignatureParent <IGeneralGenericSignatureMemberUniqueIdentifier, TSignature, TSignatureParameter, TParent>;
示例#2
0
 public TransformationKind Visit <TSignatureParameter, TSignature, TParent>(IMethodReferenceStub <TSignatureParameter, TSignature, TParent> member, ITransformationContext context)
     where TSignatureParameter : IMethodSignatureParameterMember <TSignatureParameter, TSignature, TParent>
     where TSignature : IMethodSignatureMember <TSignatureParameter, TSignature, TParent>
     where TParent : ISignatureParent <IGeneralGenericSignatureMemberUniqueIdentifier, TSignature, TSignatureParameter, TParent>
 {
     throw new NotImplementedException();
 }
 public override bool Visit <TSignatureParameter, TSignature, TParent>(IMethodReferenceStub <TSignatureParameter, TSignature, TParent> expressionSegment, object context)
 {
     _stack.Push(expressionSegment);
     try
     {
         return(base.Visit(expressionSegment, context));
     }
     finally
     {
         _stack.Pop();
     }
 }
 public override bool Visit(IMethodReferenceStub member, object context)
 {
     _stack.Push(member);
     try
     {
         return(base.Visit(member, context));
     }
     finally
     {
         _stack.Pop();
     }
 }
示例#5
0
 public abstract IExpression Transform(IMethodReferenceStub expression);
示例#6
0
 void IExpressionVisitor.Visit <TSignatureParameter, TSignature, TParent>(IMethodReferenceStub <TSignatureParameter, TSignature, TParent> expression)
 {
     this.Translate(expression);
 }
示例#7
0
 void IExpressionVisitor.Visit(IMethodReferenceStub expression)
 {
     this.Translate(expression);
 }
 /// <summary>
 /// Creates a new <see cref="MethodInvokeExpression{TSignatureParameter, TSignature, TParent}"/> with
 /// the <paramref name="parameters"/>, and <paramref name="reference"/>
 /// provided.
 /// </summary>
 /// <param name="reference">A <see cref="IMethodReferenceStub"/>
 /// which created the <see cref="MethodInvokeExpression{TSignatureParameter, TSignature, TParent}"/> and designates
 /// the method target, whose signature is inferred by the framework
 /// if needed.</param>
 /// <param name="parameters">The series of <see cref="IExpression"/>
 /// elements which relate to the values to send
 /// the method when calling it.</param>
 public MethodInvokeExpression(IMethodReferenceStub <TSignatureParameter, TSignature, TParent> reference, params IExpression[] parameters)
     : base(reference, parameters)
 {
 }
 /// <summary>
 /// Creates a new <see cref="MethodInvokeExpression{TSignatureParameter, TSignature, TParent}"/> with
 /// the <paramref name="parameters"/>, and <paramref name="reference"/>
 /// provided.
 /// </summary>
 /// <param name="reference">A <see cref="IMethodReferenceStub"/>
 /// which created the <see cref="MethodInvokeExpression{TSignatureParameter, TSignature, TParent}"/> and designates
 /// the method target whose signature is inferred by the framework
 /// if needed.</param>
 /// <param name="parameters">The series of <see cref="IExpression"/>
 /// elements which relate to the values to send
 /// the method when calling it.</param>
 /// <exception cref="System.ArgumentNullException">thrown when <paramref name="reference"/>
 /// or <paramref name="parameters"/> is null.</exception>
 public MethodInvokeExpression(IMethodReferenceStub <TSignatureParameter, TSignature, TParent> reference, IExpressionCollection <IExpression> parameters)
     : base(reference, parameters)
 {
 }
示例#10
0
 TransformationImpact IExpressionVisitor <TransformationImpact> .Visit <TSignatureParameter, TSignature, TParent>(IMethodReferenceStub <TSignatureParameter, TSignature, TParent> expression)
 {
     return(CalculateRefactorImpact(expression));
 }
示例#11
0
 TransformationImpact IExpressionVisitor <TransformationImpact> .Visit(IMethodReferenceStub expression)
 {
     return(CalculateRefactorImpact(expression));
 }
示例#12
0
 public abstract TransformationImpact CalculateRefactorImpact <TSignatureParameter, TSignature, TParent>(IMethodReferenceStub <TSignatureParameter, TSignature, TParent> expression)
     where TSignatureParameter :
 IMethodSignatureParameterMember <TSignatureParameter, TSignature, TParent>
     where TSignature :
 IMethodSignatureMember <TSignatureParameter, TSignature, TParent>
     where TParent :
 ISignatureParent <IGeneralGenericSignatureMemberUniqueIdentifier, TSignature, TSignatureParameter, TParent>;
示例#13
0
 public abstract TransformationImpact CalculateRefactorImpact(IMethodReferenceStub expression);
示例#14
0
 public abstract void Translate(IMethodReferenceStub expression);
示例#15
0
 internal MethodPointerReferenceExpression(IMethodReferenceStub <TSignatureParameter, TSignature, TParent> reference, ITypeCollection signatureTypes)
     : base(reference, signatureTypes)
 {
 }
示例#16
0
 public TransformationKind Visit(IMethodReferenceStub member, ITransformationContext context)
 {
     throw new NotImplementedException();
 }