fix: fix bugs in function declaration

fix definition of function declarations, allow keyword "view" to be null
This commit is contained in:
Frank.R.Wu 2021-11-10 16:18:04 +08:00
parent df920d4cf1
commit 705d271e0c

View File

@ -213,7 +213,7 @@ debuggerStatement
;
functionDeclaration
: annotations? Export? Function Identifier '(' formalParameterList? ')' View '{' functionBody '}'
: annotations? Export? Function Identifier '(' formalParameterList? ')' View? '{' functionBody '}'
;
classDeclaration