protected GherkinTextBufferParserListenerBase(GherkinDialect gherkinDialect, ITextSnapshot textSnapshot, IProjectScope projectScope) { this.textSnapshot = textSnapshot; this.classifications = projectScope.Classifications; this.projectScope = projectScope; this.enableStepMatchColoring = projectScope.IntegrationOptionsProvider.GetOptions().EnableStepMatchColoring; gherkinFileScope = new GherkinFileScope(gherkinDialect, textSnapshot); }
internal VsProjectScope(Project project, DteWithEvents dteWithEvents, GherkinFileEditorClassifications classifications, IVisualStudioTracer tracer, IIntegrationOptionsProvider integrationOptionsProvider) { Classifications = classifications; this.project = project; this.dteWithEvents = dteWithEvents; this.tracer = tracer; this.integrationOptionsProvider = integrationOptionsProvider; var integrationOptions = integrationOptionsProvider.GetOptions(); parser = new GherkinTextBufferParser(this, tracer); //TODO: enable when analizer is implemented // if (integrationOptions.EnableAnalysis) // analyzer = new GherkinScopeAnalyzer(this, visualStudioTracer); GherkinProcessingScheduler = new GherkinProcessingScheduler(tracer, integrationOptions.EnableAnalysis); GeneratorServices = new VsGeneratorServices(project, new VsSpecFlowConfigurationReader(project, tracer), tracer); }