Beispiel #1
0
 public Literal(CodeRange pos, LaxType type, object val) : base(ExprType.Literal)
 {
     this.CodeRange = pos;
     this.ValueType = type;
     this.Value = val;
 }
Beispiel #2
0
 public Literal GetLiteral(CodeRange pos)
 {
     var type = new LaxType(DataType.Unit, new Unit(Name));
     return new Literal(pos, type, null);
 }