void CreateMethodEditPoint() { var codeFunction = new CodeFunction(methodHelper.Method, documentLoader); TextPoint startPoint = codeFunction.GetStartPoint(); endPoint = codeFunction.GetEndPoint(); editPoint = startPoint.CreateEditPoint(); }
void AddPublicMethod(string name, string type) { codeFunction = codeGenerator.AddPublicMethod(name, type); }
void CreateFunction() { codeFunction = new CodeFunction(helper.Method); }
void CreateFunction() { methodUpdater = MockRepository.GenerateStub<IVirtualMethodUpdater>(); codeFunction = new CodeFunction(helper.Method, null, methodUpdater); }
void CreateFunction(string code) { AddCodeFile("class.cs", code); IMethod method = assemblyModel .TopLevelTypeDefinitions .First() .Members .First() .Resolve() as IMethod; codeFunction = new CodeFunction(codeModelContext, method); }