CodeExplorer reconsumeCurrentTokenInJSXMode example
if (!
$endOpeningToken ||
$endOpeningToken->value !== ">"
) { return null;
} $this->scanner->
consumeToken();
$this->scanner->
consumeToken();
$children =
$this->
parseJSXChildren();
if (!
($startClosingToken =
$this->scanner->
consume("<"
)) ||
!
$this->scanner->
consume("/"
) ||
!
$this->scanner->
reconsumeCurrentTokenInJSXMode() ||
$endOpeningToken->value !== ">"
) { $this->
error();
} $this->scanner->
consumeToken();
//Opening tag
$openingNode =
$this->
createJSXNode( "JSXOpeningFragment",
$startOpeningToken );
$this->
completeNode(