private void QueueTreeForValidation() { // Transfer available errors from the tree right away foreach (ParseError e in _editorTree.AstRoot.Errors) { ValidationResults.Enqueue(new ValidationError(e, ErrorText.GetText(e.ErrorType), e.Location)); } }
private void ClearResultsForNode(IAstNode node) { foreach (var child in node.Children) { ClearResultsForNode(child); } // Adding sentinel will cause task list handler // to remove all results from the task list ValidationResults.Enqueue(new ValidationSentinel()); }