public CalcParam(CalcModule module, IRecordRead rec, bool isSubParam) : base(rec, isSubParam) { Module = module; CompiledExpr = rec.GetString("CompiledExpr"); Keeper = new CalcKeeper(this); }
public override ICalcNode VisitExprParam(P.ExprParamContext context) { var info = GoInfo(context.info()); CalcModule mod = null; if (Module.CalcParams.ContainsKey(info.Code)) { mod = Module; } else { foreach (var m in Module.LinkedModules) { if (m.CalcParams.ContainsKey(info.Code)) { mod = m; } } } //return new ParamNode(new CalcParamInstance(mod.CalcParams[info.Code])); throw new NotImplementedException(); }