public BracketedExpression([NotNull] LuaExpression expression) { if (expression == null) { throw new ArgumentNullException(nameof(expression)); } ContainedExpression = expression; }
public Assignment(IAssignmentTarget target, LuaExpression expression, bool local) { _targets = new List <IAssignmentTarget> { target }; _expressions = new List <LuaExpression> { expression }; Local = local; }
public IfStatement([NotNull] LuaExpression condition, [NotNull] StatementBlock ifBlock, [CanBeNull] StatementBlock elseBlock = null) { if (condition == null) { throw new ArgumentNullException(nameof(condition)); } if (ifBlock == null) { throw new ArgumentNullException(nameof(ifBlock)); } Condition = condition; IfBlock = ifBlock; ElseBlock = elseBlock; }
public BinaryExpression(LuaExpression leftExpression, LuaExpression rightExpression, string operation) { _leftExpression = leftExpression; _rightExpression = rightExpression; }
public TableIndexExpression(Variable tableVariable, LuaExpression indexExpression) { TableVariable = tableVariable; IndexExpression = indexExpression; }
public IdentityExpressionParser(LuaExpression expression) { _expression = expression; }
public WhileStatement(LuaExpression condition, StatementBlock body) { Condition = condition; Body = body; }
public ReturnStatement(LuaExpression returnedExpression) { ReturnedExpression = returnedExpression; }
public BinaryExpression(LuaExpression leftExpression, LuaExpression rightExpression, string operation) { _leftExpression = leftExpression; _rightExpression = rightExpression; }
public TableFunctionCallExpression(Variable table, LuaExpression index, params LuaExpression[] parameters) : this(table, index, parameters.AsEnumerable()) { }
public TableFunctionCallExpression(Variable table, LuaExpression index, IEnumerable<LuaExpression> parameters) { Table = table; Index = index; Parameters = parameters.ToList(); }
public ReturnStatement(LuaExpression returnedExpression) { ReturnedExpression = returnedExpression; }