Fixing warning in experimental Java source parser

Summary: Removing some dead grammar rules

Reviewed By: jvillard

Differential Revision: D25087155

fbshipit-source-id: 66146cf47
master
David Pichardie 4 years ago committed by Facebook GitHub Bot
parent 606a3c95d9
commit b073b55b1a

@ -91,8 +91,6 @@ rule class_scan = parse
{ VAR }
| "extends"
{ EXTENDS }
| "super"
{ SUPER }
| "implements"
{ IMPLEMENTS }
| "assert"

@ -20,7 +20,6 @@
%token INTERFACE
%token IMPLEMENTS
%token EXTENDS
%token SUPER
%token ENUM
%token NEW
%token INSTANCEOF
@ -108,25 +107,6 @@ import_name_end:
| DOT IDENT import_name_end
{}
type_arguments:
| LANGLE type_argument_list RANGLE
{}
type_argument_list:
| separated_nonempty_list(COMMA, type_argument)
{}
type_argument:
| unann_reference_type // If we decide to parse annotations, it will
// require change here
| QMARK wildcard_bounds?
{}
wildcard_bounds:
| EXTENDS unann_reference_type
| SUPER unann_reference_type
{}
package_declaration:
| PACKAGE unann_class_or_interface_type SEMICOLON
{ $2 }

Loading…
Cancel
Save