Example #1
0
        /// <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);
        }
Example #3
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);
 }
Example #5
0
 public ParseErrorExpression(string message, int line, int column, int endLine, int endColumn)
     : this(message)
 {
     Location = new Jamiras.Components.TextRange(line, column, endLine, endColumn);
 }
Example #6
0
 internal KeywordExpression(string keyword, int line, int column)
     : this(keyword)
 {
     Location = new Jamiras.Components.TextRange(line, column, line, column + keyword.Length - 1);
 }
Example #7
0
 public ReturnExpression(KeywordExpression keyword, ExpressionBase value)
     : this(value)
 {
     _keyword = keyword;
     Location = new Jamiras.Components.TextRange(keyword.Location.Start, value.Location.End);
 }