Exemple #1
0
        public void Handle(string clrTypeName, string wrapperName)
        {
            var t = new RealDef
            {
                ClrName  = clrTypeName,
                WrapName = wrapperName
            };

            _state.RealDefs.Add(t);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 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();;
 }