internal Parser(string query, QueryParser.Capabilities capabilities, QueryParser.LookupPropertyDelegate schemaLookupDelegate, QueryParser.ListKnownPropertiesDelegate listKnownPropertiesDelegate, QueryParser.EvaluateVariableDelegate evalDelegate, QueryParser.ConvertValueFromStringDelegate convertDelegate) { if (query == null) { throw new ArgumentNullException("query"); } if (convertDelegate == null) { throw new ArgumentNullException("convertDelegate", DataStrings.StringConversionDelegateNotSet); } if (schemaLookupDelegate == null) { throw new ArgumentNullException("schemaLookupDelegate", DataStrings.StringConversionDelegateNotSet); } this.query = query; this.Capabilities = capabilities; this.Variables = new HashSet <string>(); this.schemaLookupDelegate = schemaLookupDelegate; this.listKnownPropertiesDelegate = listKnownPropertiesDelegate; this.evalDelegate = evalDelegate; this.convertDelegate = convertDelegate; this.scanner = new Scanner(query); base.Parse(); }
internal QueryParser(string query, QueryParser.Capabilities capabilities, QueryParser.LookupPropertyDelegate schemaLookupDelegate, QueryParser.ListKnownPropertiesDelegate listKnownPropertiesDelegate, QueryParser.EvaluateVariableDelegate evalDelegate, QueryParser.ConvertValueFromStringDelegate convertDelegate) { this.parser = new Parser(query, capabilities, schemaLookupDelegate, listKnownPropertiesDelegate, evalDelegate, convertDelegate); }