コード例 #1
0
        public void TestVariableReferenceAccept()
        {
            Mock <KoraliumSqlVisitor> mock = new Mock <KoraliumSqlVisitor>();
            VariableReference         variableReference = new VariableReference();

            variableReference.Accept(mock.Object);
            mock.Verify(x => x.VisitVariableReference(variableReference));
        }
コード例 #2
0
 public override void VisitChildren(AstVisitor visitor)
 {
     if (HasExpression)
     {
         Expression.Accept(visitor);
     }
     LiteralBoolean?.Accept(visitor);
     LiteralNumeric?.Accept(visitor);
     LiteralString?.Accept(visitor);
     VariableReference?.Accept(visitor);
     FunctionReference?.Accept(visitor);
     FieldReference?.Accept(visitor);
 }
コード例 #3
0
        public void VisitorWithReturnIsImplemented()
        {
            var sut = new VariableReference();

            sut.Accept(23).VerifyWithReturn(v => v.Visit(sut, 23));
        }