Skip to content

The string literal's value is not passed properly. #129

Open
@HeeMyung

Description

@HeeMyung

See example below.

local foo = 'ABCD'

At a very simple level of code like this, "ABCD" is parsed well as a Literal node, but if you look into that node, raw is properly entered, but the value is null.

the result of printing ast is as follows.

{
  type: 'Chunk',
  body: [ { type: 'LocalStatement', variables: [Array], init: [Array] } ],
  comments: []
}
{ type: 'StringLiteral', value: null, raw: "'ABCD'" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions