package css_ast

import "github.com/evanw/esbuild/internal/css_ast"

Index

Types

type AST

type AST struct {
	Rules []R
}

type ComplexSelector

type ComplexSelector struct {
	Selectors []CompoundSelector
}

type CompoundSelector

type CompoundSelector struct {
	Combinator           string // Optional, may be ""
	TypeSelector         *NamespacedName
	SubclassSelectors    []SS
	PseudoClassSelectors []SSPseudoClass // If present, these follow a ":" character
}

type NamespacedName

type NamespacedName struct {
	// If present, this is an identifier or "*" or "" and is followed by a "|" character
	NamespacePrefix *string

	// This is an identifier or "*" or "&"
	Name string
}

type R

type R interface {
	// contains filtered or unexported methods
}

This interface is never called. Its purpose is to encode a variant type in Go's type system.

type RAtImport

type RAtImport struct {
	PathText  string
	PathRange logger.Range
}

type RBadDeclaration

type RBadDeclaration struct {
	Tokens []css_lexer.Token
}

type RDeclaration

type RDeclaration struct {
	Key       css_lexer.Token
	Value     []css_lexer.Token
	Important bool
}

type RKnownAt

type RKnownAt struct {
	Name    css_lexer.Token
	Prelude []css_lexer.Token
	Rules   []R
}

type RQualified

type RQualified struct {
	Prelude []css_lexer.Token
	Rules   []R
}

type RSelector

type RSelector struct {
	Selectors []ComplexSelector
	Rules     []R
}

type RUnknownAt

type RUnknownAt struct {
	Name    css_lexer.Token
	Prelude []css_lexer.Token
	Block   []css_lexer.Token
}

type SS

type SS interface {
	// contains filtered or unexported methods
}

This interface is never called. Its purpose is to encode a variant type in Go's type system.

type SSAttribute

type SSAttribute struct {
	NamespacedName  NamespacedName
	MatcherOp       string
	MatcherValue    string
	MatcherModifier byte
}

type SSClass

type SSClass struct {
	Name string
}

type SSHash

type SSHash struct {
	Name string
}

type SSPseudoClass

type SSPseudoClass struct {
	Name string
	Args []css_lexer.Token
}

Source Files

css_ast.go

Version
v0.7.6
Published
Sep 26, 2020
Platform
windows/amd64
Imports
2 packages
Last checked
2 hours ago

Tools for package owners.