-interface_accessors
- : opt_attributes opt_modifiers GET SEMICOLON
- { $$ = new InterfaceAccessorInfo (true, false, (Attributes) $1, null, (int) $2, 0, lexer.Location, lexer.Location); }
- | opt_attributes opt_modifiers GET OPEN_BRACE
- {
- Report.Error (531, lexer.Location, "'{0}': interface members cannot have a definition", ".get");
- $$ = null;
- }
- | opt_attributes opt_modifiers SET SEMICOLON
- { $$ = new InterfaceAccessorInfo (false, true, null, (Attributes) $1, 0, (int) $2, lexer.Location, lexer.Location); }
- | opt_attributes opt_modifiers GET SEMICOLON opt_attributes opt_modifiers SET SEMICOLON
- { $$ = new InterfaceAccessorInfo (true, true, (Attributes) $1, (Attributes) $5, (int) $2, (int) $6, lexer.Location, lexer.Location); }
- | opt_attributes opt_modifiers SET SEMICOLON opt_attributes opt_modifiers GET SEMICOLON
- { $$ = new InterfaceAccessorInfo (true, true, (Attributes) $5, (Attributes) $1, (int) $6, (int) $2, lexer.Location, lexer.Location); }
- |
- {
- Report.Error (548, lexer.Location, "'{0}' : property or indexer must have at least one accessor", "");
- }
- ;