view vendor/github.com/yosssi/gcss/context.go @ 73:8533d875a2bb draft

The World (XXI) * Replace all iterations of log.* with fmt.* and os.Exit() * Use proper Go versioning Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Tue, 21 Nov 2023 11:44:14 +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),
	}
}