view vendor/github.com/yosssi/gcss/context.go @ 74:d8727551f403 draft

The Empress (III) * Change the way how versions are handled in version.go (to ease `go install`) * Upgrade yaml.v2 to yaml.v3 Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Mon, 04 Dec 2023 00:54:29 +0000
parents 787b5ee0289d
children
line wrap: on
line source

package gcss

// context represents a context of the parsing process.
type context struct {
	vars   map[string]*variable
	mixins map[string]*mixinDeclaration
}

// newContext creates and returns a context.
func newContext() *context {
	return &context{
		vars:   make(map[string]*variable),
		mixins: make(map[string]*mixinDeclaration),
	}
}