public static void InitializeDefaultExtensionPoints() { FileLogger.SetupDefaultFileLogger(Path.GetTempPath()); ExtensionPointsRepository extensionPointsRepository = ExtensionPointsRepository.Instance; PathManager.Create(Path.GetTempPath()); var generator = new ABB.SrcML.SrcMLGenerator(SrcMLDirectory); extensionPointsRepository.RegisterParserImplementation(new List <string>() { ".cs" }, new SrcMLCSharpParser(generator)); extensionPointsRepository.RegisterParserImplementation(new List <string>() { ".h", ".cpp", ".cxx" }, new SrcMLCppParser(generator)); extensionPointsRepository.RegisterWordSplitterImplementation(new WordSplitter()); extensionPointsRepository.RegisterResultsReordererImplementation(new SortByScoreResultsReorderer()); extensionPointsRepository.RegisterQueryWeightsSupplierImplementation(new QueryWeightsSupplier()); extensionPointsRepository.RegisterQueryRewriterImplementation(new DefaultQueryRewriter()); var solutionKey = new SolutionKey(Guid.NewGuid(), Path.GetTempPath()); ServiceLocator.RegisterInstance(solutionKey); extensionPointsRepository.RegisterIndexFilterManagerImplementation(new IndexFilterManager()); }
public static void InitializeExtensionPoints() { ExtensionPointsRepository extensionPointsRepository = ExtensionPointsRepository.Instance; var generator = new ABB.SrcML.SrcMLGenerator(TestUtils.SrcMLDirectory); extensionPointsRepository.RegisterParserImplementation(new List<string>() { ".cs" }, new SrcMLCSharpParser(generator)); extensionPointsRepository.RegisterParserImplementation(new List<string>() { ".h", ".cpp", ".cxx" }, new SrcMLCppParser(generator)); extensionPointsRepository.RegisterWordSplitterImplementation(new WordSplitter()); extensionPointsRepository.RegisterQueryWeightsSupplierImplementation(new QueryWeightsSupplier()); }
public static void InitializeExtensionPoints() { ExtensionPointsRepository extensionPointsRepository = ExtensionPointsRepository.Instance; var generator = new ABB.SrcML.SrcMLGenerator(TestUtils.SrcMLDirectory); extensionPointsRepository.RegisterParserImplementation(new List <string>() { ".cs" }, new SrcMLCSharpParser(generator)); extensionPointsRepository.RegisterParserImplementation(new List <string>() { ".h", ".cpp", ".cxx" }, new SrcMLCppParser(generator)); extensionPointsRepository.RegisterWordSplitterImplementation(new WordSplitter()); extensionPointsRepository.RegisterQueryWeightsSupplierImplementation(new QueryWeightsSupplier()); }
public static void InitializeDefaultExtensionPoints() { FileLogger.SetupDefaultFileLogger(Path.GetTempPath()); ExtensionPointsRepository extensionPointsRepository = ExtensionPointsRepository.Instance; PathManager.Create(Path.GetTempPath()); var generator = new ABB.SrcML.SrcMLGenerator(SrcMLDirectory); extensionPointsRepository.RegisterParserImplementation(new List<string>() { ".cs" }, new SrcMLCSharpParser(generator)); extensionPointsRepository.RegisterParserImplementation(new List<string>() { ".c", ".h", ".cpp", ".cxx" }, new SrcMLCppParser(generator)); extensionPointsRepository.RegisterWordSplitterImplementation(new WordSplitter()); extensionPointsRepository.RegisterResultsReordererImplementation(new SortByScoreResultsReorderer()); extensionPointsRepository.RegisterQueryWeightsSupplierImplementation(new QueryWeightsSupplier()); extensionPointsRepository.RegisterQueryRewriterImplementation(new DefaultQueryRewriter()); var solutionKey = new SolutionKey(Guid.NewGuid(), Path.GetTempPath()); ServiceLocator.RegisterInstance(solutionKey); extensionPointsRepository.RegisterIndexFilterManagerImplementation(new IndexFilterManager()); }
public void FixtureSetUp() { generator = new ABB.SrcML.SrcMLGenerator(TestUtils.SrcMLDirectory); }
public void FixtureSetUp() { //TestUtils.InitializeDefaultExtensionPoints(); generator = new ABB.SrcML.SrcMLGenerator(TestUtils.SrcMLDirectory); }
public MySrcMlCppParser(ABB.SrcML.SrcMLGenerator generator) { this.Generator = generator; }
public void FixtureSetUp() { generator = new ABB.SrcML.SrcMLGenerator(TestUtils.SrcMLDirectory); }
public void FixtureSetUp() { //TestUtils.InitializeDefaultExtensionPoints(); generator = new ABB.SrcML.SrcMLGenerator(TestUtils.SrcMLDirectory); }