Skip to content

Conversation

@zherczeg
Copy link
Member

Also fix a typo.


/**
 * Maximum number of values pushed onto the stack by a function.
* Maximum number of values pushed onto the stack by a function.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a 'C2 A0' character here, which a "NO-BREAK SPACE'. Change it to a normal space.

*/
typedef enum
{
LEXER_FLAG_VAR = (1 << 0), /** local identifier (var, function arg) */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the enum value comments need to be /**< as they are after the entity they are documenting.

@zherczeg
Copy link
Member Author

Thank you for the review. Patch updated.

LEXER_FLAG_SOURCE_PTR = (1 << 6), /**< the literal is directly referenced in the source code
* (no need to allocate memory) */
LEXER_FLAG_LATE_INIT = (1 << 7), /**< initialize this variable after the byte code is freed */
} parser_lexer_literal_status_flags_t;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange name for this type. It is used in lexer_literal_t, all the enum values have a LEXER_ prefix, yet this type has a parser_ prefix. I'd suggest going for lexer_literal_status_flags_t only.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I haven't noticed that.

Also fix a white space typo.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
Copy link
Member

@akosthekiss akosthekiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AnthonyCalandra
Copy link
Contributor

LGTM (informal)

@akosthekiss akosthekiss added parser Related to the JavaScript parser style Related to coding style documentation Related to documentation labels Aug 17, 2018
Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LaszloLango LaszloLango merged commit 767dd68 into jerryscript-project:master Aug 18, 2018
@zherczeg zherczeg deleted the lexer_flags branch August 21, 2018 14:27
legendecas added a commit to yodaos-project/ShadowNode that referenced this pull request Dec 20, 2018
legendecas added a commit to yodaos-project/ShadowNode that referenced this pull request Dec 21, 2018
yorkie pushed a commit to yodaos-project/ShadowNode that referenced this pull request Dec 21, 2018
* Revert "jerry: ref to function self should not create new object (#368)"
* jerry: change literal status flags to enum
Picked from jerryscript-project/jerryscript#2474
* jerry: fix named function expression creation
picked from jerryscript-project/jerryscript#2634
* Include test sets
legendecas added a commit to yodaos-project/ShadowNode that referenced this pull request Dec 24, 2018
* Revert "jerry: ref to function self should not create new object (#368)"
* jerry: change literal status flags to enum
Picked from jerryscript-project/jerryscript#2474
* jerry: fix named function expression creation
picked from jerryscript-project/jerryscript#2634
* Include test sets
legendecas added a commit to yodaos-project/ShadowNode that referenced this pull request Dec 24, 2018
* Revert "jerry: ref to function self should not create new object (#368)"
* jerry: change literal status flags to enum
Picked from jerryscript-project/jerryscript#2474
* jerry: fix named function expression creation
picked from jerryscript-project/jerryscript#2634
* Include test sets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Related to documentation parser Related to the JavaScript parser style Related to coding style

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants