/// <summary>
 /// Visits a <see cref="QueryMappedScalarTypeWithStructure"/>.
 /// </summary>
 /// <param name="type">Query type being visited.</param>
 /// <returns>The result of visiting this query type.</returns>
 public ComparisonResult Visit(QueryMappedScalarTypeWithStructure type)
 {
     return(this.parent.ComparePrimitive((QueryScalarValue)this.expectedValue, this.actualValue, this.path, this.shouldThrow));
 }
 /// <summary>
 /// Visits a <see cref="QueryMappedScalarTypeWithStructure"/>.
 /// </summary>
 /// <param name="type">Query type being visited.</param>
 /// <returns>The result of visiting this query type.</returns>
 public ComparisonResult Visit(QueryMappedScalarTypeWithStructure type)
 {
     throw new TaupoNotSupportedException("Comparison of spatial types is not supported.");
 }
 /// <summary>
 /// Creates a QueryValue of a given type.
 /// </summary>
 /// <param name="type">Type of the QueryValue that will be generated.</param>
 /// <returns>QueryValue representing the provided object.</returns>
 public QueryValue Visit(QueryMappedScalarTypeWithStructure type)
 {
     return(this.VisitScalar(type));
 }