()
| 239 | |
| 240 | @profile |
| 241 | private async parseCSSAst() { |
| 242 | if (this._source) { |
| 243 | if (__CSS_PARSER__ === 'css-tree') { |
| 244 | this._ast = cssTreeParse(this._source, this._file); |
| 245 | } else if (__CSS_PARSER__ === 'nativescript') { |
| 246 | const cssparser = new CSS3Parser(this._source); |
| 247 | const stylesheet = cssparser.parseAStylesheet(); |
| 248 | const cssNS = new CSSNativeScript(); |
| 249 | this._ast = cssNS.parseStylesheet(stylesheet); |
| 250 | } else if (__CSS_PARSER__ === 'rework') { |
| 251 | this._ast = parseCss(this._source, { source: this._file }); |
| 252 | } |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | @profile |
| 257 | private createSelectorsAndKeyframes() { |
no test coverage detected