public CellType(SpreadsheetVisitor visitor, Types value) { _visitor = visitor; Type = value; Expression = null; marked = false; }
public CellType(SpreadsheetVisitor visitor, Types tp, SpreadsheetParser.ExpContext expression) { _visitor = visitor; Type = tp; Expression = expression; marked = false; }
public AbstractFormulas(SpreadsheetVisitor visitor) { Visitor = visitor; //Register all AbstractFormula derivates //TODO: Slow in practice (?), and only needs to be calculated once (list doesnt change)! var AbstractFunctionFormulaTypes = ReflectiveEnumerator.GetEnumerableOfType <AbstractFormula>(); foreach (var tp in AbstractFunctionFormulaTypes) { Register(tp.GetType(), tp.ExpressionType); } }
public DataRepository(SpreadsheetVisitor visitor) { Formulas = new AbstractFormulas(visitor); }