Lines Matching refs:follow

65     Readonly my $usage => 'void match(IntStream input, int ttype, BitSet follow)';
67 my ($self, $input, $ttype, $follow) = @_;
82 return $self->recover_from_mismatched_token($input, $ttype, $follow);
101 my ($self, $input, $follow) = @_;
103 if (!defined $follow) {
107 if ($follow->member(ANTLR::Runtime::Token->EOR_TOKEN_TYPE)) {
109 $follow = $follow->or($viable_tokens_following_this_rule);
111 $follow->remove(ANTLR::Runtime::Token->EOR_TOKEN_TYPE);
115 if ($follow->member($input->LA(1)) || $follow->member(ANTLR::Runtime::Token->EOR_TOKEN_TYPE)) {
122 Readonly my $usage => 'void mismatch(IntStream input, int ttype, BitSet follow)';
124 my ($self, $input, $ttype, $follow) = @_;
132 elsif ($self->mismatch_is_missing_token($input, $follow)) {
322 Readonly my $usage => 'void recover_from_mismatched_token(IntStream input, int ttype, BitSet follow)';
324 my ($self, $input, $ttype, $follow) = @_;
342 if ($self->mismatch_is_missing_token($input, $follow)) {
346 follow => $follow,
364 Readonly my $usage => 'void recover_from_mismatched_set(IntStream input, RecognitionException e, BitSet follow)';
366 my ($self, $input, $e, $follow) = @_;
368 if ($self->mismatch_is_missing_token($input, $follow)) {
374 follow => $follow,
382 Readonly my $usage => 'boolean recover_from_mismatched_element(IntStream input, RecognitionException e, BitSet follow)';
384 my ($self, $input, $e, $follow) = @_;
386 return 0 if (!defined $follow);
388 if ($follow->member(ANTLR::Runtime::Token->EOR_TOKEN_TYPE)) {
390 $follow |= $viable_tokens_following_this_rule;
391 $follow->remove(ANTLR::Runtime::Token->EOR_TOKEN_TYPE);
394 if ($follow->member($input->LA(1))) {
412 my $follow = $arg_ref->{follow};