Lines Matching refs:null

29     /** @var CharStream|null */
48 * @var Token|null
107 * @var string|null
111 /** @var LexerATNSimulator|null */
114 public function __construct(?CharStream $input = null)
123 $this->interp = null;// child classes must populate this
129 if ($this->input !== null) {
133 $this->token = null;
139 $this->text = null;
145 if ($this->interp !== null) {
155 if ($this->input === null) {
156 throw new \RuntimeException('NextToken requires a non-null input stream.');
171 if ($this->interp === null || !$this->interp instanceof LexerATNSimulator) {
175 $this->token = null;
180 $this->text = null;
216 if ($this->token === null) {
233 * if `token === null` at end of any token rule, it creates one for you
271 return $this->input === null ? '' : $this->input->getSourceName();
291 $this->input = null;
342 if ($this->input === null) {
343 throw new \RuntimeException('Cannot emit EOF for null stream.');
351 null,
366 if ($this->interp === null || !$this->interp instanceof LexerATNSimulator) {
375 if ($this->interp === null || !$this->interp instanceof LexerATNSimulator) {
384 if ($this->interp === null || !$this->interp instanceof LexerATNSimulator) {
393 if ($this->interp === null || !$this->interp instanceof LexerATNSimulator) {
405 if ($this->input === null) {
406 throw new \RuntimeException('Cannot know char index for null stream.');
417 if ($this->text !== null) {
421 if ($this->interp === null || !$this->interp instanceof LexerATNSimulator) {
425 return $this->input === null ? '' : $this->interp->getText($this->input);
470 * @return array<string>|null
474 return null;
478 * @return array<string>|null
482 return null;
512 if ($this->input !== null && $this->input->LA(1) !== Token::EOF) {
513 if ($re instanceof LexerNoViableAltException && $this->interp !== null) {
527 if ($this->input === null) {
538 null,