Example #1
0
 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()}");
         }
     }
 }
Example #2
0
 public static ParsingProperty Strict(ReflCtx.Strictness strict) => new StrictProp(strict);