push property

({void Function(Range range, String tokenType, [List<String>? tokenModifiers]) $1, void Function(num line, num char, num length, num tokenType, [num? tokenModifiers]) $2}) get push

Overload accessor: $1, $2

Implementation

({
  /// Add another token. Use only when providing a legend.
  ///
  ///  @param range The range of the token. Must be single-line.
  ///  @param tokenType The token type.
  ///  @param tokenModifiers The token modifiers.
  void Function(
    _i3.Range range,
    _i2.String tokenType, [
    _i2.List<_i2.String>? tokenModifiers,
  ]) $1,

  /// Add another token.
  ///
  ///  @param line The token start line number (absolute value).
  ///  @param char The token start character (absolute value).
  ///  @param length The token length in characters.
  ///  @param tokenType The encoded token type.
  ///  @param tokenModifiers The encoded token modifiers.
  void Function(
    _i2.num line,
    _i2.num char,
    _i2.num length,
    _i2.num tokenType, [
    _i2.num? tokenModifiers,
  ]) $2,
}) get push => (
      $1: _push$1,
      $2: _push$2,
    );