public bool LanguageSupportsOperation(string langName, RefactorOperations operation) { IRefactorer r = LanguageBindingService.GetRefactorerForLanguage(langName); if (r == null) { return(false); } return((r.SupportedOperations & operation) == operation); }
public IType CreateClass(Project project, string language, string directory, string namspace, CodeTypeDeclaration type) { ProjectDom ctx = ProjectDomService.GetProjectDom(project); RefactorerContext gctx = new RefactorerContext(ctx, fileProvider, null); IRefactorer gen = LanguageBindingService.GetRefactorerForLanguage(language); IType c = gen.CreateClass(gctx, directory, namspace, type); gctx.Save(); return(c); }