public VarDeclarationValue(SourceCodePosition pos, BTypeValue t, string id, LiteralValue v) : base(pos, t, id, v) { if (!v.GetBType().IsImplicitCastableTo(t)) { throw new ImplicitCastException(pos, v.GetBType(), t); } }
public SwitchCase(LiteralValue v, Statement s) { Value = v; Body = s; }
public ListSwitchs Prepend(LiteralValue l, Statement s) { List.Insert(0, new SwitchCase(l, s)); return(this); }
public ListSwitchs Append(LiteralValue l, Statement s) { List.Add(new SwitchCase(l, s)); return(this); }
public ListSwitchs(SourceCodePosition pos, LiteralValue l, Statement s) : base(pos) { List.Add(new SwitchCase(l, s)); }
public abstract bool ValueEquals(LiteralValue o);
public override bool ValueEquals(LiteralValue o) { return((o is LiteralDigit) && (o as LiteralDigit).Value == this.Value); }