RootQueryExpression.cs 515 B

1234567891011121314151617181920212223
  1. using Ant.Query.QueryState;
  2. using Ant.Query.Visitors;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. namespace Ant.Query.QueryExpressions
  8. {
  9. class RootQueryExpression : QueryExpression
  10. {
  11. public RootQueryExpression(Type elementType)
  12. : base(QueryExpressionType.Root, elementType, null)
  13. {
  14. }
  15. public override T Accept<T>(QueryExpressionVisitor<T> visitor)
  16. {
  17. return visitor.Visit(this);
  18. }
  19. }
  20. }