Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Lexer.php

function Lexer::performAction

Parameters

int $rule:

Return value

0|3|4|6|8|10|11|14|17|18|21|22|23|24|30|31|32|-1

1 call to Lexer::performAction()
Lexer::next in vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php

File

vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php, line 276

Class

Lexer
Lexer class

Namespace

Seld\JsonLint

Code

private function performAction($rule) {
    switch ($rule) {
        case 0:
            
            /* skip break line */
            return self::T_BREAK_LINE;
        case 1:
            
            /* skip whitespace */
            return self::T_SKIP_WHITESPACE;
        case 2:
            return 6;
        case 3:
            $this->yytext = substr($this->yytext, 1, $this->yyleng - 2);
            return 4;
        case 4:
            return 17;
        case 5:
            return 18;
        case 6:
            return 23;
        case 7:
            return 24;
        case 8:
            return 22;
        case 9:
            return 21;
        case 10:
            return 10;
        case 11:
            return 11;
        case 12:
            return 8;
        case 13:
            return 14;
        case 14:
            return self::T_COMMENT;
        case 15:
            return self::T_OPEN_COMMENT;
        case 16:
            return self::T_CLOSE_COMMENT;
        case 17:
            return self::T_INVALID;
        default:
            throw new \LogicException('Unsupported rule ' . $rule);
    }
}
RSS feed
Powered by Drupal