Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser refactoring #11871

Merged
merged 28 commits into from Aug 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c2601f8
refactor: parseMaybeUnary => parseUnary
JLHwung Jul 22, 2020
1556700
refactor: extract shouldExitDescending method
JLHwung Jul 22, 2020
6e154c4
refactor: add parseUpdate
JLHwung Jul 22, 2020
f352747
refactor: avoid comparing with hardcoded token value
JLHwung Jul 22, 2020
6285541
refactor: add ParseNewOrNewTarget
JLHwung Jul 22, 2020
a2eb7be
refactor: add parseCoverCallAndAsyncArrowHead
JLHwung Jul 22, 2020
569860b
add parseBind
JLHwung Jul 22, 2020
82c2de2
refactor: polish parseTaggedTemplateExpression interface
JLHwung Jul 22, 2020
4d03961
refactor: add parseMember method
JLHwung Jul 22, 2020
7044d1e
refactor: add parseSuper method
JLHwung Jul 22, 2020
0d3843b
refactor: add parseAsyncArrowUnaryFunction method
JLHwung Jul 22, 2020
5d5d539
fix: disallow line break before async binding arrow
JLHwung Jul 22, 2020
acad7a0
refactor: simplify tt.name logic
JLHwung Jul 22, 2020
27ee426
refactor: add parseDo method
JLHwung Jul 22, 2020
531ac56
refactor: misc
JLHwung Jul 23, 2020
66466c5
refactor: rename parseObjectMember by parsePropertyDefinition
JLHwung Jul 23, 2020
7828557
refactor: unify set/get/async keyword parsing in ObjectMethod
JLHwung Jul 23, 2020
1afec6e
refactor: misc
JLHwung Jul 23, 2020
b537755
refactor: add parseArrayLike method
JLHwung Jul 23, 2020
3e2aa7b
refactor: move fsharp epilogure and prologue inside parseObjectLike
JLHwung Jul 23, 2020
01f8fa9
fixup
JLHwung Jul 23, 2020
0b4deb1
refactor: rename parseFunctionExpression to parseFunctionOrFunctionSent
JLHwung Jul 23, 2020
ca1dc02
refactor: remove redundant logic
JLHwung Jul 23, 2020
addcb40
refactor: rename parseClassPropertyName by parseClassElementName
JLHwung Jul 23, 2020
f94d383
refactor: avoid unecessary lookahead when parsing tt._export
JLHwung Jul 23, 2020
4af6c9a
fix: export-default-from should support escaped async as export binding
JLHwung Jul 23, 2020
02fe9a7
address review comments
JLHwung Jul 27, 2020
1d693d8
parseUnary -> parseMaybeUnary
JLHwung Jul 27, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/babel-parser/src/parser/error-message.js
Expand Up @@ -80,6 +80,7 @@ export const ErrorMessages = Object.freeze({
LabelRedeclaration: "Label '%0' is already declared",
LetInLexicalBinding:
"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",
LineTerminatorBeforeArrow: "No line break is allowed before '=>'",
MalformedRegExpFlags: "Invalid regular expression flag",
MissingClassName: "A class name is required",
MissingEqInAssignment:
Expand Down