CodeExplorer createJSXNode example
$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( $openingNode,
$endOpeningToken->location->end
);
//Closing tag
$closingNode =
$this->
createJSXNode( "JSXClosingFragment",