internal SchemaCombinator FindCombinator(int id) { SchemaCombinator combinator = methods.Find(val => val.id == id); if (combinator == null) { combinator = constructors.Find(val => val.id == id); if (combinator == null) { throw new DecodeException("Combinator not found: " + id.ToString(CultureInfo.InvariantCulture)); } } return(combinator); }
internal SchemaCombinator FindCombinator(string name) { SchemaCombinator combinator = methods.Find(val => val.method == name); if (combinator == null) { combinator = constructors.Find(val => val.predicate == name); if (combinator == null) { throw new ArgumentOutOfRangeException(name); } } return(combinator); }
internal string[] FindTypes(SchemaCombinator combinator) { return [email protected](val => val.type).ToArray(); }
internal Argument[] FindArguments(SchemaCombinator combinator) { return [email protected](val => new Argument(val.name, val.type)).ToArray(); }
internal string[] FindTypes(SchemaCombinator combinator) { return([email protected](val => val.type).ToArray()); }
internal Argument[] FindArguments(SchemaCombinator combinator) { return([email protected](val => new Argument(val.name, val.type)).ToArray()); }