Skip to content

When use range option,It will fail .Maybe it need judge the key whehher equals to range. #2

@frankLife

Description

@frankLife

like this

{
    "range": [
        41,
        1178
    ],
    "type": "Program",
    "body": [
        {
            "range": [
                41,
                65
            ],
            "type": "ExpressionStatement",
            "expression": {
                "range": [
                    41,
                    64
                ],
                "type": "CallExpression",
                "callee": {
                    "range": [
                        41,
                        48
                    ],
                    "type": "Identifier",
                    "name": "require"
if ( child instanceof Array && key != 'range' ) {

                    for ( j = 0, len = child.length; j < len; j += 1 ) {

                        subchild = child[ j ]

                        subchild.parent = node

                        stack.push( subchild )

                    }

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