private void InitRunContext() { txtLogger.Clear(); pgbHandling.Value = 0; if (FileNames.Count == 0) { Contexts.Clear(); Contexts.Add(StyleCopContext.Load(txtSql.Text)); } }
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(); }); }); }
protected void WriteLog(string content, int level = 1, string pos = null) { StyleCopContext.WriteLog(pos ?? Position, content, level); }