annotate 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 |
|
rev |
line source |
66
|
1 package gcss
|
|
2
|
|
3 // context represents a context of the parsing process.
|
|
4 type context struct {
|
|
5 vars map[string]*variable
|
|
6 mixins map[string]*mixinDeclaration
|
|
7 }
|
|
8
|
|
9 // newContext creates and returns a context.
|
|
10 func newContext() *context {
|
|
11 return &context{
|
|
12 vars: make(map[string]*variable),
|
|
13 mixins: make(map[string]*mixinDeclaration),
|
|
14 }
|
|
15 }
|