public CorrectnessContext(ICoreVisitor visitor, bool strictMode)
 {
     _visitor         = visitor ?? throw new ArgumentNullException(nameof(visitor));
     Options          = CorrectnessOptions.Copy();
     StrictMode       = strictMode;
     CorrectRuleChain = new();
 }
Exemple #2
0
 public CorrectContext(ICoreVisitor visitor, bool strictMode)
 {
     _visitor           = visitor ?? throw new ArgumentNullException(nameof(visitor));
     _correctValueRules = new List <CorrectValueRule>();
     StrictMode         = strictMode;
 }
Exemple #3
0
 protected CorrectContext(bool strictMode)
 {
     _visitor           = null;
     _correctValueRules = new List <CorrectValueRule>();
     StrictMode         = strictMode;
 }