コード例 #1
0
        public override IEnumerable <IDiagnostic> AnalyzeInternal(SemanticModel model)
        {
            var visitor = new OutputVisitor(this, model);

            visitor.Visit(model.SourceFile.ProgramSyntax);
            return(visitor.diagnostics);
        }
コード例 #2
0
        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"));
        }
コード例 #3
0
        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"));
        }