Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions