public bool RunTypeCheckers() { if (!BuilderStateMachine.ASTIsBuilt) { DataContext.ASTHandlerExceptions.Add(new QLError("previous step not completed successfuly")); return(false); } BuilderStateMachine.TypeIsChecked = RunHandlerLevel(TypeCheckers.ToArray()); return(BuilderStateMachine.TypeIsChecked); }
public ConcurrentDictionary <TIn, TOut> Create() => _cache ?? (_cache = TypeCheckers.EqualsGetHashCodeOverride(typeof(TIn)) ? new ConcurrentDictionary <TIn, TOut>() : new ConcurrentDictionary <TIn, TOut>(new EqualityComparerUsingReflection <TIn>()));
public void RegisterTypeChecker(IExecutableHandler handler) { TypeCheckers.Add(handler); }