Skip to content

Finding Layer in tree should not have to search for LAYER_NAME #195

@bartveneman

Description

@bartveneman

This messes with my brain too much:

const ast = parse_atrule_prelude('import', params)

for (const node of ast) {
	if (node.type === LAYER_NAME && !node.name) {
		// LAYER_NAME???? 
	}
}

given layer(test) I expect: node.type === LAYER or node.type === FUNCTION and node.first_child.type === LAYER_NAME

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions