public CorrectnessContext(ICoreVisitor visitor, bool strictMode)
 {
     _visitor         = visitor ?? throw new ArgumentNullException(nameof(visitor));
     Options          = CorrectnessOptions.Copy();
     StrictMode       = strictMode;
     CorrectRuleChain = new();
 }
예제 #2
0
파일: CorrectContext.cs 프로젝트: wwwK/Leo
 public CorrectContext(ICoreVisitor visitor, bool strictMode)
 {
     _visitor           = visitor ?? throw new ArgumentNullException(nameof(visitor));
     _correctValueRules = new List <CorrectValueRule>();
     StrictMode         = strictMode;
 }
예제 #3
0
파일: CorrectContext.cs 프로젝트: wwwK/Leo
 protected CorrectContext(bool strictMode)
 {
     _visitor           = null;
     _correctValueRules = new List <CorrectValueRule>();
     StrictMode         = strictMode;
 }