1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.StylableMeta = exports.RESERVED_ROOT_NAME = void 0;
|
4 | const stylable_utils_1 = require("./stylable-utils");
|
5 | const stylable_value_parsers_1 = require("./stylable-value-parsers");
|
6 | exports.RESERVED_ROOT_NAME = 'root';
|
7 | class StylableMeta {
|
8 | constructor(ast, diagnostics) {
|
9 | this.ast = ast;
|
10 | this.diagnostics = diagnostics;
|
11 | this.globals = {};
|
12 | const rootSymbol = {
|
13 | _kind: 'class',
|
14 | name: exports.RESERVED_ROOT_NAME,
|
15 | [stylable_value_parsers_1.valueMapping.root]: true,
|
16 | };
|
17 | this.rawAst = ast.clone();
|
18 | this.source = stylable_utils_1.getSourcePath(ast, diagnostics);
|
19 | this.root = exports.RESERVED_ROOT_NAME;
|
20 | this.namespace = '';
|
21 | this.imports = [];
|
22 | this.vars = [];
|
23 | this.cssVars = {};
|
24 | this.keyframes = [];
|
25 | this.elements = {};
|
26 | this.classes = {
|
27 | [exports.RESERVED_ROOT_NAME]: rootSymbol,
|
28 | };
|
29 | this.mappedSymbols = {
|
30 | [exports.RESERVED_ROOT_NAME]: rootSymbol,
|
31 | };
|
32 | this.customSelectors = {};
|
33 | this.urls = [];
|
34 | this.scopes = [];
|
35 | this.simpleSelectors = {};
|
36 | this.mixins = [];
|
37 | this.transformDiagnostics = null;
|
38 | }
|
39 | }
|
40 | exports.StylableMeta = StylableMeta;
|
41 |
|
\ | No newline at end of file |