Skip to content

change from v0.4: children are nothing instead of () #557

@ericphanson

Description

@ericphanson

on JuliaSyntax 0.4.10:

julia> using JuliaSyntax

julia> node = JuliaSyntax.parsestmt(SyntaxNode, "module A end")
line:col│ tree                                   │ file_name
   1:1  │[module]
   1:8  │  A
   1:9  │  [block]


julia> JuliaSyntax.children(JuliaSyntax.children(node)[1])
()

on 1.0.2:

julia> node = JuliaSyntax.parsestmt(SyntaxNode, "module A end")
SyntaxNode:
[module]
  A                                      :: Identifier
  [block]


julia> isnothing(JuliaSyntax.children(JuliaSyntax.children(node)[1]))
true

is this intentional? not sure if it is a bug or an intentional change so I thought I'd ask just in case. (I'm trying to update ExplicitImports to JuliaSyntax v1)

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