/// <summary> /// Create and return instantiation of a parser represented by RegularExpressionScanner object. /// </summary> /// <param name="buffer">An <see cref="IVsTextLines"/> represents lines of source to parse.</param> /// <returns>Returns a RegularExpressionScanner object</returns> public override IScanner GetScanner(IVsTextLines buffer) { var configurationReader = new Vs2008SpecFlowConfigurationReader(CurrentProject, NullIdeTracer.Instance); var configurationHolder = configurationReader.ReadConfiguration(); var config = new GeneratorConfigurationProvider().LoadConfiguration(configurationHolder) ?? new SpecFlowProjectConfiguration(); scanner = new RegularExpressionScanner(config.GeneratorConfiguration.FeatureLanguage); return(scanner); }
/// <summary> /// Create and return instantiation of a parser represented by RegularExpressionScanner object. /// </summary> /// <param name="buffer">An <see cref="IVsTextLines"/> represents lines of source to parse.</param> /// <returns>Returns a RegularExpressionScanner object</returns> public override IScanner GetScanner(IVsTextLines buffer) { var configurationReader = new Vs2008SpecFlowConfigurationReader(CurrentProject, NullIdeTracer.Instance); var configurationHolder = configurationReader.ReadConfiguration(); var config = new SpecFlowProjectConfigurationLoaderWithoutPlugins().LoadConfiguration(configurationHolder) ?? new SpecFlowProjectConfiguration(); scanner = new RegularExpressionScanner(config.GeneratorConfiguration.FeatureLanguage); return scanner; }
protected override ProjectSettings LoadProjectSettings() { ISpecFlowConfigurationReader configurationReader = new Vs2008SpecFlowConfigurationReader(project, tracer); var configurationHolder = configurationReader.ReadConfiguration(); return(new ProjectSettings { ProjectName = project.Name, AssemblyName = project.Properties.Item("AssemblyName").Value as string, ProjectFolder = VsxHelper.GetProjectFolder(project), DefaultNamespace = project.Properties.Item("DefaultNamespace").Value as string, ProjectPlatformSettings = ProjectPlatformSettings(), ConfigurationHolder = configurationHolder }); }
protected override ProjectSettings LoadProjectSettings() { ISpecFlowConfigurationReader configurationReader = new Vs2008SpecFlowConfigurationReader(project, tracer); var configurationHolder = configurationReader.ReadConfiguration(); return new ProjectSettings { ProjectName = project.Name, AssemblyName = project.Properties.Item("AssemblyName").Value as string, ProjectFolder = VsxHelper.GetProjectFolder(project), DefaultNamespace = project.Properties.Item("DefaultNamespace").Value as string, ProjectPlatformSettings = new ProjectPlatformSettings(), // TODO: We only support C# for now, later we'll add support to grab the provider based on the project ConfigurationHolder = configurationHolder }; }
protected override ProjectSettings LoadProjectSettings() { ISpecFlowConfigurationReader configurationReader = new Vs2008SpecFlowConfigurationReader(project, tracer); var configurationHolder = configurationReader.ReadConfiguration(); return(new ProjectSettings { ProjectName = project.Name, AssemblyName = project.Properties.Item("AssemblyName").Value as string, ProjectFolder = VsxHelper.GetProjectFolder(project), DefaultNamespace = project.Properties.Item("DefaultNamespace").Value as string, ProjectPlatformSettings = new ProjectPlatformSettings(), // TODO: We only support C# for now, later we'll add support to grab the provider based on the project ConfigurationHolder = configurationHolder }); }
protected override ProjectSettings LoadProjectSettings() { ISpecFlowConfigurationReader configurationReader = new Vs2008SpecFlowConfigurationReader(project, tracer); var configurationHolder = configurationReader.ReadConfiguration(); return new ProjectSettings { ProjectName = project.Name, AssemblyName = project.Properties.Item("AssemblyName").Value as string, ProjectFolder = VsxHelper.GetProjectFolder(project), DefaultNamespace = project.Properties.Item("DefaultNamespace").Value as string, ProjectPlatformSettings = ProjectPlatformSettings(), ConfigurationHolder = configurationHolder }; }