Boo.Lang.Compiler.Steps.GeneratorExpressionProcessor.CreateMethodInvocation C# (CSharp) Method

CreateMethodInvocation() private method

private CreateMethodInvocation ( ClassDefinition cd, string name ) : MethodInvocationExpression
cd Boo.Lang.Compiler.Ast.ClassDefinition
name string
return Boo.Lang.Compiler.Ast.MethodInvocationExpression
        MethodInvocationExpression CreateMethodInvocation(ClassDefinition cd, string name)
        {
            IMethod method = (IMethod)((Method)cd.Members[name]).Entity;
            return CodeBuilder.CreateMethodInvocation(
                        CodeBuilder.CreateSelfReference(method.DeclaringType),
                        method);
        }