/// <summary> /// Initializes a new instance of the <see cref="AssignmentExpression"/> class. /// </summary> public AssignmentExpression(VariableExpression variable, ExpressionBase value) : base(ExpressionType.Assignment) { Variable = variable; Value = value; Location = new Jamiras.Components.TextRange(Variable.Location.Start, value.Location.End); }
public FunctionCallExpression(FunctionNameExpression functionName, ICollection <ExpressionBase> parameters) : base(ExpressionType.FunctionCall) { FunctionName = functionName; Parameters = parameters; Location = new Jamiras.Components.TextRange(functionName.Location.Start.Line, functionName.Location.Start.Column, 0, 0); }
internal VariableExpressionBase(string name, int line, int column) : this(name) { Location = new Jamiras.Components.TextRange(line, column, line, column + name.Length - 1); }
public TestExpression(int value, int column) : base(value) { Location = new Jamiras.Components.TextRange(column, column, column + 1, column + 1); }
public ParseErrorExpression(string message, int line, int column, int endLine, int endColumn) : this(message) { Location = new Jamiras.Components.TextRange(line, column, endLine, endColumn); }
internal KeywordExpression(string keyword, int line, int column) : this(keyword) { Location = new Jamiras.Components.TextRange(line, column, line, column + keyword.Length - 1); }
public ReturnExpression(KeywordExpression keyword, ExpressionBase value) : this(value) { _keyword = keyword; Location = new Jamiras.Components.TextRange(keyword.Location.Start, value.Location.End); }