ExpressionToken constructor

ExpressionToken(
  1. ExpressionTokenType? type,
  2. Variant? value,
  3. int? line,
  4. int? colum,
)

Creates an instance of this token and initializes it with specified values.

  • type The type of this token.
  • value The value of this token.
  • line the line number where the token is.
  • column the column number where the token is.

Implementation

ExpressionToken(
    ExpressionTokenType? type, Variant? value, int? line, int? colum)
    : _type = type ?? ExpressionTokenType.Unknown,
      _value = value ?? Variant.Empty,
      _line = line ?? 0,
      _column = colum ?? 0;