annotate vendor/github.com/yosssi/gcss/context.go @ 81:6ce24b93c8d0
draft
I keep inserting random bugs
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author |
yakumo.izuru |
date |
Tue, 12 Dec 2023 14:27: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 }
|