if (\
count($names) > 1
) { throw new SyntaxError('When using set with a block, you cannot have a multi-target.',
$stream->
getCurrent()->
getLine(),
$stream->
getSourceContext());
} $stream->
expect(/* Token::BLOCK_END_TYPE */ 3
);
$values =
$this->parser->
subparse([$this, 'decideBlockEnd'
], true
);
$stream->
expect(/* Token::BLOCK_END_TYPE */ 3
);
} return new SetNode($capture,
$names,
$values,
$lineno,
$this->
getTag());
} public function decideBlockEnd(Token
$token): bool
{ return $token->
test('endset'
);
} public function getTag(): string
{ return 'set';
}}