public override IEnumerable <IDiagnostic> AnalyzeInternal(SemanticModel model) { var visitor = new OutputVisitor(this, model); visitor.Visit(model.SourceFile.ProgramSyntax); return(visitor.diagnostics); }
public void VisitSimpleUndQuery() { SearchExpression expr = QueryParser.Parse("Ehe UND Familie"); var buffer = new StringBuilder(); var visitor = new OutputVisitor(new StringWriter(buffer)); visitor.Visit(expr, null); var output = buffer.ToString(); Assert.That(output, Is.EqualTo("Ehe und Familie")); }