ast

package
Version: v0.0.0-...-877e1b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Program

type Program struct {
	FileName string
	Imports  []Program
	Rules    []Selector
}

Program contains all the abstract syntax tree nodes

type Rule

type Rule struct {
	Name  string
	Value string
}

Rule represents the key-value pair of a CSS property

type Selector

type Selector struct {
	SelectorText string

	Nested []Selector
	Rules  []Rule

	Loc token.Loc
}

Selector represents a CSS rule

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL