Ejemplo n.º 1
0
		private static bool IsActivateInvocation(MethodInvocationExpression invocation)
		{
			MethodReferenceExpression methodRef = invocation.Target as MethodReferenceExpression;
			if (null == methodRef) return false;
			return IsActivateMethod(methodRef.Method);
		}
Ejemplo n.º 2
0
		public override void Visit(MethodInvocationExpression node)
		{
			CannotOptimize(node);
		}
		public InvokeActionBlock (Instruction sourceInstruction, MethodInvocationExpression expression)
			: base (sourceInstruction)
		{
			_expression = expression;
		}
		public virtual void Visit (MethodInvocationExpression node)
		{
			Visit (node.Target);
			Visit (node.Arguments);
		}
Ejemplo n.º 5
0
 public virtual void Visit(MethodInvocationExpression node)
 {
     Visit(node.Target);
     Visit(node.Arguments);
 }
		public override void Visit (MethodInvocationExpression node)
		{
			Visit (node.Target);
			Write ("(");
			for (int i=0; i < node.Arguments.Count; ++i) {
				if (i > 0) Write (", ");
				Visit (node.Arguments [i]);
			}
			Write (")");
		}