GotoDefinitionFeature(IEngine engine, IObserver <Error> errors, IGotoDefinitionFactory gotoDefinitionFactory)
 {
     _engine = engine;
     _errors = errors;
     _gotoDefinitionFactory = gotoDefinitionFactory;
 }
 public static Optional <Source> TryGoToDefinition(IEngine engine, IObserver <Error> errors, IGotoDefinitionFactory gotoDefinitionFactory,
                                                   GotoDefinitionRequest goToDefinition)
 {
     return(new GotoDefinitionFeature(engine, errors, gotoDefinitionFactory)
            .TryGoToDefinitionBasedOnType(goToDefinition));
 }
 public CodeCompletionInstance(ProjectDetector projectDetector)
 {
     _gotoDefinitionFactory = new GotoDefinitionFactory();
     _suggestionsFactory    = new SuggestionsFactory();
     _engine = new Engine(projectDetector);
 }