public ExporterSelection(SDGuiStrings strings, ICoreConfigSection sharpdoxConfig, IExporter[] allExporters)
        {
            Strings = strings;

            DataContext = new ExporterViewModel(sharpdoxConfig, allExporters);
            InitializeComponent();
        }
        public GeneralSettings(SDGuiStrings strings, ICoreConfigSection config)
		{
            DataContext = config;
            Strings = strings;

            InitializeComponent();
        }
Beispiel #3
0
 public EventViewModel(SDEvent eve, TypeViewModel parent, ICoreConfigSection sharpDoxConfig)
     : base(eve.Identifier, parent, sharpDoxConfig)
 {
     Text = eve.Name;
     Accessibility = eve.Accessibility;
     Image = string.Format("pack://application:,,,/SharpDox.GUI;component/Resources/Icons/Event_{0}.png", Accessibility);
 }
Beispiel #4
0
 public PropertyViewModel(SDProperty property, TypeViewModel parent, ICoreConfigSection sharpDoxConfig)
     : base(property.Identifier, parent, sharpDoxConfig)
 {
     Text = property.Name;
     Accessibility = property.Accessibility;
     Image = string.Format("pack://application:,,,/SharpDox.GUI;component/Resources/Icons/Properties_{0}.png", Accessibility);
 }
Beispiel #5
0
        public SDSolution GetParsedSolution(string solutionFile, ICoreConfigSection sharpDoxConfig, Dictionary <string, string> tokens, bool parseMethodCalls, bool ignoreExcludes = false)
        {
            var sdSolution = new SDSolution(solutionFile);
            var solution   = _roslynLoader.LoadSolutionFile(solutionFile);

            var parserOptions = new ParserOptions();

            parserOptions.CodeSolution   = solution;
            parserOptions.SDSolution     = sdSolution;
            parserOptions.SharpDoxConfig = sharpDoxConfig;
            parserOptions.Tokens         = tokens;
            parserOptions.IgnoreExcludes = ignoreExcludes;

            ParseProjects(parserOptions);
            CleanUpNamespaces(sdSolution);

            if (parseMethodCalls)
            {
                ParseMethodCalls(parserOptions);
            }
            ResolveSeeTokens(parserOptions);
            ResolveUses(parserOptions);

            return(sdSolution);
        }
        public ExporterSelection(SDGuiStrings strings, ICoreConfigSection sharpdoxConfig, IExporter[] allExporters)
        {
            Strings = strings;

            DataContext = new ExporterViewModel(sharpdoxConfig, allExporters);
            InitializeComponent();
        }
Beispiel #7
0
 public MethodViewModel(SDMethod method, TypeViewModel parent, ICoreConfigSection sharpDoxConfig)
     : base(method.Identifier, parent, sharpDoxConfig)
 {
     Text = method.Name;
     Accessibility = method.Accessibility;
     Image = string.Format("pack://application:,,,/SharpDox.GUI;component/Resources/Icons/Method_{0}.png", Accessibility);
 }
Beispiel #8
0
        public GeneralSettings(SDGuiStrings strings, ICoreConfigSection config)
        {
            DataContext = config;
            Strings     = strings;

            InitializeComponent();
        }
Beispiel #9
0
 public EventViewModel(SDEvent eve, TypeViewModel parent, ICoreConfigSection sharpDoxConfig)
     : base(eve.Identifier, parent, sharpDoxConfig)
 {
     Text          = eve.Name;
     Accessibility = eve.Accessibility;
     Image         = string.Format("pack://application:,,,/SharpDox.GUI;component/Resources/Icons/Event_{0}.png", Accessibility);
 }
        public VisibilitySettings(SDGuiStrings strings, ICoreConfigSection sharpdoxConfig, IBuildController buildController, IBuildMessenger buildMessenger)
        {
            Strings = strings;

            DataContext = new VisibilityViewModel(sharpdoxConfig, buildController, buildMessenger);
            InitializeComponent();
        }
Beispiel #11
0
 public FieldViewModel(SDField field, TypeViewModel parent, ICoreConfigSection sharpDoxConfig)
     : base(field.Identifier, parent, sharpDoxConfig)
 {
     Text          = field.Name;
     Accessibility = field.Accessibility;
     Image         = string.Format("pack://application:,,,/SharpDox.GUI;component/Resources/Icons/Field_{0}.png", Accessibility);
 }
Beispiel #12
0
        public ParseContext(ICoreConfigSection coreConfigSection, SDBuildStrings sdBuildStrings, IConfigController configController, BuildMessenger buildMessenger)
        {
            _sdBuildStrings = sdBuildStrings;
            _buildMessenger = buildMessenger;

            _steps = new Steps(coreConfigSection, sdBuildStrings, configController, buildMessenger);
        }
Beispiel #13
0
 public PreBuildStep(ICoreConfigSection coreConfigSection, IExporter[] allExporters, BuildMessenger buildMessenger, SDBuildStrings sdBuildStrings)
 {
     _coreConfigSection = coreConfigSection;
     _allExporters      = allExporters;
     _buildMessenger    = buildMessenger;
     _sdBuildStrings    = sdBuildStrings;
 }
        public VisibilitySettings(SDGuiStrings strings, ICoreConfigSection sharpdoxConfig, IBuildController buildController, IBuildMessenger buildMessenger)
        {
            Strings = strings;

            DataContext = new VisibilityViewModel(sharpdoxConfig, buildController, buildMessenger);
            InitializeComponent();
        }
Beispiel #15
0
        public TypeViewModel(SDType type, NamespaceViewModel parent, ICoreConfigSection sharpDoxConfig)
            : base(type.Identifier, parent, sharpDoxConfig)
        {
            Text          = type.NameWithTypeArguments;
            Accessibility = type.Accessibility;
            Image         = string.Format("pack://application:,,,/SharpDox.GUI;component/Resources/Icons/Class_{0}.png", Accessibility);

            foreach (var sdEvent in type.Events)
            {
                Children.Add(new EventViewModel(sdEvent, this, sharpDoxConfig));
            }

            foreach (var sdField in type.Fields)
            {
                Children.Add(new FieldViewModel(sdField, this, sharpDoxConfig));
            }

            foreach (var sdMethod in type.Constructors)
            {
                Children.Add(new MethodViewModel(sdMethod, this, sharpDoxConfig));
            }

            foreach (var sdMethod in type.Methods)
            {
                Children.Add(new MethodViewModel(sdMethod, this, sharpDoxConfig));
            }

            foreach (var sdProperty in type.Properties)
            {
                Children.Add(new PropertyViewModel(sdProperty, this, sharpDoxConfig));
            }
        }
Beispiel #16
0
        public TypeViewModel(SDType type, NamespaceViewModel parent, ICoreConfigSection sharpDoxConfig)
            : base(type.Identifier, parent, sharpDoxConfig)
        {
            Text = type.NameWithTypeArguments;
            Accessibility = type.Accessibility;
            Image = string.Format("pack://application:,,,/SharpDox.GUI;component/Resources/Icons/Class_{0}.png", Accessibility);

            foreach (var sdEvent in type.Events)
            {
                Children.Add(new EventViewModel(sdEvent, this, sharpDoxConfig));
            }

            foreach (var sdField in type.Fields)
            {
                Children.Add(new FieldViewModel(sdField, this, sharpDoxConfig));
            }

            foreach (var sdMethod in type.Constructors)
            {
                Children.Add(new MethodViewModel(sdMethod, this, sharpDoxConfig));
            }

            foreach (var sdMethod in type.Methods)
            {
                Children.Add(new MethodViewModel(sdMethod, this, sharpDoxConfig));
            }

            foreach (var sdProperty in type.Properties)
            {
                Children.Add(new PropertyViewModel(sdProperty, this, sharpDoxConfig));
            }
        }
 public PropertyViewModel(SDProperty property, TypeViewModel parent, ICoreConfigSection sharpDoxConfig)
     : base(property.Identifier, parent, sharpDoxConfig)
 {
     Text          = property.Name;
     Accessibility = property.Accessibility;
     Image         = string.Format("pack://application:,,,/SharpDox.GUI;component/Resources/Icons/Properties_{0}.png", Accessibility);
 }
Beispiel #18
0
        public ExporterViewModel(ICoreConfigSection sharpDoxConfig, IExporter[] allExporters)
        {
            _sharpDoxConfig = sharpDoxConfig;
            _allExporter    = allExporters;

            RunRefresh();
            sharpDoxConfig.PropertyChanged += (s, a) => RunRefresh();
        }
Beispiel #19
0
        public ExporterViewModel(ICoreConfigSection sharpDoxConfig, IExporter[] allExporters)
        {
            _sharpDoxConfig = sharpDoxConfig;
            _allExporter = allExporters;

            RunRefresh();
            sharpDoxConfig.PropertyChanged += (s, a) => RunRefresh();
        }
Beispiel #20
0
        public BuildContext(ICoreConfigSection coreConfigSection, SDBuildStrings sdBuildStrings, IConfigController configController, BuildMessenger buildMessenger, IExporter[] allExporters)
        {
            _coreConfigSection = coreConfigSection;
            _sdBuildStrings    = sdBuildStrings;
            _buildMessenger    = buildMessenger;

            _steps = new Steps(coreConfigSection, sdBuildStrings, configController, buildMessenger, allExporters);
        }
Beispiel #21
0
        private void ParseTypes(CSharpProject project, SDRepository sdRepository, ICoreConfigSection sharpDoxConfig)
        {
            var typeParser = new TypeParser(sdRepository, sharpDoxConfig);

            typeParser.OnItemParseStart += (n) => { PostParseMessage(_parserStrings.ParsingClass + ": " + n); };

            typeParser.ParseProjectTypes(project);
        }
        public VisibilityEditorView(SDGuiStrings strings, ICoreConfigSection sharpdoxConfig, IBuildController buildController)
        {
            Strings = strings;

            DataContext = new VisibilityViewModel(sharpdoxConfig, buildController, Hide);
            InitializeComponent();

            MouseLeftButtonDown += (s, a) => DragMove();
        }
Beispiel #23
0
 public Steps(ICoreConfigSection coreConfigSection, SDBuildStrings sdBuildStrings, IConfigController configController, BuildMessenger buildMessenger, IExporter[] allExporters = null)
 {
     PreBuildStep       = new PreBuildStep(coreConfigSection, allExporters, buildMessenger, sdBuildStrings);
     LoadStep           = new LoadStep(coreConfigSection, sdBuildStrings, buildMessenger);
     ParseStep          = new ParseStep(sdBuildStrings, coreConfigSection, buildMessenger);
     StructureParseStep = new StructureParseStep(sdBuildStrings, buildMessenger);
     ExportStep         = new ExportStep(coreConfigSection, sdBuildStrings, buildMessenger, allExporters);
     EndStep            = new EndStep(configController, coreConfigSection);
 }
        public ConfigSectionControl(ILocalController localController, ICoreConfigSection coreConfigSection, IExporter[] allExporters, BuildController buildController)
        {
            _localController = localController;
            _coreConfigSection = coreConfigSection;
            _allExporters = allExporters;
            _buildController = buildController;

            DataContext = this;
            InitializeComponent();
        }
Beispiel #25
0
        public ConfigSectionControl(LocalController localController, ICoreConfigSection coreConfigSection, IExporter[] allExporters, IBuildController buildController)
        {
            _localController   = localController;
            _coreConfigSection = coreConfigSection;
            _allExporters      = allExporters;
            _buildController   = buildController;

            DataContext = this;
            InitializeComponent();
        }
        public NamespaceViewModel(SDNamespace sdNamespace, ICoreConfigSection sharpDoxConfig)
            : base(sdNamespace.Fullname, null, sharpDoxConfig)
        {
            Text  = sdNamespace.Fullname;
            Image = "pack://application:,,,/SharpDox.GUI;component/Resources/Icons/Namespace_public.png";

            foreach (var sdType in sdNamespace.Types)
            {
                Children.Add(new TypeViewModel(sdType, this, sharpDoxConfig));
            }
        }
Beispiel #27
0
        public VisibilityEditorView(SDGuiStrings strings, ICoreConfigSection sharpdoxConfig, BuildController buildController)
        {
            Strings = strings;
            Config  = sharpdoxConfig;

            DataContext = new VisibilityViewModel(sharpdoxConfig, buildController, Hide);
            InitializeComponent();

            MouseLeftButtonDown += OnMouseDown;
            MouseLeftButtonUp   += OnMouseUp;
        }
Beispiel #28
0
        public VisibilityViewModel(ICoreConfigSection sharpDoxConfig, IBuildController buildController, Action onCloseHandle)
        {
            _sharpDoxConfig  = sharpDoxConfig;
            _buildController = buildController;
            _onCloseHandle   = onCloseHandle;

            sharpDoxConfig.PropertyChanged += ConfigChanged;

            buildController.BuildMessenger.OnParseCompleted += ParseCompleted;
            buildController.BuildMessenger.OnParseFailed    += ParseStopped;
        }
        public TreeViewItemViewModel(string identifier, TreeViewItemViewModel parent, ICoreConfigSection sharpDoxConfig)
        {
            _sharpDoxConfig = sharpDoxConfig;

            Children = new ObservableCollection<TreeViewItemViewModel>();
            Children.CollectionChanged += (s, a) => UpdateHasExcludedChild();

            Parent = parent;
            Identifier = identifier;
            IsExcluded = _sharpDoxConfig.ExcludedIdentifiers.Contains(identifier);
        }
Beispiel #30
0
        public VisibilityViewModel(ICoreConfigSection sharpDoxConfig, BuildController buildController, Action onCloseHandle)
        {
            _sharpDoxConfig = sharpDoxConfig;
            _buildController = buildController;
            _onCloseHandle = onCloseHandle;

            sharpDoxConfig.PropertyChanged += ConfigChanged;

            buildController.BuildMessenger.OnBuildCompleted += ParseCompleted;
            buildController.BuildMessenger.OnBuildFailed += ParseStopped;
        }
Beispiel #31
0
        public TreeViewItemViewModel(string identifier, TreeViewItemViewModel parent, ICoreConfigSection sharpDoxConfig)
        {
            _sharpDoxConfig = sharpDoxConfig;

            Children = new ObservableCollection <TreeViewItemViewModel>();
            Children.CollectionChanged += (s, a) => UpdateHasExcludedChild();

            Parent     = parent;
            Identifier = identifier;
            IsExcluded = _sharpDoxConfig.ExcludedIdentifiers.Contains(identifier);
        }
        public VisibilityEditorView(SDGuiStrings strings, ICoreConfigSection sharpdoxConfig, BuildController buildController)
        {
            Strings = strings;
            Config = sharpdoxConfig;

            DataContext = new VisibilityViewModel(sharpdoxConfig, buildController, Hide);
            InitializeComponent();

            MouseLeftButtonDown += OnMouseDown;
            MouseLeftButtonUp += OnMouseUp;
        }
Beispiel #33
0
        public NamespaceViewModel(SDNamespace sdNamespace, ICoreConfigSection sharpDoxConfig)
            : base(sdNamespace.Fullname, null, sharpDoxConfig)
        {
            Text = sdNamespace.Fullname;
            Image = "pack://application:,,,/SharpDox.GUI;component/Resources/Icons/Namespace_public.png";

            foreach (var sdType in sdNamespace.Types)
            {
                Children.Add(new TypeViewModel(sdType, this, sharpDoxConfig));
            }
        }
        public ConfigVisibilityControl(SDGuiStrings strings, ICoreConfigSection coreConfigSection, BuildController buildController)
        {
            _strings = strings;
            _coreConfigSection = coreConfigSection;
            _buildController = buildController;

            coreConfigSection.PropertyChanged += ExcludedIdentifiersChanged;
            ExcludedIdentifiersChanged(null, null);

            DataContext = this;
            InitializeComponent();
        }
        public ConfigVisibilityControl(SDGuiStrings strings, ICoreConfigSection coreConfigSection, IBuildController buildController)
        {
            _strings           = strings;
            _coreConfigSection = coreConfigSection;
            _buildController   = buildController;

            coreConfigSection.PropertyChanged += ExcludedIdentifiersChanged;
            ExcludedIdentifiersChanged(null, null);

            DataContext = this;
            InitializeComponent();
        }
Beispiel #36
0
        public ConfigController(IConfigSection[] configSections, ICoreConfigSection coreConfigSection)
        {
            _configSections    = configSections;
            _coreConfigSection = coreConfigSection;
            _configSerializer  = new ConfigSerializer();

            RecentProjects = new List <KeyValuePair <string, string> >();
            GetRecentConfigs();

            RegisterEventOnConfigs(configSections);
            New();
        }
Beispiel #37
0
        public BuildWindow(SDGuiStrings strings, ICoreConfigSection sharpDoxConfig, IBuildController buildController, IBuildMessenger buildMessenger)
        {
            Strings = strings;

            _sharpDoxConfig  = sharpDoxConfig;
            _buildController = buildController;
            _buildMessenger  = buildMessenger;
            _buildMessenger.OnBuildMessage  += BuilderOnMessage;
            _buildMessenger.OnStepMessage   += BuilderOnStepMessage;
            _buildMessenger.OnBuildStopped  += BuilderOnStopped;
            _buildMessenger.OnBuildProgress += BuilderOnBuildProgress;
            _buildMessenger.OnStepProgress  += BuilderOnStepProgress;

            InitializeComponent();
        }
Beispiel #38
0
        public BuildWindow(SDGuiStrings strings, ICoreConfigSection sharpDoxConfig, IBuildController buildController, IBuildMessenger buildMessenger)
        {
            Strings = strings;

            _sharpDoxConfig = sharpDoxConfig;
            _buildController = buildController;
            _buildMessenger = buildMessenger;
            _buildMessenger.OnBuildMessage += BuilderOnMessage;
            _buildMessenger.OnStepMessage += BuilderOnStepMessage;
            _buildMessenger.OnBuildStopped += BuilderOnStopped;
            _buildMessenger.OnBuildProgress += BuilderOnBuildProgress;
            _buildMessenger.OnStepProgress += BuilderOnStepProgress;

            InitializeComponent();
        }
Beispiel #39
0
        public void StartBuild(ICoreConfigSection sharpDoxConfig, bool thread)
        {
            var buildContext = new BuildContext(sharpDoxConfig, _sdBuildStrings, _configController, BuildMessenger as BuildMessenger, _allExporters);

            if (thread)
            {
                Stop();
                _buildThread = new Thread(buildContext.BuildDocumentation);
                _buildThread.Start();
            }
            else
            {
                buildContext.BuildDocumentation();
            }
        }
Beispiel #40
0
        public void StartParse(ICoreConfigSection coreConfigSection, bool thread)
        {
            var parseContext = new ParseContext(coreConfigSection, _sdBuildStrings, _configController, BuildMessenger as BuildMessenger);

            if (thread)
            {
                Stop();
                _buildThread = new Thread(parseContext.ParseSolution);
                _buildThread.Start();
            }
            else
            {
                parseContext.ParseSolution();
            }
        }
Beispiel #41
0
        public void StartBuild(ICoreConfigSection coreConfigSection, bool thread)
        {
            var config = BuildConfig.FullBuildConfig(_configController, _codeParser(), _sdBuildStrings, _allExporters);
            var context = new BuildContext(BuildMessenger, _sdBuildStrings, config);

            if (thread)
            {
                Stop();
                _buildThread = new Thread(context.StartBuild);
                _buildThread.Start();
            }
            else
            {
                context.StartBuild();
            }
        }
Beispiel #42
0
        public void StartBuild(ICoreConfigSection coreConfigSection, bool thread)
        {
            var config  = BuildConfig.FullBuildConfig(_configController, _codeParser(), _sdBuildStrings, _allExporters);
            var context = new BuildContext(BuildMessenger, _sdBuildStrings, config);

            if (thread)
            {
                Stop();
                _buildThread = new Thread(context.StartBuild);
                _buildThread.Start();
            }
            else
            {
                context.StartBuild();
            }
        }
Beispiel #43
0
        private SDSolution ParseSolution(CSharpSolution solution, ICoreConfigSection sharpDoxConfig, Dictionary <string, string> tokens, bool structured)
        {
            var sdSolution     = new SDSolution(solution.SolutionFile);
            var targetFxParser = new SDTargetFxParser();

            _currentProjectIndex = 1;
            _totalProjects       = solution.Projects.Count;
            for (var i = 0; i < solution.Projects.Count; i++)
            {
                ExecuteOnStepProgress((int)(((double)i / (double)solution.Projects.Count) * 50) + 20);

                var project         = solution.Projects[i];
                var projectFileName = project.FileName;
                var targetFx        = targetFxParser.GetTargetFx(projectFileName);

                var sdRepository = sdSolution.GetExistingOrNew(targetFx);
                if (structured)
                {
                    StructureParseNamespaces(project, sdRepository);
                    StructureParseTypes(project, sdRepository);
                }
                else
                {
                    ParseNamespaces(project, sdRepository, sharpDoxConfig, tokens);
                    ParseTypes(project, sdRepository, sharpDoxConfig);

                    // Because of excluding privates, internals and protected members
                    // it is possible, that a namespace has no visible namespaces at all.
                    // It is necessary to remove empty namespaces.
                    RemoveEmptyNamespaces(sdRepository);
                }
                _currentProjectIndex++;
            }

            ExecuteOnStepProgress(80);
            if (!structured)
            {
                var i = 0;
                foreach (var sdRepository in sdSolution.Repositories)
                {
                    ParseMethodCalls(solution, sdRepository);
                    ResolveUses(sdRepository);
                }
            }

            return(sdSolution);
        }
Beispiel #44
0
        private SDSolution ParseSolution(CSharpSolution solution, ICoreConfigSection sharpDoxConfig, Dictionary<string, string> tokens, bool structured)
        {
            var sdSolution = new SDSolution(solution.SolutionFile);
            var targetFxParser = new SDTargetFxParser();

            _currentProjectIndex = 1;
            _totalProjects = solution.Projects.Count;
            for (var i = 0; i < solution.Projects.Count; i++)
            {
                ExecuteOnStepProgress((int)(((double)i / (double)solution.Projects.Count) * 50) + 20);

                var project = solution.Projects[i];
                var projectFileName = project.FileName;
                var targetFx = targetFxParser.GetTargetFx(projectFileName);

                var sdRepository = sdSolution.GetExistingOrNew(targetFx);
                if (structured)
                {
                    StructureParseNamespaces(project, sdRepository);
                    StructureParseTypes(project, sdRepository);
                }
                else
                {
                    ParseNamespaces(project, sdRepository, sharpDoxConfig, tokens);
                    ParseTypes(project, sdRepository, sharpDoxConfig);

                    // Because of excluding privates, internals and protected members
                    // it is possible, that a namespace has no visible namespaces at all.
                    // It is necessary to remove empty namespaces.
                    RemoveEmptyNamespaces(sdRepository);
                }
                _currentProjectIndex++;
            }

            ExecuteOnStepProgress(80);
            if (!structured)
            {
                var i = 0;
                foreach (var sdRepository in sdSolution.Repositories)
                {
                    ParseMethodCalls(solution, sdRepository);
                    ResolveUses(sdRepository);
                }
            }

            return sdSolution;
        }
Beispiel #45
0
        public SDSolution GetParsedSolution(string solutionFile, ICoreConfigSection sharpDoxConfig, Dictionary<string, string> tokens, bool parseMethodCalls, bool ignoreExcludes = false)
        {
            var sdSolution = new SDSolution(solutionFile);
            var solution = _roslynLoader.LoadSolutionFile(solutionFile);

            var parserOptions = new ParserOptions();
            parserOptions.CodeSolution = solution;
            parserOptions.SDSolution = sdSolution;
            parserOptions.SharpDoxConfig = sharpDoxConfig;
            parserOptions.Tokens = tokens;
            parserOptions.IgnoreExcludes = ignoreExcludes;

            ParseProjects(parserOptions);
            CleanUpNamespaces(sdSolution);

            if (parseMethodCalls) ParseMethodCalls(parserOptions);
            ResolveSeeTokens(parserOptions);
            ResolveUses(parserOptions);

            return sdSolution;
        }
Beispiel #46
0
 internal BaseParser(SDRepository repository, ICoreConfigSection sharpDoxConfig = null)
 {
     _repository = repository;
     _sharpDoxConfig = sharpDoxConfig;
     _documentationParser = new DocumentationParser();
 }
Beispiel #47
0
 internal NamespaceParser(SDRepository repository, ICoreConfigSection sharpDoxConfig, string inputFile, Dictionary<string, string> tokens) : base(repository, sharpDoxConfig)
 {
     _descriptionFiles = Directory.EnumerateFiles(Path.GetDirectoryName(inputFile), "*.sdnd", SearchOption.AllDirectories).ToList();
     _tokens = tokens;
 }
Beispiel #48
0
 internal PropertyParser(SDRepository repository, TypeParser typeParser, ICoreConfigSection sharpDoxConfig) : base(repository, sharpDoxConfig)
 {
     _typeParser = typeParser;
 }
Beispiel #49
0
 internal NamespaceParser(SDRepository repository, List <string> excludedIdentifiers, ICoreConfigSection coreConfigSection)
     : base(repository, excludedIdentifiers)
 {
     _descriptionFiles = Directory.EnumerateFiles(Path.GetDirectoryName(coreConfigSection.InputPath), "*.sdnd", SearchOption.AllDirectories).ToList();
 }
Beispiel #50
0
 internal TypeParser(SDRepository repository, ICoreConfigSection sharpDoxConfig) : base(repository, sharpDoxConfig) { }
Beispiel #51
0
        private void ParseNamespaces(CSharpProject project, SDRepository sdRepository, ICoreConfigSection sharpDoxConfig, Dictionary<string, string> tokens)
        {
            var namespaceParser = new NamespaceParser(sdRepository, sharpDoxConfig, sharpDoxConfig.InputFile, tokens);
            namespaceParser.OnDocLanguageFound += ExecuteOnDocLanguageFound;
            namespaceParser.OnItemParseStart += (n) => { PostParseMessage(_parserStrings.ParsingNamespace + ": " + n); };

            namespaceParser.ParseProjectNamespaces(project);
        }
Beispiel #52
0
 internal NamespaceParser(SDRepository repository, ICoreConfigSection sharpDoxConfig, string inputFile, Dictionary <string, string> tokens) : base(repository, sharpDoxConfig)
 {
     _descriptionFiles = Directory.EnumerateFiles(Path.GetDirectoryName(inputFile), "*.sdnd", SearchOption.AllDirectories).ToList();
     _tokens           = tokens;
 }
Beispiel #53
0
        private void ParseTypes(CSharpProject project, SDRepository sdRepository, ICoreConfigSection sharpDoxConfig)
        {
            var typeParser = new TypeParser(sdRepository, sharpDoxConfig);
            typeParser.OnItemParseStart += (n) => { PostParseMessage(_parserStrings.ParsingClass + ": " + n); };

            typeParser.ParseProjectTypes(project);
        }
Beispiel #54
0
 public SDSolution GetFullParsedSolution(string solutionFile, ICoreConfigSection sharpDoxConfig, Dictionary<string, string> tokens)
 {
     var solution = LoadSolution(solutionFile);
     return ParseSolution(solution, sharpDoxConfig, tokens, false);
 }
 public VisibilityItemList(ICoreConfigSection sharpDoxConfig)
 {
     _sharpDoxConfig = sharpDoxConfig;
 }