зеркало из https://github.com/mozilla/pjs.git
Made implements clauses js2-only
This commit is contained in:
Родитель
8552fbaf1a
Коммит
0e94e874c9
|
@ -547,19 +547,15 @@
|
|||
|
||||
|
||||
(%subsection "Class Definition")
|
||||
(production (:class-definition :omega) (class :identifier :superclass :implements-list :block) class-definition-definition)
|
||||
(production (:class-definition :omega) (class :identifier :inheritance :block) class-definition-definition)
|
||||
(production (:class-definition :omega) (class :identifier (:semicolon :omega)) class-definition-declaration)
|
||||
|
||||
(production :superclass () superclass-none)
|
||||
(production :superclass (extends (:type-expression allow-in)) superclass-one)
|
||||
|
||||
(production :implements-list () implements-list-none)
|
||||
(production :implements-list (implements :type-expression-list) implements-list-one)
|
||||
|
||||
(production :type-expression-list ((:type-expression allow-in)) type-expression-list-one)
|
||||
(production :type-expression-list (:type-expression-list \, (:type-expression allow-in)) type-expression-list-more)
|
||||
|
||||
(production :inheritance () inheritance-none)
|
||||
(production :inheritance (extends (:type-expression allow-in)) inheritance-extends)
|
||||
(? js2
|
||||
(production :inheritance (implements :type-expression-list) inheritance-implements)
|
||||
(production :inheritance (extends (:type-expression allow-in) implements :type-expression-list) inheritance-extends-implements)
|
||||
|
||||
(%subsection "Interface Definition")
|
||||
(production (:interface-definition :omega) (interface :identifier :extends-list :block) interface-definition-definition)
|
||||
(production (:interface-definition :omega) (interface :identifier (:semicolon :omega)) interface-definition-declaration))
|
||||
|
@ -571,12 +567,8 @@
|
|||
(production :extends-list () extends-list-none)
|
||||
(production :extends-list (extends :type-expression-list) extends-list-one)
|
||||
|
||||
|
||||
;(%subsection "Attribute Definition")
|
||||
;(production :attribute-definition (attribute :no-line-break :identifier =) attribute-definition-none)
|
||||
;(production :attribute-definition (default =) attribute-definition-default)
|
||||
;(production :attribute-definition (:attribute-definition :attribute) attribute-definition-identifier)
|
||||
;(production :attribute-definition (:attribute-definition namespace \( (:type-expression allow-in) \)) attribute-definition-namespace)
|
||||
(production :type-expression-list ((:type-expression allow-in)) type-expression-list-one)
|
||||
(production :type-expression-list (:type-expression-list \, (:type-expression allow-in)) type-expression-list-more)
|
||||
|
||||
|
||||
(%section "Language Declaration")
|
||||
|
|
|
@ -547,19 +547,15 @@
|
|||
|
||||
|
||||
(%subsection "Class Definition")
|
||||
(production (:class-definition :omega) (class :identifier :superclass :implements-list :block) class-definition-definition)
|
||||
(production (:class-definition :omega) (class :identifier :inheritance :block) class-definition-definition)
|
||||
(production (:class-definition :omega) (class :identifier (:semicolon :omega)) class-definition-declaration)
|
||||
|
||||
(production :superclass () superclass-none)
|
||||
(production :superclass (extends (:type-expression allow-in)) superclass-one)
|
||||
|
||||
(production :implements-list () implements-list-none)
|
||||
(production :implements-list (implements :type-expression-list) implements-list-one)
|
||||
|
||||
(production :type-expression-list ((:type-expression allow-in)) type-expression-list-one)
|
||||
(production :type-expression-list (:type-expression-list \, (:type-expression allow-in)) type-expression-list-more)
|
||||
|
||||
(production :inheritance () inheritance-none)
|
||||
(production :inheritance (extends (:type-expression allow-in)) inheritance-extends)
|
||||
(? js2
|
||||
(production :inheritance (implements :type-expression-list) inheritance-implements)
|
||||
(production :inheritance (extends (:type-expression allow-in) implements :type-expression-list) inheritance-extends-implements)
|
||||
|
||||
(%subsection "Interface Definition")
|
||||
(production (:interface-definition :omega) (interface :identifier :extends-list :block) interface-definition-definition)
|
||||
(production (:interface-definition :omega) (interface :identifier (:semicolon :omega)) interface-definition-declaration))
|
||||
|
@ -571,12 +567,8 @@
|
|||
(production :extends-list () extends-list-none)
|
||||
(production :extends-list (extends :type-expression-list) extends-list-one)
|
||||
|
||||
|
||||
;(%subsection "Attribute Definition")
|
||||
;(production :attribute-definition (attribute :no-line-break :identifier =) attribute-definition-none)
|
||||
;(production :attribute-definition (default =) attribute-definition-default)
|
||||
;(production :attribute-definition (:attribute-definition :attribute) attribute-definition-identifier)
|
||||
;(production :attribute-definition (:attribute-definition namespace \( (:type-expression allow-in) \)) attribute-definition-namespace)
|
||||
(production :type-expression-list ((:type-expression allow-in)) type-expression-list-one)
|
||||
(production :type-expression-list (:type-expression-list \, (:type-expression allow-in)) type-expression-list-more)
|
||||
|
||||
|
||||
(%section "Language Declaration")
|
||||
|
|
Загрузка…
Ссылка в новой задаче