public CSVariableDeclaration(CSType type, string name, ICSExpression value = null) : this(type, new CSIdentifier(name), value) { }
public CSVariableDeclaration(CSType type, CSIdentifier name, ICSExpression value = null) : this(type, new CSBinding [] { new CSBinding(name, value) }) { }
public CSLambda(ICSExpression value, params string [] parameters) : this(new CSParameterList(parameters.Select(p => new CSParameter(CSSimpleType.Void, new CSIdentifier(p)))), value) { }
public CSLambda(CSParameterList parameters, ICSExpression value) { Parameters = parameters ?? new CSParameterList(); Value = Exceptions.ThrowOnNull(value, "value"); Body = null; }
public CSBinding(CSIdentifier name, ICSExpression val = null, bool onOwnLine = false) { Name = name; Value = val; OnOwnLine = onOwnLine; }
public CSBinaryExpression(CSBinaryOperator op, ICSExpression lhs, ICSExpression rhs) { Operation = op; Left = Exceptions.ThrowOnNull(lhs, "lhs"); Right = Exceptions.ThrowOnNull(rhs, "rhs"); }
public CSReturn(ICSExpression expr) { Value = expr; }
public void Add(ICSExpression expr) { Add(new CSArgument(expr)); }
public CSParenthesisExpression(ICSExpression within) { Within = Exceptions.ThrowOnNull(within, "within"); }
public static CSLine ReturnLine(ICSExpression expr) { return(new CSLine(new CSReturn(expr))); }
public CSCastExpression(CSType type, ICSExpression toCast) { Type = Exceptions.ThrowOnNull(type, "type"); ToCast = Exceptions.ThrowOnNull(toCast, "toCast"); }
public CSCastExpression(string type, ICSExpression toCast) : this(new CSSimpleType(type), toCast) { }
public CSArgument(ICSExpression expr) { Value = Exceptions.ThrowOnNull(expr, nameof(expr)); }
public static CSLine VarLine(CSType type, string name, ICSExpression value = null) { return(new CSLine(new CSVariableDeclaration(type, name, value))); }
public CSBinding(string name, ICSExpression val = null, bool onOwnLine = false) : this(new CSIdentifier(name), val, onOwnLine) { }
public CSFieldDeclaration(CSType type, string name, ICSExpression value = null, CSVisibility vis = CSVisibility.None, bool isSatic = false, bool isReadonly = false) : this(type, new CSIdentifier(name), value, vis, isSatic, isReadonly) { }
public CSUnaryExpression(CSUnaryOperator op, ICSExpression expr) { Operation = op; Expr = Exceptions.ThrowOnNull(expr, nameof(expr)); }