Skip to content

Incorrect nodes end location for some nodes #381

Closed as not planned
Closed as not planned
@Morriar

Description

@Morriar

Looking at this simple snippet:

class Foo
end

It seems the end column location is incorrect for a few nodes:

SyntaxTree::Program: 1:0-2:0 # should it be 1:0-2:3?
SyntaxTree::Statements: 1:0-2:0 # should it be 1:0-2:3?
SyntaxTree::ClassDeclaration: 1:0-2:3
SyntaxTree::ConstRef: 1:6-1:9
SyntaxTree::Const: 1:6-1:9
SyntaxTree::BodyStmt: 1:9-1:0 # should it be 1:9-2:0?
SyntaxTree::Statements: 1:9-1:0 # should it be 1:9-2:0?
SyntaxTree::VoidStmt: 1:9-1:0 # should it be 1:9-1:9?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions