From ae57d207b2c30dbf751a23c4d7214085df79eb08 Mon Sep 17 00:00:00 2001 From: Zoltan Herczeg Date: Sun, 5 Aug 2018 23:16:24 -0700 Subject: [PATCH] Fix a few parser style issues. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com --- jerry-core/parser/js/js-lexer.c | 6 +++--- jerry-core/parser/js/js-lexer.h | 1 - jerry-core/parser/js/js-parser-internal.h | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/jerry-core/parser/js/js-lexer.c b/jerry-core/parser/js/js-lexer.c index 6f42997713..ebb32f2425 100644 --- a/jerry-core/parser/js/js-lexer.c +++ b/jerry-core/parser/js/js-lexer.c @@ -2375,7 +2375,7 @@ lexer_expect_object_literal_id (parser_context_t *context_p, /**< context */ */ void lexer_scan_identifier (parser_context_t *context_p, /**< context */ - bool propety_name) /**< property name */ + bool property_name) /**< property name */ { lexer_skip_spaces (context_p); context_p->token.line = context_p->line; @@ -2386,7 +2386,7 @@ lexer_scan_identifier (parser_context_t *context_p, /**< context */ { lexer_parse_identifier (context_p, false); - if (propety_name && context_p->token.lit_location.length == 3) + if (property_name && context_p->token.lit_location.length == 3) { lexer_skip_spaces (context_p); @@ -2406,7 +2406,7 @@ lexer_scan_identifier (parser_context_t *context_p, /**< context */ return; } - if (propety_name) + if (property_name) { lexer_next_token (context_p); diff --git a/jerry-core/parser/js/js-lexer.h b/jerry-core/parser/js/js-lexer.h index 5a3227514f..4dee7551a5 100644 --- a/jerry-core/parser/js/js-lexer.h +++ b/jerry-core/parser/js/js-lexer.h @@ -218,7 +218,6 @@ typedef enum LEXER_OBJ_IDENT_CLASS_METHOD = (1u << 2), /**< expect identifier inside a class body */ } lexer_obj_ident_opts_t; - /** * Lexer literal object types. */ diff --git a/jerry-core/parser/js/js-parser-internal.h b/jerry-core/parser/js/js-parser-internal.h index 47f5d6b215..f32c9f88d9 100644 --- a/jerry-core/parser/js/js-parser-internal.h +++ b/jerry-core/parser/js/js-parser-internal.h @@ -444,7 +444,7 @@ lexer_token_type_t lexer_check_arrow (parser_context_t *context_p); #endif /* !CONFIG_DISABLE_ES2015_ARROW_FUNCTION */ void lexer_parse_string (parser_context_t *context_p); void lexer_expect_identifier (parser_context_t *context_p, uint8_t literal_type); -void lexer_scan_identifier (parser_context_t *context_p, bool propety_name); +void lexer_scan_identifier (parser_context_t *context_p, bool property_name); ecma_char_t lexer_hex_to_character (parser_context_t *context_p, const uint8_t *source_p, int length); void lexer_expect_object_literal_id (parser_context_t *context_p, uint32_t ident_opts); void lexer_construct_literal_object (parser_context_t *context_p, lexer_lit_location_t *literal_p,