Skip to content

Commit 7b4f59a

Browse files
committed
feat: add accessor keyword
1 parent 43252c5 commit 7b4f59a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎common/define-grammar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ module.exports = function defineGrammar(dialect) {
142142
seq(optional('abstract'), optional('readonly')),
143143
seq(optional('readonly'), optional('abstract')),
144144
),
145+
optional('accessor'),
145146
field('name', $._property_name),
146147
optional(choice('?', '!')),
147148
field('type', optional($.type_annotation)),

0 commit comments

Comments
 (0)