public ParsingProperties(IEnumerable <ParsingProperty> props) { foreach (var p in props) { if (p is StrictProp s) { strict = s.value; } else if (p is WarnPrefixFlag) { warnPrefix = true; } else if (p is TrueArgumentOrderFlag) { trueArgumentOrder = true; } else { throw new Exception($"No handling for parsing property {p.GetType()}"); } } }
public static ParsingProperty Strict(ReflCtx.Strictness strict) => new StrictProp(strict);