File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ function analyze(css, options = {}) {
148148 let colors = new ContextCollection ( { useLocations } )
149149 let colorFormats = new Collection ( { useLocations } )
150150 let units = new ContextCollection ( { useLocations } )
151+ let gradients = new Collection ( { useLocations } )
151152
152153 walk ( ast , function ( node ) {
153154 switch ( node . type ) {
@@ -482,12 +483,12 @@ function analyze(css, options = {}) {
482483
483484 if ( colorFunctions . has ( nodeName ) ) {
484485 colors . push ( stringifyNode ( valueNode ) , property , valueNode . loc )
485- colorFormats . push ( nodeName . toLowerCase ( ) )
486+ colorFormats . push ( nodeName . toLowerCase ( ) , valueNode . loc )
486487 return
487488 }
488489
489490 if ( endsWith ( 'gradient' , nodeName ) ) {
490- gradients . push ( stringifyNode ( valueNode ) )
491+ gradients . push ( stringifyNode ( valueNode ) , valueNode . loc )
491492 return
492493 }
493494 // No this.skip here intentionally,
You can’t perform that action at this time.
0 commit comments