public void Handle(string clrTypeName, string wrapperName) { var t = new RealDef { ClrName = clrTypeName, WrapName = wrapperName }; _state.RealDefs.Add(t); }
public string GenerateUnit(IUnit unit, RealDef real) { if (unit is Parser.State.Scalar) { return(string.Empty); } var text = new GenerateUnit(State, unit, real).TransformText(); return(text); }
public GenerateUnit(ParserState state, IUnit unit, RealDef realDef) { State = state; Unit = unit; Real = realDef; SelfOps = State.SelfOps.Select(i => { i.RetType = i.RetType == "null" ? null : i.RetType; return(i); }).ToHashSet();; }