Exemple #1
0
        private void InitRunContext()
        {
            txtLogger.Clear();
            pgbHandling.Value = 0;

            if (FileNames.Count == 0)
            {
                Contexts.Clear();
                Contexts.Add(StyleCopContext.Load(txtSql.Text));
            }
        }
Exemple #2
0
        public void RunHandlers(StyleCopContext context)
        {
            var doc = context.Doc;

            //var availableHandlers =
            XmlTraverser.DSTXmlNode(doc, n =>
            {
                Handlers.FindAll(h => h.FilterNames.Contains(n.Name))
                .ForEach(h =>
                {
                    h.StyleCopContext = context;
                    h.Node            = n;
                    h.HandleNode();
                });
            });
        }
Exemple #3
0
 protected void WriteLog(string content, int level = 1, string pos = null)
 {
     StyleCopContext.WriteLog(pos ?? Position, content, level);
 }