diff vendor/github.com/yosssi/gcss/context.go @ 66:787b5ee0289d draft

Use vendored modules Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Sun, 23 Jul 2023 13:18:53 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/github.com/yosssi/gcss/context.go	Sun Jul 23 13:18:53 2023 +0000
@@ -0,0 +1,15 @@
+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),
+	}
+}